This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-01
Channels
- # announcements (2)
- # architecture (8)
- # babashka (21)
- # beginners (75)
- # calva (3)
- # clj-kondo (6)
- # cljdoc (6)
- # cljs-dev (10)
- # clojars (4)
- # clojure (94)
- # clojure-europe (12)
- # clojure-nl (4)
- # clojure-norway (3)
- # clojure-spec (6)
- # clojure-uk (4)
- # clojurescript (51)
- # community-development (13)
- # core-async (3)
- # css (1)
- # cursive (8)
- # datomic (7)
- # girouette (3)
- # graphql (3)
- # improve-getting-started (4)
- # integrant (2)
- # interop (5)
- # jobs (12)
- # kaocha (1)
- # lsp (24)
- # malli (4)
- # membrane (13)
- # nextjournal (9)
- # off-topic (6)
- # re-frame (9)
- # reitit (2)
- # remote-jobs (1)
- # reveal (4)
- # ring (4)
- # scittle (3)
- # shadow-cljs (4)
- # spacemacs (1)
- # testing (2)
- # vrac (1)
Hey @borkdude!
A question about disabling specific linter / file
I have a file named unleash_client.clj
with a public method called enabled?
Currently, all usages of this method are removed though I get the following error when running lein lint:
=================== WARNING: Parents ======================
== Could not find any references to the following ==
===========================================================
af-wh-engmnt.utils.unleash-client/enabled?
================== WARNING: Children ======================
== The following have references to them, but their ==
== parents do not. ==
===========================================================
af-wh-engmnt.utils.unleash-client/get-context
Subprocess failed
I have tried to disable this warning for this specific file / method in a few ways using the https://cljdoc.org/d/clj-kondo/clj-kondo/2020.02.15/doc/configuration, nothing worked
Any ideas?my last attempt of the .clj-kondo/config.edn
file:
{:linters {:unresolved-symbol {:exclude [(clojure.core.match/match)
(compojure.core/routes)
(net.cgrand.enlive-html/deftemplate)
(manifold.deferred/let-flow')
(mount.core/defstate)]
:level :info}
:unused-referred-var {:level :warning
:exclude {taoensso.timbre [info spy debug error warn]}}
:unused-binding {:exclude-destructured-keys-in-fn-args true
:level :warning}
:unused-namespace {:exclude [taoensso.timbre]
:level :off}
:invalid-arity {:skip-args [clojure.core.match/match]}
:consistent-alias {:level :warning
:aliases {clojure.string string
clojure.set set
clojure.walk walk
af-wh-engmnt.utils.json json}}}
:output {:exclude-files ["src/af_wh_engmnt/utils/unleash_client.clj"]}
:skip-comments true
:lint-as {mount.core/defstate clojure.core/def}}
If you can provide a full standalone repro, I can take a look, but not with only the information you posted above.
sure I’ll provide one, thanks!
doubled checked, you’re right, it doesn’t come from clj-kondo, rather than a library called https://github.com/venantius/yagni I’ll search for a solution there, thanks!