Fork me on GitHub
#cursive
<
2021-12-07
>
Jakub Holý (HolyJak)11:12:57

Hi! Is it possible to make Cursive/II report an error when I have an unused alias? I do not see this particular inspection in Prefs - Editor - Inspections - Clojure (there is "unused require" but changing that to Error has on visible effect). I want to be loudly informed when I have an unused require/alias so that I can fix it before it fails on CI 🙏

indy15:12:57

I guess IntellliJ needs to have a “loudly” inform feature for that. You can click on the problems tab to see the issues. If you’re using IntelliJ to commit your files you could turn on Analyze Code to not allow you to commit unless all the problems are resolved. Or alternatively you could add clj-kondo to your git pre-commit hooks.

👀 1