splint reaches 1.0

i don't like waiting around for version 1.0. 0ver is funny but annoying. BE NOT AFRAID. so i've released splint 1.0.

it has disabling rules, it doesn't choke on any code i've thrown at it so far, and the set of rules it has is pretty great. there's loads more work to be done, such as moving most of the "lint" rules to "style", which will invariably break folks config lol, but why wait?

the specific updates this time are:

  • Add --parallel and --no-parallel to support running it single-threaded, defaults to true.
  • style/def-fn: Prefer (let [z f] (defn x [y] (z y))) over (def x (let [z f] (fn [y] (z y)))). (Based on the clj-kondo linter.)
  • lint/try-splicing: Prefer (try (do ~@body) (finally ...)) over (try ~@body (finally ...)).
  • lint/body-unquote-splicing: Prefer (binding [max mymax] (let [res# (do ~@body)] res#)) over (binding [max mymax] ~@body).
Liked the post? Hated the post? Felt nothing whatsoever about the post? Email me, and let me know!


Copyright © 2024 Noah Bogart
Website credits