mirror of
https://github.com/dense-analysis/ale.git
synced 2026-11-19 02:01:03 +08:00
Add support for npm-groovy-lint (#4495)
* Add support for npm-groovy-lint * Add doc and tests for npm-groovy-lint * Use ale#util#FuzzyJSONDecode instead of json_decode
This commit is contained in:
1 parent
61248e1453
commit
9fe9f11521
11 files changed
+223
No files matched your search
@@ -0,0 +1,16 @@
|
||||
" Author: lucas-str <lucas.sturelle@ik.me>
|
||||
" Description: Integration of npm-groovy-lint for Groovy files.
|
||||
|
||||
call ale#Set('groovy_npmgroovylint_fix_options', '--fix')
|
||||
|
||||
function! ale#fixers#npmgroovylint#Fix(buffer) abort
|
||||
let l:executable = ale#Var(a:buffer, 'groovy_npmgroovylint_executable')
|
||||
let l:options = ale#Var(a:buffer, 'groovy_npmgroovylint_fix_options')
|
||||
|
||||
return {
|
||||
\ 'command': ale#Escape(l:executable)
|
||||
\ . (!empty(l:options) ? ' ' . l:options : '')
|
||||
\ . ' %t',
|
||||
\ 'read_temporary_file': 1,
|
||||
\}
|
||||
endfunction
|
||||
Reference in new issue
Block a user