mirror of https://github.com/dense-analysis/ale
Pass input via stdin and filename as arg to clj-kondo (#4315)
This allows using linters like `:namespace-name-mismatch`. This replaces: https://github.com/dense-analysis/ale/pull/4109
This commit is contained in:
parent
e73f0f5cb3
commit
a56d51ec1c
|
@ -8,7 +8,8 @@ function! ale_linters#clojure#clj_kondo#GetCommand(buffer) abort
|
|||
|
||||
let l:command = 'clj-kondo'
|
||||
\ . ale#Pad(l:options)
|
||||
\ . ' --lint %t'
|
||||
\ . ' --lint -'
|
||||
\ . ' --filename %s'
|
||||
|
||||
return l:command
|
||||
endfunction
|
||||
|
|
|
@ -6,10 +6,10 @@ After:
|
|||
|
||||
Execute(The default command should be correct):
|
||||
AssertLinter 'clj-kondo', 'clj-kondo'
|
||||
\ . ' --cache --lint %t'
|
||||
\ . ' --cache --lint - --filename %s'
|
||||
|
||||
Execute(Extra options should be supported):
|
||||
let g:ale_clojure_clj_kondo_options = '--config ./clj-kondo/config.edn'
|
||||
|
||||
AssertLinter 'clj-kondo', 'clj-kondo'
|
||||
\ . ' --config ./clj-kondo/config.edn --lint %t'
|
||||
\ . ' --config ./clj-kondo/config.edn --lint - --filename %s'
|
||||
|
|
Loading…
Reference in New Issue