Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix up many linting issues #4652

Merged
merged 7 commits into from
Dec 30, 2024
Merged

Fix up many linting issues #4652

merged 7 commits into from
Dec 30, 2024

Conversation

rtpg
Copy link
Contributor

@rtpg rtpg commented Dec 23, 2024

Most of these are fixing up issues with the type declarations in customization variables. These all were highlighted by eask.

There's also a handful of other fixups:

  • pass in the port when creating a service process
  • replace (eq foo []) with (equal foo []) in a couple of spots (first one does an identity check so would never pass)

@github-actions github-actions bot added rust client One or more of lsp-mode language clients CI labels Dec 23, 2024
:group 'lsp-camel
:type 'file
:type 'directory
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be file instead of directory, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, got confused from the comment above and seeing the word dir too many times. Definitely should be file

:type '(choice (const "off")
(const "messages")
(const "verbose")
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move ) to the previous line? Thanks!

(const "retext-english")
(const "remark-parse")))
(const "remark-parse"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the style to:

  :type '(choice (const "retext-english")
                 (const "remark-parse")))
                 (const "remark-parse"))

(const "Lua 5.3")
(const "Lua 5.4")
(const "LuaJIT")
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the style to:

  :type '(choice (const "Lua 5.1")
                 (const "Lua 5.2")
                 (const "Lua 5.3")
                 (const "Lua 5.4")
                 (const "LuaJIT"))

(const "info")
(const "hint")
(const "none")
))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the style to:

'(choice  (const "error")
          (const "warning")
          (const "info")
          (const "hint")
          (const "none")))

And add a simple docstring to the variable? :)

(cons 'name string)
(cons 'description string)
(cons 'url string)
(cons 'fileMatch (repeat string))))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add documentation to this variable? The indentation seems a bit off here. 🤔

@github-actions github-actions bot removed the CI label Dec 30, 2024
@jcs090218 jcs090218 merged commit 56e7e9b into emacs-lsp:master Dec 30, 2024
10 of 13 checks passed
@jcs090218
Copy link
Member

Thank you!

@rtpg
Copy link
Contributor Author

rtpg commented Dec 31, 2024

Sorry about not getting back to this in a timely manner! End of year stuff. Thanks for getting this over the finish line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client One or more of lsp-mode language clients rust
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants