mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-30 08:04:31 +08:00
Parse clj-kondo lines that don't include row/col (#3946)
Some custom linter hooks don't include these numbers.
This commit is contained in:
@@ -73,3 +73,17 @@ Execute(the clojure clj-kondo handler should be able to handle windows files):
|
||||
\ ale_linters#clojure#clj_kondo#HandleCljKondoFormat(0, [
|
||||
\ 'C:\my\operating\system\is\silly\core.clj:123:44: error: Unexpected )',
|
||||
\ ])
|
||||
|
||||
Execute(the clojure clj-kondo handler should be able to lines without row/col):
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
\ 'lnum': 0,
|
||||
\ 'col': 0,
|
||||
\ 'type': 'E',
|
||||
\ 'text': 'error: Unexpected )',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale_linters#clojure#clj_kondo#HandleCljKondoFormat(0, [
|
||||
\ 'test.clj::: error: Unexpected )',
|
||||
\ ])
|
||||
|
||||
Reference in New Issue
Block a user