Skip to content

v1.15.0

Choose a tag to compare

@NoahTheDuke NoahTheDuke released this 01 May 14:54
· 169 commits to main since this release

New Rules

  • style/is-eq-order: Prefer (is (= 200 status)) over (is (= status 200)) when writing assertions.
  • style/prefer-for-with-literals: Prefer (for [item coll] {:a 1 :b item}) over (map #(hash-map :a 1 :b %) coll). (See #10.)

Added

  • -r/--require cli flag that can be used multiple times and require top-level config option that takes a vector of strings. These are loaded with load-file at run-time to allow for custom rules to be written and used. (See #8.) This is inherently unsafe, so don't run code you don't know.

Changed

  • Slight change to the patterns, now a final-position ?* or ?+ will immediately return the rest of the current input instead of accumulating it one-by-one.
  • Reformatted every file to use Tonsky's Better Clojure formatting.
  • lint/warn-on-reflection now checks that the file contains a proper ns form before issuing a diagnostic.
  • Updated README speed comparison chart.