All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 Save g:ale_warn_about_trailing_whitespace
4 let g:ale_warn_about_trailing_whitespace = 1
6 runtime ale_linters/lua/luacheck.vim
10 call ale#linter#Reset()
12 Execute(The luacheck handler should parse lines correctly):
18 \ 'text': 'line contains trailing whitespace',
25 \ 'text': 'unused loop variable ''k''',
32 \ 'text': 'accessing undefined variable ''x''',
37 \ ale_linters#lua#luacheck#Handle(347, [
38 \ ' /file/path/here.lua:1:8: (W612) line contains trailing whitespace',
39 \ ' /file/path/here.lua:3:5: (W213) unused loop variable ''k''',
40 \ ' /file/path/here.lua:3:19: (W113) accessing undefined variable ''x''',
43 Execute(The luacheck handler should respect the warn_about_trailing_whitespace option):
44 let g:ale_warn_about_trailing_whitespace = 0
51 \ 'text': 'unused argument ''g''',
56 \ ale_linters#lua#luacheck#Handle(347, [
57 \ '/file/path/here.lua:15:97: (W614) trailing whitespace in a comment',
58 \ '/file/path/here.lua:16:60: (W612) line contains trailing whitespace',
59 \ '/file/path/here.lua:17:1: (W611) line contains only whitespace',
60 \ '/file/path/here.lua:27:57: (W613) trailing whitespace in a string',
61 \ '/file/path/here.lua:5:43: (W212) unused argument ''g''',