You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ This changelog is loose. Versions are not semantic, they are incremental. Splint
4
4
5
5
## Unreleased
6
6
7
+
## 1.21.0 - 2025-06-24
8
+
7
9
### New Rules
8
10
9
11
-`style/prefixed-libspecs`: Prefer flat `require` libspecs to prefixed/nested libspecs: `[clojure.string :as str] [clojure.set :as set]` over `[clojure [string :as str] [set :as set]]`. Currently does not support suggesting alternatives.
Throwable is a superclass of all Errors and Exceptions in Java. Catching Throwable will also catch Errors, which indicate a serious problem that most applications should not try to catch. If there is a single specific Error you need to catch, use it directly.
108
108
@@ -307,7 +307,7 @@ with the same name, but it's good to catch these things early too.
307
307
308
308
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
Returning branches of an `if` or `cond` should not be identical. There's likely a bug in one of the branches. In `cond` branches, only checks consecutive branches as order of checks might be important otherwise.
382
382
@@ -558,7 +558,7 @@ Two `not`s cancel each other out.
558
558
559
559
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
It can be necessary to swap two variables. This usually requires an intermediate variable, but with destructuring, Clojure can perform this in a single line. However, without an intermediate variable or destructuring, manually swapping can result in both variables ending up with the same value.
564
564
@@ -720,7 +720,7 @@ Empty loops with nested `when` can be `while`. Doesn't apply if the final expr o
720
720
721
721
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
Clamping a value between two numbers requires saying at max of the lower number and a min of the higher number. If the min is lower than the max, then the min
726
726
@@ -800,7 +800,7 @@ In interop scenarios, it can be necessary to add a type hint to mark a function'
800
800
801
801
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
`require` supports prefixed libspecs, shared "parent" namespaces with subsections in separate vectors. This allows for 'DRY' libspecs but harms readability and discoverability while not actually providing a great reduction in characters.
0 commit comments