-
-
Notifications
You must be signed in to change notification settings - Fork 899
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
Changes from 5 commits
bc1ce27
ea4af04
e8634e7
78f5924
475362e
1be2de4
3425f16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,10 @@ executable with `exec-path'." | |
|
||
(defcustom lsp-kotlin-trace-server "off" | ||
"Traces the communication between VSCode and the Kotlin language server." | ||
:type '(choice (:tag "off" "messages" "verbose")) | ||
:type '(choice (const "off") | ||
(const "messages") | ||
(const "verbose") | ||
) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you move |
||
:group 'lsp-kotlin | ||
:package-version '(lsp-mode . "6.1")) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,13 +137,18 @@ | |
|
||
(defcustom lsp-lua-color-mode "Semantic" | ||
"Color mode." | ||
:type '(choice (:tag "Grammar" "Semantic")) | ||
:type '(choice (const "Grammar") | ||
(const "Semantic")) | ||
:package-version '(lsp-mode . "8.0.0") | ||
:group 'lsp-lua-language-server) | ||
|
||
(defcustom lsp-lua-completion-call-snippet "Disable" | ||
"Shows function call snippets." | ||
:type '(choice (:tag "Disable" "Both" "Replace")) | ||
:type '(choice | ||
(const "Disable") | ||
(const "Both") | ||
(const "Replace") | ||
) | ||
:package-version '(lsp-mode . "8.0.0") | ||
:group 'lsp-lua-language-server) | ||
|
||
|
@@ -165,7 +170,9 @@ fragment. If it is set to `0`, this feature can be disabled." | |
|
||
(defcustom lsp-lua-completion-keyword-snippet "Replace" | ||
"Shows keyword syntax snippets." | ||
:type '(choice (:tag "Disable" "Both" "Replace")) | ||
:type '(choice (const "Disable") | ||
(const "Both") | ||
(const "Replace")) | ||
:package-version '(lsp-mode . "8.0.0") | ||
:group 'lsp-lua-language-server) | ||
|
||
|
@@ -339,7 +346,8 @@ tolerance for this setting. Please adjust it to the appropriate value." | |
(defcustom lsp-lua-runtime-file-encoding "utf8" | ||
"File encoding. The `ansi' option is only available under the `Windows' | ||
platform." | ||
:type '(choice (:tag "utf8" "ansi")) | ||
:type '(choice (const "utf8") | ||
(const "ansi")) | ||
:package-version '(lsp-mode . "8.0.0") | ||
:group 'lsp-lua-language-server) | ||
|
||
|
@@ -383,7 +391,13 @@ and the language server will provide special support. | |
|
||
(defcustom lsp-lua-runtime-version "Lua 5.4" | ||
"Lua runtime version." | ||
:type '(choice (:tag "Lua 5.1" "Lua 5.2" "Lua 5.3" "Lua 5.4" "LuaJIT")) | ||
:type '(choice | ||
(const "Lua 5.1") | ||
(const "Lua 5.2") | ||
(const "Lua 5.3") | ||
(const "Lua 5.4") | ||
(const "LuaJIT") | ||
) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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")) |
||
:package-version '(lsp-mode . "8.0.0") | ||
:group 'lsp-lua-language-server) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ | |
|
||
(defcustom lsp-markdown-server-command-args '("--parser=remark-parse" "--stdio") | ||
"Command-line arguments for the markdown lsp server." | ||
:type '(repeat 'string) | ||
:type '(repeat string) | ||
:group 'lsp-markdown | ||
:package-version '(lsp-mode . "8.0.0")) | ||
|
||
|
@@ -59,9 +59,9 @@ For a complete list of plugins, check: | |
|
||
For a complete list of plugins, check: | ||
https://github.com/unifiedjs/unified-language-server/blob/main/CONFIGURATION.md#re-using-settings" | ||
:type '(choice ( | ||
:type '(choice | ||
(const "retext-english") | ||
(const "remark-parse"))) | ||
(const "remark-parse")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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")) |
||
:group 'lsp-markdown | ||
:package-version '(lsp-mode . "8.0.0")) | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,33 +63,40 @@ default to ~/.perlcriticrc. (no aliases, .bat files or ~/)." | |
:group 'lsp-perlnavigator | ||
:package-version '(lsp-mode . "9.0.0")) | ||
|
||
(defconst lsp-perlnavigator--log-level-type | ||
'(choice (const "error") | ||
(const "warning") | ||
(const "info") | ||
(const "hint") | ||
(const "none") | ||
)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? :) |
||
(defcustom lsp-perlnavigator-severity5 "warning" | ||
"Editor Diagnostic severity level for Critic severity 5." | ||
:type '(choice (:tag "error" "warning" "info" "hint" "none")) | ||
:type lsp-perlnavigator--log-level-type | ||
:group 'lsp-perlnavigator | ||
:package-version '(lsp-mode . "9.0.0")) | ||
|
||
(defcustom lsp-perlnavigator-severity4 "info" | ||
"Editor Diagnostic severity level for Critic severity 4." | ||
:type '(choice (:tag "error" "warning" "info" "hint" "none")) | ||
:type lsp-perlnavigator--log-level-type | ||
:group 'lsp-perlnavigator | ||
:package-version '(lsp-mode . "9.0.0")) | ||
|
||
(defcustom lsp-perlnavigator-severity3 "hint" | ||
"Editor Diagnostic severity level for Critic severity 3." | ||
:type '(choice (:tag "error" "warning" "info" "hint" "none")) | ||
:type lsp-perlnavigator--log-level-type | ||
:group 'lsp-perlnavigator | ||
:package-version '(lsp-mode . "9.0.0")) | ||
|
||
(defcustom lsp-perlnavigator-severity2 "hint" | ||
"Editor Diagnostic severity level for Critic severity 2." | ||
:type '(choice (:tag "error" "warning" "info" "hint" "none")) | ||
:type lsp-perlnavigator--log-level-type | ||
:group 'lsp-perlnavigator | ||
:package-version '(lsp-mode . "9.0.0")) | ||
|
||
(defcustom lsp-perlnavigator-severity1 "hint" | ||
"Editor Diagnostic severity level for Critic severity 1." | ||
:type '(choice (:tag "error" "warning" "info" "hint" "none")) | ||
:type lsp-perlnavigator--log-level-type | ||
:group 'lsp-perlnavigator | ||
:package-version '(lsp-mode . "9.0.0")) | ||
|
||
|
@@ -107,7 +114,11 @@ default to ~/.perlcriticrc. (no aliases, .bat files or ~/)." | |
|
||
(defcustom lsp-perlnavigator-trace-server "messages" | ||
"Traces the communication between VS Code and the language server." | ||
:type '(choice (:tag "off" "messages" "verbose")) | ||
:type '(choice | ||
(const "off") | ||
(const "messages") | ||
(const "verbose") | ||
) | ||
:group 'lsp-perlnavigator | ||
:package-version '(lsp-mode . "9.0.0")) | ||
|
||
|
There was a problem hiding this comment.
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 ofdirectory
, no?There was a problem hiding this comment.
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 befile