mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Add option to clojure clj-kondo linter (#3812)
Allow define `clojure_clj_kondo_options` to customize command options for `clj-kondo`. The `--cache` in original command is now defined as default.
This commit is contained in:
15
test/linter/test_clj_kondo.vader
Normal file
15
test/linter/test_clj_kondo.vader
Normal file
@@ -0,0 +1,15 @@
|
||||
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 %t'
|
||||
|
||||
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'
|
||||
Reference in New Issue
Block a user