branch: elpa/flycheck
commit b7d065c9bd71ff0c08bcf20ef71a039f766ff6bb
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Add flycheck-shellcheck-args for extra ShellCheck arguments
Add a customizable variable for passing additional command-line
arguments to ShellCheck, following the established pattern used
by other checkers like eslint.
Closes #1977
---
flycheck.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/flycheck.el b/flycheck.el
index 7db05482c6..749da05dc8 100644
--- a/flycheck.el
+++ b/flycheck.el
@@ -12631,6 +12631,9 @@ shellcheck directives in the script."
:safe #'booleanp
:package-version '(flycheck . "36"))
+(flycheck-def-args-var flycheck-shellcheck-args sh-shellcheck
+ :package-version '(flycheck . "36"))
+
(flycheck-define-checker sh-shellcheck
"A shell script syntax and style checker using Shellcheck.
@@ -12644,6 +12647,7 @@ See URL `https://github.com/koalaman/shellcheck/'."
flycheck-shellcheck-follow-sources)
(option "--exclude" flycheck-shellcheck-excluded-warnings list
flycheck-option-comma-separated-list)
+ (eval flycheck-shellcheck-args)
"-")
:standard-input t
:error-parser flycheck-parse-checkstyle