This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-29
Channels
- # announcements (7)
- # asami (13)
- # babashka (22)
- # beginners (52)
- # calva (95)
- # clj-kondo (14)
- # cljs-dev (7)
- # clojars (5)
- # clojure (94)
- # clojure-austin (5)
- # clojure-dev (15)
- # clojure-europe (25)
- # clojure-nl (18)
- # clojure-uk (15)
- # clojuredesign-podcast (28)
- # clojurescript (63)
- # copenhagen-clojurians (1)
- # cursive (3)
- # datalevin (7)
- # datascript (13)
- # datomic (13)
- # duct (14)
- # emacs (24)
- # events (1)
- # fulcro (13)
- # graphql (7)
- # kaocha (4)
- # lambdaisland (6)
- # lsp (22)
- # music (5)
- # off-topic (24)
- # rdf (1)
- # re-frame (3)
- # reitit (9)
- # shadow-cljs (23)
- # sql (15)
- # testing (4)
- # tools-build (6)
- # vim (7)
- # vscode (7)
- # xtdb (21)
Hi 👋 . Just wondering if there is a reason that :namespace-definitions
doesn’t include the :end-row
and :end-col
keys, or whether they are something that could be added?
@U06790Y4E does you mean, the end of the ns
form?
Yes, given :row
and :col
correspond to the start of the ns
form (I think), it would be good to have end-row
and end-col
correspond to the end of the ns
form. Like how var-definitions
works.
Sure. I am using the analysis data to find things and extract the text from the source strings. I need the start and end for this.
couple of things I always struggled a bit with clj-kondo config (also because I haven't done it so much)
• I never know how to exclude something properly, for example for unresolved-symbol
it takes a list while for unused-referred-var
requires a map.
And also not all the linters can have an exclude right?
• silly mistakes in the config just fail silently, for example I had :unused-import
as top level key instead of under linters
and you don't get any warnings. I think in theory is possible to do a schema check of the whole config right to see that the structure/types are correct?
Anyone has thoughts about these two points?
@andrea.crotti All linter docs are in https://github.com/clj-kondo/clj-kondo/blob/master/doc/linters.md There could be some improvements to linting clj-kondo's own config. There's also ready something in place for that.
yeah I know I use the docs, so every possible configuration would be mentioned there then?
wherever exclude
is not mentioned it just means is not supported for that linter right?
ok cool