This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-06-25
Channels
- # aws (6)
- # babashka (4)
- # beginners (30)
- # calva (82)
- # clj-kondo (8)
- # clojure (65)
- # clojure-brasil (1)
- # clojure-denmark (1)
- # clojure-europe (23)
- # clojure-italy (3)
- # clojure-nl (2)
- # clojure-norway (112)
- # clojure-sweden (1)
- # clojure-uk (6)
- # clojurescript (13)
- # cursive (3)
- # datahike (7)
- # datomic (5)
- # events (1)
- # fulcro (17)
- # instaparse (3)
- # introduce-yourself (2)
- # lsp (4)
- # malli (18)
- # nbb (5)
- # off-topic (46)
- # pedestal (4)
- # polylith (20)
- # practicalli (4)
- # reitit (4)
- # releases (1)
- # rewrite-clj (11)
- # sql (28)
Is there anything like the eastwood linter for keyword misspellings in kondo? That basically checks for “single-use keywords” with the assumption that those are likely typos. https://github.com/jonase/eastwood?tab=readme-ov-file#keyword-typos
not directly, but you can use the clj-kondo analysis https://github.com/clj-kondo/clj-kondo/blob/master/analysis/README.md to check for the frequency of keywords in your codebase
hmm. if I try that:
clj-kondo --lint src --config '{:analysis true}'
linting took 373ms, errors: 0, warnings: 0
I get no other output
clj-kondo --lint src --config '{:analysis true :output :edn}'
Outputs nothing at all (not even linting time)
Ah yes setting output format worked:
clj-kondo --lint src --config '{:analysis {:keywords true} :output {:format :edn}}'
perhaps this could be a linter for clojure-lsp if it hasn't already such a thing. (cc @UKFSJSM38)
I am using https://crates.io/crates/typos for this