mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Simplfiy zlint configuration and tests
This commit is contained in:
@@ -22,13 +22,9 @@ function! ale_linters#zig#zlint#Handle(buffer, lines) abort
|
||||
return l:output
|
||||
endfunction
|
||||
|
||||
function! ale_linters#zig#zlint#GetCommand(buffer) abort
|
||||
return ale#Escape(ale#Var(a:buffer, 'zig_zlint_executable')) . ' %s -f gh'
|
||||
endfunction
|
||||
|
||||
call ale#linter#Define('zig', {
|
||||
\ 'name': 'zlint',
|
||||
\ 'executable': {b -> ale#Var(b, "zig_zlint_executable")},
|
||||
\ 'command': function('ale_linters#zig#zlint#GetCommand'),
|
||||
\ 'command': '%e %s -f gh',
|
||||
\ 'callback': 'ale_linters#zig#zlint#Handle',
|
||||
\})
|
||||
|
||||
Reference in New Issue
Block a user