Skip to content

How to show error code for shellcheck? #4568

Discussion options

You must be logged in to vote

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 ~/.vim/pack/plugins/start/ale/doc/ale.txt:

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by coolaj86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant