Files
ale/test/linter/test_clj_kondo.vader
Christoph Frick a56d51ec1c 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
2022-09-22 07:24:01 +09:00

16 lines
470 B
Plaintext

Before:
call ale#assert#SetUpLinterTest('clojure', 'clj_kondo')
After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
AssertLinter 'clj-kondo', 'clj-kondo'
\ . ' --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 - --filename %s'