How to show error code for shellcheck? #4568
-
I believe I have the default configuration for vim-ale + shellcheck. When I get quickfix messages or run [shellcheck] Expressions don't expand in single quotes, use double quotes for that. [Info] The problem is that it's missing the code - The code is important because quite often I'm doing something on purpose and I want to simply add My preference would be that rather than showing Can I set some variable to change the output? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Apparently I had some years-old copy-pasta that was disabling the status code. The fix: let g:ale_echo_msg_format = '[%severity%] %code%: %s [%linter%]' [Info] SC2016: Expressions don't expand in single quotes, use double quotes for that. [shellcheck] Documentation at g:ale_echo_msg_format *g:ale_echo_msg_format*
*b:ale_echo_msg_format*
Type: |String|
Default: `'%code: %%s'`
This variable defines a message format for echoed messages. The following
sequences of characters will be replaced.
`%s` - replaced with the text for the problem
`%...code...% `- replaced with the error code
`%linter%` - replaced with the name of the linter
`%severity%` - replaced with the severity of the problem (e.g. `Error`)
`%type%` - replaced with the type of the problem (e.g. `E`) See also: |
Beta Was this translation helpful? Give feedback.
Apparently I had some years-old copy-pasta that was disabling the status code.
The fix:
Documentation at
~/.vim/pack/plugins/start/ale/doc/ale.txt
: