Simplfiy zlint configuration and tests

This commit is contained in:
w0rp
2025-03-18 12:33:58 +00:00
parent 59c996c5b8
commit 9ce2c29df1
2 changed files with 6 additions and 14 deletions

View File

@@ -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',
\})