brcosta / clj-extras-plugin

Clojure Extras IntelliJ Plugin
https://plugins.jetbrains.com/plugin/18108-clojure-extras/
Apache License 2.0
56 stars 12 forks source link

Wrong `Namespace name does not match file name` warning when not using bundled clj-kondo #22

Closed MrEbbinghaus closed 2 years ago

MrEbbinghaus commented 2 years ago

I don't use the bundled clj-kondo binary.

❯ clj-kondo --version                                  
clj-kondo v2022.04.08

With that, I get a false-positive on the namespace name. I don't get that warning when calling clj-kondo by myself, or if I use the bundled version.

image

❯ clj-kondo --lint src/main/decide/ui/process/home.cljs
linting took 36ms, errors: 0, warnings: 0

The path for the file is in my content root is: src/main/decide/ui/process/home.cljs

In my deps.edn: {:paths ["src/main"]}

src/main is marked as a source root in IntelliJ.