Is it possible to create a custom linter that WARNS me if a keyword has only one occurrence in the project?
This is only possible with the static analysis output if you run it yourself over the whole project which you could for example do in a CI job. https://github.com/clj-kondo/clj-kondo/tree/master/analysis
eastwood has this, tho that doesn't have the snappy responsiveness of clj-kondo
I'm doing an histogram not sure why but it is awesome
Question: does it includes "syntactic keywords" like :keys in destructure?
not sure
you can test in clojure-lsp if you see a reference to it
It occurred to me today that clj-kondo warns about this:
()) <- unexpected paren
x
(assoc 1 nil)
but then doesn't find any other warnings anymore. since it already knows the param was unexpected (or missing, etc), I guess we could try to resume as if the (un)expected character was(n't) thereFor mismatched parens this is easier to do than the rest of the options. The edamame issue was more general
what I'm trying in clj-kondo: • mismatched: keep on linting with expected delimiter • trailing: ignore • EOF: keep on linting with expected delimiter
Keep on linting after paren mismatches, omissions or extra trailing
whoops, fixed last explanation.
sounds like what you have in edamame and like what i've proposed for edamame