The flycheck-define-checker/clj-kondo-cljs/basic test fails with an additional error at line3 column:5:
Test flycheck-define-checker/clj-kondo-cljs/basic condition:
(ert-test-failed
((should
(equal
(mapcar ... expected)
(mapcar ... flycheck-current-errors)))
:form
(equal
(#s(flycheck-error #<killed buffer> clj-kondo-cljs "d:/src/flycheck-clj-kondo/test/corpus/basic.cljs" 11 3 "use :else as the catch-all test expression in cond" warning nil nil ...)
#s(flycheck-error #<killed buffer> clj-kondo-cljs "d:/src/flycheck-clj-kondo/test/corpus/basic.cljs" 18 3 "use :else as the catch-all test expression in cond" warning nil nil ...))
(#s(flycheck-error #<killed buffer> clj-kondo-cljs "d:/src/flycheck-clj-kondo/test/corpus/basic.cljs" 3 5 "Namespace name does not match file name: cond-without-else1" error nil nil ...)
#s(flycheck-error #<killed buffer> clj-kondo-cljs "d:/src/flycheck-clj-kondo/test/corpus/basic.cljs" 11 3 "use :else as the catch-all test expression in cond" warning nil nil ...)
#s(flycheck-error #<killed buffer> clj-kondo-cljs "d:/src/flycheck-clj-kondo/test/corpus/basic.cljs" 18 3 "use :else as the catch-all test expression in cond" warning nil nil ...)))
:value nil :explanation
(proper-lists-of-different-length 2 3
(#s(flycheck-error #<killed buffer> clj-kondo-cljs "d:/src/flycheck-clj-kondo/test/corpus/basic.cljs" 11 3 "use :else as the catch-all test expression in cond" warning nil nil ...)
#s(flycheck-error #<killed buffer> clj-kondo-cljs "d:/src/flycheck-clj-kondo/test/corpus/basic.cljs" 18 3 "use :else as the catch-all test expression in cond" warning nil nil ...))
(#s(flycheck-error #<killed buffer> clj-kondo-cljs "d:/src/flycheck-clj-kondo/test/corpus/basic.cljs" 3 5 "Namespace name does not match file name: cond-without-else1" error nil nil ...)
#s(flycheck-error #<killed buffer> clj-kondo-cljs "d:/src/flycheck-clj-kondo/test/corpus/basic.cljs" 11 3 "use :else as the catch-all test expression in cond" warning nil nil ...)
#s(flycheck-error #<killed buffer> clj-kondo-cljs "d:/src/flycheck-clj-kondo/test/corpus/basic.cljs" 18 3 "use :else as the catch-all test expression in cond" warning nil nil ...))
first-mismatch-at 0)))
FAILED 5/6 flycheck-define-checker/clj-kondo-cljs/basic (0.179791 sec)
It appears that clj-kondo now (rightly) errors namespaces that do not correspond to the right filesystem path, and thus either requires the test to be split into two files or add the new error into the test's error list?
Hi,
it appears one of the recent
clj-kondo
releases have broken the cljs basic tests, whereby a new namespace error is being thrown:Namespace name does not match file name: cond-without-else1
To reproduce:
eldev test
from within the source directoryIt appears that clj-kondo now (rightly) errors namespaces that do not correspond to the right filesystem path, and thus either requires the test to be split into two files or add the new error into the test's error list?
https://github.com/borkdude/flycheck-clj-kondo/blob/35daaccc75b0367844b249a8cb05bf73bcebd52a/test/corpus/basic.cljs#L1
Thanks