diff options
author | w0rp <devw0rp@gmail.com> | 2017-04-24 22:27:18 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-04-24 22:27:18 +0100 |
commit | a03121f5b051ed1f146a8979ea5d2bb26fe05bff (patch) | |
tree | defbf1cd9c45af97667ec7ff47733a6cceca4207 /ale_linters | |
parent | b4c0335ebceb5ba360a71dd3d0f10ec1d5807a83 (diff) | |
download | ale-a03121f5b051ed1f146a8979ea5d2bb26fe05bff.zip |
Break shared handlers up into their own files, and fix stylelint error handling
Diffstat (limited to 'ale_linters')
35 files changed, 36 insertions, 36 deletions
diff --git a/ale_linters/ansible/ansible-lint.vim b/ale_linters/ansible/ansible-lint.vim index f3bcf565..7f641b6c 100644 --- a/ale_linters/ansible/ansible-lint.vim +++ b/ale_linters/ansible/ansible-lint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('ansible', { \ 'name': 'ansible', \ 'executable': 'ansible', \ 'command': 'ansible-lint -p %t', -\ 'callback': 'ale#handlers#HandlePEP8Format', +\ 'callback': 'ale#handlers#python#HandlePEP8Format', \}) diff --git a/ale_linters/asciidoc/proselint.vim b/ale_linters/asciidoc/proselint.vim index 4851191e..b636c067 100644 --- a/ale_linters/asciidoc/proselint.vim +++ b/ale_linters/asciidoc/proselint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('asciidoc', { \ 'name': 'proselint', \ 'executable': 'proselint', \ 'command': 'proselint %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/c/cppcheck.vim b/ale_linters/c/cppcheck.vim index e4e8eb0c..7da5b3ab 100644 --- a/ale_linters/c/cppcheck.vim +++ b/ale_linters/c/cppcheck.vim @@ -15,5 +15,5 @@ call ale#linter#Define('c', { \ 'output_stream': 'both', \ 'executable': 'cppcheck', \ 'command_callback': 'ale_linters#c#cppcheck#GetCommand', -\ 'callback': 'ale#handlers#HandleCppCheckFormat', +\ 'callback': 'ale#handlers#cppcheck#HandleCppCheckFormat', \}) diff --git a/ale_linters/cmake/cmakelint.vim b/ale_linters/cmake/cmakelint.vim index baf9e235..78676518 100644 --- a/ale_linters/cmake/cmakelint.vim +++ b/ale_linters/cmake/cmakelint.vim @@ -20,5 +20,5 @@ call ale#linter#Define('cmake', { \ 'name': 'cmakelint', \ 'executable_callback': 'ale_linters#cmake#cmakelint#Executable', \ 'command_callback': 'ale_linters#cmake#cmakelint#Command', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/cpp/cppcheck.vim b/ale_linters/cpp/cppcheck.vim index adb3f450..49cab0d9 100644 --- a/ale_linters/cpp/cppcheck.vim +++ b/ale_linters/cpp/cppcheck.vim @@ -15,5 +15,5 @@ call ale#linter#Define('cpp', { \ 'output_stream': 'both', \ 'executable': 'cppcheck', \ 'command_callback': 'ale_linters#cpp#cppcheck#GetCommand', -\ 'callback': 'ale#handlers#HandleCppCheckFormat', +\ 'callback': 'ale#handlers#cppcheck#HandleCppCheckFormat', \}) diff --git a/ale_linters/css/csslint.vim b/ale_linters/css/csslint.vim index 641e9c3e..fb262497 100644 --- a/ale_linters/css/csslint.vim +++ b/ale_linters/css/csslint.vim @@ -14,5 +14,5 @@ call ale#linter#Define('css', { \ 'name': 'csslint', \ 'executable': 'csslint', \ 'command_callback': 'ale_linters#css#csslint#GetCommand', -\ 'callback': 'ale#handlers#HandleCSSLintFormat', +\ 'callback': 'ale#handlers#css#HandleCSSLintFormat', \}) diff --git a/ale_linters/css/stylelint.vim b/ale_linters/css/stylelint.vim index 8c1c3be1..5cb67a81 100644 --- a/ale_linters/css/stylelint.vim +++ b/ale_linters/css/stylelint.vim @@ -31,5 +31,5 @@ call ale#linter#Define('css', { \ 'name': 'stylelint', \ 'executable_callback': 'ale_linters#css#stylelint#GetExecutable', \ 'command_callback': 'ale_linters#css#stylelint#GetCommand', -\ 'callback': 'ale#handlers#HandleStyleLintFormat', +\ 'callback': 'ale#handlers#css#HandleStyleLintFormat', \}) diff --git a/ale_linters/go/gofmt.vim b/ale_linters/go/gofmt.vim index b38e4e98..337deef8 100644 --- a/ale_linters/go/gofmt.vim +++ b/ale_linters/go/gofmt.vim @@ -6,5 +6,5 @@ call ale#linter#Define('go', { \ 'output_stream': 'stderr', \ 'executable': 'gofmt', \ 'command': 'gofmt -e %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsError', +\ 'callback': 'ale#handlers#unix#HandleAsError', \}) diff --git a/ale_linters/go/golint.vim b/ale_linters/go/golint.vim index 8fe5b69b..cc807fe6 100644 --- a/ale_linters/go/golint.vim +++ b/ale_linters/go/golint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('go', { \ 'name': 'golint', \ 'executable': 'golint', \ 'command': 'golint %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/go/gosimple.vim b/ale_linters/go/gosimple.vim index 09ea40b8..4b7d340b 100644 --- a/ale_linters/go/gosimple.vim +++ b/ale_linters/go/gosimple.vim @@ -5,5 +5,5 @@ call ale#linter#Define('go', { \ 'name': 'gosimple', \ 'executable': 'gosimple', \ 'command': 'gosimple %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/go/govet.vim b/ale_linters/go/govet.vim index e605a299..f5bb47a3 100644 --- a/ale_linters/go/govet.vim +++ b/ale_linters/go/govet.vim @@ -6,5 +6,5 @@ call ale#linter#Define('go', { \ 'output_stream': 'stderr', \ 'executable': 'go', \ 'command': 'go vet %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsError', +\ 'callback': 'ale#handlers#unix#HandleAsError', \}) diff --git a/ale_linters/go/staticcheck.vim b/ale_linters/go/staticcheck.vim index 711e2ce2..c78b3209 100644 --- a/ale_linters/go/staticcheck.vim +++ b/ale_linters/go/staticcheck.vim @@ -5,5 +5,5 @@ call ale#linter#Define('go', { \ 'name': 'staticcheck', \ 'executable': 'staticcheck', \ 'command': 'staticcheck %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/haskell/ghc.vim b/ale_linters/haskell/ghc.vim index 270f8ab1..ee6370b5 100644 --- a/ale_linters/haskell/ghc.vim +++ b/ale_linters/haskell/ghc.vim @@ -6,7 +6,7 @@ call ale#linter#Define('haskell', { \ 'output_stream': 'stderr', \ 'executable': 'ghc', \ 'command': 'ghc -fno-code -v0 %t', -\ 'callback': 'ale#handlers#HandleGhcFormat', +\ 'callback': 'ale#handlers#haskell#HandleGHCFormat', \}) call ale#linter#Define('haskell', { @@ -14,5 +14,5 @@ call ale#linter#Define('haskell', { \ 'output_stream': 'stderr', \ 'executable': 'stack', \ 'command': 'stack ghc -- -fno-code -v0 %t', -\ 'callback': 'ale#handlers#HandleGhcFormat', +\ 'callback': 'ale#handlers#haskell#HandleGHCFormat', \}) diff --git a/ale_linters/haskell/hdevtools.vim b/ale_linters/haskell/hdevtools.vim index 92bb8279..3e71ffbb 100644 --- a/ale_linters/haskell/hdevtools.vim +++ b/ale_linters/haskell/hdevtools.vim @@ -5,5 +5,5 @@ call ale#linter#Define('haskell', { \ 'name': 'hdevtools', \ 'executable': 'hdevtools', \ 'command': 'hdevtools check -g -Wall -p %s %t', -\ 'callback': 'ale#handlers#HandleGhcFormat', +\ 'callback': 'ale#handlers#haskell#HandleGHCFormat', \}) diff --git a/ale_linters/help/proselint.vim b/ale_linters/help/proselint.vim index cd6cb7f0..62124502 100644 --- a/ale_linters/help/proselint.vim +++ b/ale_linters/help/proselint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('help', { \ 'name': 'proselint', \ 'executable': 'proselint', \ 'command': 'proselint %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/html/htmlhint.vim b/ale_linters/html/htmlhint.vim index 2edae372..ab1c6e02 100644 --- a/ale_linters/html/htmlhint.vim +++ b/ale_linters/html/htmlhint.vim @@ -28,5 +28,5 @@ call ale#linter#Define('html', { \ 'name': 'htmlhint', \ 'executable_callback': 'ale_linters#html#htmlhint#GetExecutable', \ 'command_callback': 'ale_linters#html#htmlhint#GetCommand', -\ 'callback': 'ale#handlers#HandleUnixFormatAsError', +\ 'callback': 'ale#handlers#unix#HandleAsError', \}) diff --git a/ale_linters/html/proselint.vim b/ale_linters/html/proselint.vim index 50ab5e49..9fd7d671 100644 --- a/ale_linters/html/proselint.vim +++ b/ale_linters/html/proselint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('html', { \ 'name': 'proselint', \ 'executable': 'proselint', \ 'command': 'proselint %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/javascript/jscs.vim b/ale_linters/javascript/jscs.vim index 52710bac..aef607ec 100644 --- a/ale_linters/javascript/jscs.vim +++ b/ale_linters/javascript/jscs.vim @@ -5,5 +5,5 @@ call ale#linter#Define('javascript', { \ 'name': 'jscs', \ 'executable': 'jscs', \ 'command': 'jscs -r unix -n -', -\ 'callback': 'ale#handlers#HandleUnixFormatAsError', +\ 'callback': 'ale#handlers#unix#HandleAsError', \}) diff --git a/ale_linters/javascript/jshint.vim b/ale_linters/javascript/jshint.vim index 6835eeb0..ddb8619f 100644 --- a/ale_linters/javascript/jshint.vim +++ b/ale_linters/javascript/jshint.vim @@ -43,5 +43,5 @@ call ale#linter#Define('javascript', { \ 'name': 'jshint', \ 'executable_callback': 'ale_linters#javascript#jshint#GetExecutable', \ 'command_callback': 'ale_linters#javascript#jshint#GetCommand', -\ 'callback': 'ale#handlers#HandleUnixFormatAsError', +\ 'callback': 'ale#handlers#unix#HandleAsError', \}) diff --git a/ale_linters/markdown/proselint.vim b/ale_linters/markdown/proselint.vim index 295b1d02..289d8819 100644 --- a/ale_linters/markdown/proselint.vim +++ b/ale_linters/markdown/proselint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('markdown', { \ 'name': 'proselint', \ 'executable': 'proselint', \ 'command': 'proselint %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/nroff/proselint.vim b/ale_linters/nroff/proselint.vim index ce5ff1e7..a23e56b1 100644 --- a/ale_linters/nroff/proselint.vim +++ b/ale_linters/nroff/proselint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('nroff', { \ 'name': 'proselint', \ 'executable': 'proselint', \ 'command': 'proselint %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/pod/proselint.vim b/ale_linters/pod/proselint.vim index aa7c9406..2eb83f56 100644 --- a/ale_linters/pod/proselint.vim +++ b/ale_linters/pod/proselint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('pod', { \ 'name': 'proselint', \ 'executable': 'proselint', \ 'command': 'proselint %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/pug/puglint.vim b/ale_linters/pug/puglint.vim index 4ded7ead..3f817c31 100644 --- a/ale_linters/pug/puglint.vim +++ b/ale_linters/pug/puglint.vim @@ -6,5 +6,5 @@ call ale#linter#Define('pug', { \ 'executable': 'pug-lint', \ 'output_stream': 'stderr', \ 'command': 'pug-lint -r inline %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsError', +\ 'callback': 'ale#handlers#unix#HandleAsError', \}) diff --git a/ale_linters/pyrex/cython.vim b/ale_linters/pyrex/cython.vim index 9168e092..bd5a447f 100644 --- a/ale_linters/pyrex/cython.vim +++ b/ale_linters/pyrex/cython.vim @@ -6,5 +6,5 @@ call ale#linter#Define('pyrex', { \ 'output_stream': 'stderr', \ 'executable': 'cython', \ 'command': 'cython --warning-extra -o ' . g:ale#util#nul_file . ' %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsError', +\ 'callback': 'ale#handlers#unix#HandleAsError', \}) diff --git a/ale_linters/python/flake8.vim b/ale_linters/python/flake8.vim index 71e04d21..a30dc03b 100644 --- a/ale_linters/python/flake8.vim +++ b/ale_linters/python/flake8.vim @@ -75,5 +75,5 @@ call ale#linter#Define('python', { \ {'callback': 'ale_linters#python#flake8#VersionCheck'}, \ {'callback': 'ale_linters#python#flake8#GetCommand'}, \ ], -\ 'callback': 'ale#handlers#HandlePEP8Format', +\ 'callback': 'ale#handlers#python#HandlePEP8Format', \}) diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim index 37788f11..217fcc47 100644 --- a/ale_linters/python/pylint.vim +++ b/ale_linters/python/pylint.vim @@ -22,5 +22,5 @@ call ale#linter#Define('python', { \ 'name': 'pylint', \ 'executable_callback': 'ale_linters#python#pylint#GetExecutable', \ 'command_callback': 'ale_linters#python#pylint#GetCommand', -\ 'callback': 'ale#handlers#HandlePEP8Format', +\ 'callback': 'ale#handlers#python#HandlePEP8Format', \}) diff --git a/ale_linters/rst/proselint.vim b/ale_linters/rst/proselint.vim index 4e555dae..018347ae 100644 --- a/ale_linters/rst/proselint.vim +++ b/ale_linters/rst/proselint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('rst', { \ 'name': 'proselint', \ 'executable': 'proselint', \ 'command': 'proselint %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/sass/sasslint.vim b/ale_linters/sass/sasslint.vim index 7d011907..bbe71255 100644 --- a/ale_linters/sass/sasslint.vim +++ b/ale_linters/sass/sasslint.vim @@ -4,5 +4,5 @@ call ale#linter#Define('sass', { \ 'name': 'sasslint', \ 'executable': 'sass-lint', \ 'command': 'sass-lint -v -q -f compact %t', -\ 'callback': 'ale#handlers#HandleCSSLintFormat', +\ 'callback': 'ale#handlers#css#HandleCSSLintFormat', \}) diff --git a/ale_linters/sass/stylelint.vim b/ale_linters/sass/stylelint.vim index a148b879..14d5467e 100644 --- a/ale_linters/sass/stylelint.vim +++ b/ale_linters/sass/stylelint.vim @@ -27,5 +27,5 @@ call ale#linter#Define('sass', { \ 'name': 'stylelint', \ 'executable_callback': 'ale_linters#sass#stylelint#GetExecutable', \ 'command_callback': 'ale_linters#sass#stylelint#GetCommand', -\ 'callback': 'ale#handlers#HandleStyleLintFormat', +\ 'callback': 'ale#handlers#css#HandleStyleLintFormat', \}) diff --git a/ale_linters/scss/sasslint.vim b/ale_linters/scss/sasslint.vim index ee4fdbb4..bd016465 100644 --- a/ale_linters/scss/sasslint.vim +++ b/ale_linters/scss/sasslint.vim @@ -4,5 +4,5 @@ call ale#linter#Define('scss', { \ 'name': 'sasslint', \ 'executable': 'sass-lint', \ 'command': 'sass-lint -v -q -f compact %t', -\ 'callback': 'ale#handlers#HandleCSSLintFormat', +\ 'callback': 'ale#handlers#css#HandleCSSLintFormat', \}) diff --git a/ale_linters/scss/stylelint.vim b/ale_linters/scss/stylelint.vim index edb4abb5..af462686 100644 --- a/ale_linters/scss/stylelint.vim +++ b/ale_linters/scss/stylelint.vim @@ -27,5 +27,5 @@ call ale#linter#Define('scss', { \ 'name': 'stylelint', \ 'executable_callback': 'ale_linters#scss#stylelint#GetExecutable', \ 'command_callback': 'ale_linters#scss#stylelint#GetCommand', -\ 'callback': 'ale#handlers#HandleStyleLintFormat', +\ 'callback': 'ale#handlers#css#HandleStyleLintFormat', \}) diff --git a/ale_linters/tex/proselint.vim b/ale_linters/tex/proselint.vim index b97fb3e4..35e764e2 100644 --- a/ale_linters/tex/proselint.vim +++ b/ale_linters/tex/proselint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('tex', { \ 'name': 'proselint', \ 'executable': 'proselint', \ 'command': 'proselint %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/texinfo/proselint.vim b/ale_linters/texinfo/proselint.vim index 7b265144..003e3a0f 100644 --- a/ale_linters/texinfo/proselint.vim +++ b/ale_linters/texinfo/proselint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('texinfo', { \ 'name': 'proselint', \ 'executable': 'proselint', \ 'command': 'proselint %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/text/proselint.vim b/ale_linters/text/proselint.vim index c1b81e95..281b4ffa 100644 --- a/ale_linters/text/proselint.vim +++ b/ale_linters/text/proselint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('text', { \ 'name': 'proselint', \ 'executable': 'proselint', \ 'command': 'proselint %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) diff --git a/ale_linters/xhtml/proselint.vim b/ale_linters/xhtml/proselint.vim index 07f7a291..dfad921f 100644 --- a/ale_linters/xhtml/proselint.vim +++ b/ale_linters/xhtml/proselint.vim @@ -5,5 +5,5 @@ call ale#linter#Define('xhtml', { \ 'name': 'proselint', \ 'executable': 'proselint', \ 'command': 'proselint %t', -\ 'callback': 'ale#handlers#HandleUnixFormatAsWarning', +\ 'callback': 'ale#handlers#unix#HandleAsWarning', \}) |