dense-analysis / ale

Check syntax in Vim/Neovim asynchronously and fix files, with Language Server Protocol (LSP) support
BSD 2-Clause "Simplified" License
13.51k stars 1.43k forks source link

Add end_col and end_lnum to ShellCheck #4692

Closed blmaier closed 8 months ago

blmaier commented 9 months ago

ShellCheck supports a JSON format mode which includes an 'endLine' and 'endColumn' field.

We must use the newer 'json1' format as it properly treats tabs as a single character. 'json1' was not supported until v0.7.0 in 2019[1], so we maintain support for the older GCC based format.

[1] https://github.com/koalaman/shellcheck/blob/v0.9.0/CHANGELOG.md?plain=1#L121

This also contains a second commit which adds ShellCheck wiki links, to match my other PR https://github.com/dense-analysis/ale/pull/4681