Problem: :compiler shellcheck does not work
Solution: Add ' %' to makeprg to pass current file to shellcheck
https://github.com/vim/vim/pull/11509
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@dkearns Please approve. Currently it is broken when running :make
No files specified.
Usage: shellcheck [OPTIONS...] FILES...
-a --check-sourced Include warnings from sourced files
-C[WHEN] --color[=WHEN] Use color (auto, always, never)
-i CODE1,CODE2.. --include=CODE1,CODE2.. Consider only given types of warnings
...
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Thanks for the report, however, leaving the file argument empty is actually intentional. Doing so offers the flexibility to specify
files other than the current buffer when running :make. This might make more sense if you consider setting the options globally with :compiler!.
As you may be aware you can change the behaviour for yourself by adding the line in your patch to ~/.vim/after/compiler/shellcheck.vim.
There's some relevant discussion in this issue: #3328
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #11509.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()
Thank you for clarifying. Makes sense. Just realized it is very helpful to type :make **/*sh to see errors from all scripts in a project.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you commented.![]()