This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-12-12
Channels
- # adventofcode (42)
- # aleph (10)
- # announcements (1)
- # asami (138)
- # babashka (7)
- # beginners (7)
- # biff (13)
- # cider (7)
- # clj-kondo (15)
- # clojure (53)
- # clojure-austin (11)
- # clojure-belgium (2)
- # clojure-europe (23)
- # clojure-nl (1)
- # clojure-norway (55)
- # clojure-sweden (5)
- # clojure-uk (4)
- # cryogen (7)
- # cursive (63)
- # datomic (5)
- # eastwood (6)
- # emacs (31)
- # fulcro (7)
- # hyperfiddle (9)
- # introduce-yourself (3)
- # java (11)
- # lsp (10)
- # malli (14)
- # membrane (35)
- # off-topic (13)
- # portal (12)
- # prelude (1)
- # releases (2)
- # ring-swagger (27)
- # shadow-cljs (8)
- # timbre (25)
https://cljdoc.org/d/io.github.noahtheduke/splint/1.11/doc/home: a linter focused on style and code shape
v1.11 - oops it's been 4.5 months since last release
• Added some new rules:
◦ lint/underscore-in-namespace
: Prefer (ns foo-bar)
to (ns foo_bar)
.
◦ performance/dot-equals
: Prefer (.equals "foo" bar)
to (= "foo" bar)
. Only cares about string literals right now.
◦ performance/single-literal-merge
: Prefer (assoc m :a 1 :b 2)
to (merge m {:a 1 :b 2})
. Has :single
and :multiple
styles, either a single assoc
call or threaded multiple calls.
◦ performance/into-transducer
: Prefer (into [] (map f) coll)
to (into [] (map f coll))
. Checks every clojure.core transducer.
◦ style/trivial-for
: Prefer (map f items)
over (for [item items] (f item))
.
◦ style/reduce-str
: Prefer (clojure.string/join coll)
over (reduce str coll)
.
• Changed existing rules:
◦ Set style/set-literal-as-fn
default to false
. It's not idiomatic and I don't know why I added it in the first place.
• Added a global
key to .splint.edn
config, which will apply to all rules.
• Support :excludes
in both global
and rules-specific configs. Accepts a vector of java.nio.file.FileSystems/getPathMatcher
globs, or can be prefixed with glob:
or regex:
to specifically choose the glob syntax or regex syntax. If added to global
, the files will be removed from the potential set of files to check.
Follow-up in #splint