This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-04-08
Channels
- # announcements (6)
- # babashka (78)
- # beginners (84)
- # bristol-clojurians (5)
- # calva (50)
- # chlorine-clover (45)
- # cider (14)
- # clj-kondo (18)
- # cljs-dev (2)
- # clojars (2)
- # clojure (387)
- # clojure-android (3)
- # clojure-europe (6)
- # clojure-gamedev (3)
- # clojure-germany (3)
- # clojure-nl (18)
- # clojure-spec (5)
- # clojure-uk (36)
- # clojurescript (8)
- # clojurex (1)
- # conjure (1)
- # css (1)
- # cursive (32)
- # data-science (1)
- # datomic (11)
- # docker (61)
- # duct (17)
- # emacs (7)
- # figwheel-main (3)
- # fulcro (19)
- # jobs-discuss (3)
- # joker (1)
- # leiningen (23)
- # malli (11)
- # mount (6)
- # off-topic (30)
- # pathom (14)
- # pedestal (2)
- # phzr (1)
- # re-frame (11)
- # reagent (3)
- # reitit (5)
- # ring-swagger (3)
- # rum (1)
- # shadow-cljs (113)
- # slack-help (9)
- # spacemacs (16)
- # specter (4)
- # sql (14)
- # vscode (2)
- # windows (3)
- # xtdb (12)
What would be the correct approach to make a custom linting rule which would disallow using :refer
in ns requires? This is a sort of in-house rule we have to keep things legible, and would be nice to get clj-kondo to warn about those 🙂
@suomi.esko We don't have any API to make custom linters, but since this kind of rule isn't specific to any one code base, I suggest we bake this into clj-kondo as an optional linter.
we already have: :use {:level :warning}
. we could make one for :refer
as well.
hello, Im running clj-kondo —lint .
on a clojure project and Im getting this error
./src/y/x/goal/core.clj:3:37: warning: #'integrant.repl/clear is referred but never used
./src/y/x/goal/core.clj:3:43: warning: #'integrant.repl/go is referred but never used
./src/y/x/goal/core.clj:3:46: warning: #'integrant.repl/halt is referred but never used
./src/y/x/goal/core.clj:3:51: warning: #'integrant.repl/prep is referred but never used
./src/y/x/goal/core.clj:3:56: warning: #'integrant.repl/init is referred but never used
./src/y/x/goal/core.clj:3:61: warning: #'integrant.repl/reset is referred but never used
./src/y/x/goal/core.clj:3:67: warning: #'integrant.repl/reset-all is referred but never used
but there is no explicit reference to integrant whatsoever in the file, here is the require block (it says line 3 right?)
(ns dojo.y.x.core
(:require [clojure.spec.alpha :as s]
[y.x.common.spec :as cs]
[y.x.onboarding.core :as onboarding]
[y.x.settings.user :as user]
[y.x.team.core :as team]
[y.helper.math :as math]
[y.helper.time :as time]
[y.integration.db.core :as db]
[y.integration.http.ff-gg :as asc]
[taoensso.timbre :as log]))
@plins which version of clj-kondo are you using? and this is a public repo so I can reproduce the problem?