mirror of
https://github.com/dense-analysis/ale
synced 2025-02-06 15:32:10 +00:00
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'
|
let l:command = 'clj-kondo'
|
||||||
\ . ale#Pad(l:options)
|
\ . ale#Pad(l:options)
|
||||||
\ . ' --lint %t'
|
\ . ' --lint -'
|
||||||
|
\ . ' --filename %s'
|
||||||
|
|
||||||
return l:command
|
return l:command
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -6,10 +6,10 @@ After:
|
|||||||
|
|
||||||
Execute(The default command should be correct):
|
Execute(The default command should be correct):
|
||||||
AssertLinter 'clj-kondo', 'clj-kondo'
|
AssertLinter 'clj-kondo', 'clj-kondo'
|
||||||
\ . ' --cache --lint %t'
|
\ . ' --cache --lint - --filename %s'
|
||||||
|
|
||||||
Execute(Extra options should be supported):
|
Execute(Extra options should be supported):
|
||||||
let g:ale_clojure_clj_kondo_options = '--config ./clj-kondo/config.edn'
|
let g:ale_clojure_clj_kondo_options = '--config ./clj-kondo/config.edn'
|
||||||
|
|
||||||
AssertLinter 'clj-kondo', 'clj-kondo'
|
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
Block a user