Skip to content

Commit a21d00d

Browse files
committed
Bump version for release
1 parent 5880389 commit a21d00d

File tree

8 files changed

+36
-34
lines changed

8 files changed

+36
-34
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This changelog is loose. Versions are not semantic, they are incremental. Splint
44

55
## Unreleased
66

7+
## 1.21.0 - 2025-06-24
8+
79
### New Rules
810

911
- `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.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ More explicit instructions can be found in the [installation][installation], [us
2121
### Clojure CLI
2222

2323
```clojure lazytest/skip=true
24-
:aliases {:splint {:extra-deps {io.github.noahtheduke/splint {:mvn/version "1.20.0"}
24+
:aliases {:splint {:extra-deps {io.github.noahtheduke/splint {:mvn/version "1.21.0"}
2525
org.clojure/clojure {:mvn/version "1.11.1"}}
2626
:main-opts ["-m" "noahtheduke.splint"]}}
2727
```
@@ -33,7 +33,7 @@ Run with `clojure -M:splint [args...]`.
3333
Add this to `project.clj`:
3434

3535
```clojure lazytest/skip=true
36-
:profiles {:dev {:dependencies [[io.github.noahtheduke/splint "1.20.0"]
36+
:profiles {:dev {:dependencies [[io.github.noahtheduke/splint "1.21.0"]
3737
[org.clojure/clojure "1.11.1"]]}}
3838
:aliases {"splint" ["run" "-m" "noahtheduke.splint"]})
3939
```

docs/installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ When used in a project as a library, put it in an alias to make it easier to inv
55
## Clojure CLI
66

77
```clojure
8-
:aliases {:splint {:extra-deps {io.github.noahtheduke/splint {:mvn/version "1.20.0"}
8+
:aliases {:splint {:extra-deps {io.github.noahtheduke/splint {:mvn/version "1.21.0"}
99
org.clojure/clojure {:mvn/version "1.11.1"}}
1010
:main-opts ["-m" "noahtheduke.splint"]}}
1111
```
@@ -17,7 +17,7 @@ Run with `clojure -M:splint [args...]`.
1717
Add this to `project.clj`:
1818

1919
```clojure
20-
:profiles {:dev {:dependencies [[io.github.noahtheduke/splint "1.20.0"]
20+
:profiles {:dev {:dependencies [[io.github.noahtheduke/splint "1.21.0"]
2121
[org.clojure/clojure "1.11.1"]]}}
2222
:aliases {"splint" ["run" "-m" "noahtheduke.splint"]}
2323
```
@@ -34,7 +34,7 @@ In the meantime, it runs fast on babashka and can be installed using `bbin`:
3434
$ bbin install io.github.noahtheduke/splint
3535
{:coords
3636
#:git{:url "https://github.com/noahtheduke/splint",
37-
:tag "v1.20.0",
37+
:tag "v1.21.0",
3838
:sha "..."},
3939
:lib io.github.noahtheduke/splint}
4040
```

docs/rules/lint.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ a `do` to force it into 'expression position'.
102102

103103
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
104104
| ------------------ | ----- | ----------- | ------------- | --------------- |
105-
| true | false | false | <<next>> | <<next>> |
105+
| true | false | false | 1.21.0 | 1.21.0 |
106106

107107
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.
108108

@@ -307,7 +307,7 @@ with the same name, but it's good to catch these things early too.
307307

308308
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
309309
| ------------------ | ---- | ----------- | ------------- | --------------- |
310-
| true | true | false | <<next>> | <<next>> |
310+
| true | true | false | 1.21.0 | 1.21.0 |
311311

312312
**NOTE:** Requires Clojure version 1.11.0.
313313

@@ -376,7 +376,7 @@ even?
376376

377377
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
378378
| ------------------ | ---- | ----------- | ------------- | --------------- |
379-
| true | true | false | <<next>> | <<next>> |
379+
| true | true | false | 1.21.0 | 1.21.0 |
380380

381381
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.
382382

@@ -558,7 +558,7 @@ Two `not`s cancel each other out.
558558

559559
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
560560
| ------------------ | ---- | ----------- | ------------- | --------------- |
561-
| true | true | false | <<next>> | <<next>> |
561+
| true | true | false | 1.21.0 | 1.21.0 |
562562

563563
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.
564564

@@ -720,7 +720,7 @@ Empty loops with nested `when` can be `while`. Doesn't apply if the final expr o
720720

721721
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
722722
| ------------------ | ---- | ----------- | ------------- | --------------- |
723-
| true | true | false | <<next>> | <<next>> |
723+
| true | true | false | 1.21.0 | 1.21.0 |
724724

725725
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
726726

@@ -800,7 +800,7 @@ In interop scenarios, it can be necessary to add a type hint to mark a function'
800800

801801
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
802802
| ------------------ | ---- | ----------- | ------------- | --------------- |
803-
| true | true | false | <<next>> | <<next>> |
803+
| true | true | false | 1.21.0 | 1.21.0 |
804804

805805
Try without a `catch` (or `finally`) clause is a no-op, and indicates something got changed or broken at some point.
806806

@@ -842,7 +842,7 @@ With the default style `:accept-finally`, both `catch` and `finally` clauses are
842842

843843
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
844844
| ------------------ | ---- | ----------- | ------------- | --------------- |
845-
| true | true | false | <<next>> | <<next>> |
845+
| true | true | false | 1.21.0 | 1.21.0 |
846846

847847
If the bind is a symbol and the expr is the same symbol, just use the expr directly. (Otherwise, indicates a potential bug.)
848848

@@ -963,7 +963,7 @@ In the `ns` form prefer `:require :as` over `:require :refer` over `:require :re
963963

964964
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
965965
| ------------------ | ---- | ----------- | ------------- | --------------- |
966-
| true | true | false | <<next>> | <<next>> |
966+
| true | true | false | 1.21.0 | 1.21.0 |
967967

968968
`clojure.core/rand-int` returns an integer between `0` (inclusive) and `n` (exclusive), meaning that a call to `(rand-int 1)` will always return `0`.
969969

docs/rules/style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ The core builder functions are helpful when creating an object from an opaque se
10561056

10571057
| Enabled by default | Safe | Autocorrect | Version Added | Version Updated |
10581058
| ------------------ | ---- | ----------- | ------------- | --------------- |
1059-
| true | true | false | <<next>> | <<next>> |
1059+
| true | true | false | 1.21.0 | 1.21.0 |
10601060

10611061
`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.
10621062

docs/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
```text
44
$ clojure -M:splint --help
5-
splint v1.20.0
5+
splint v1.21.0
66
77
Usage:
88
splint [options]

resources/SPLINT_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.20.0
1+
1.21.0

resources/config/default.edn

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
{:description "Don't `(catch Throwable ...)`, catch specific Errors or Exceptions."
2424
:enabled true
2525
:safe false
26-
:added "<<next>>"
27-
:updated "<<next>>"
26+
:added "1.21.0"
27+
:updated "1.21.0"
2828
:throwables #{Throwable}
2929
:links ["https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Error.html"]}
3030

@@ -79,8 +79,8 @@
7979
lint/existing-constant
8080
{:description "Use `clojure.math/PI` and `clojure.math/E` when appropriate instead of approximating."
8181
:enabled true
82-
:added "<<next>>"
83-
:updated "<<next>>"}
82+
:added "1.21.0"
83+
:updated "1.21.0"}
8484

8585
lint/fn-wrapper
8686
{:description "Avoid wrapping functions in pass-through anonymous function defitions."
@@ -94,8 +94,8 @@
9494
lint/identical-branches
9595
{:description "Both branches of an if shouldn't be identical."
9696
:enabled true
97-
:added "<<next>>"
98-
:updated "<<next>>"}
97+
:added "1.21.0"
98+
:updated "1.21.0"}
9999

100100
lint/if-else-nil
101101
{:description "Prefer `when` to `(if x y nil)`."
@@ -144,8 +144,8 @@
144144
lint/incorrectly-swapped
145145
{:description "Looks for `(let [a b b a] ...)` that probably should use destructuring."
146146
:enabled true
147-
:added "<<next>>"
148-
:updated "<<next>>"}
147+
:added "1.21.0"
148+
:updated "1.21.0"}
149149

150150
lint/into-literal
151151
{:description "Prefer `vec` or `set` to `(into [] ...)`."
@@ -190,8 +190,8 @@
190190
lint/min-max
191191
{:description "Check for clamping where the min will override the max."
192192
:enabled true
193-
:added "<<next>>"
194-
:updated "<<next>>"}
193+
:added "1.21.0"
194+
:updated "1.21.0"}
195195

196196
lint/misplaced-type-hint
197197
{:description "Put type hint on function's param vector, not function name."
@@ -210,16 +210,16 @@
210210
lint/no-catch
211211
{:description "`try` calls should have at least 1 `catch` or `finally` clause."
212212
:enabled true
213-
:added "<<next>>"
214-
:updated "<<next>>"
213+
:added "1.21.0"
214+
:updated "1.21.0"
215215
:chosen-style :accept-finally
216216
:supported-styles [:accept-finally :only-catch]}
217217

218218
lint/no-op-assignment
219219
{:description "Don't bind a symbol to the same symbol."
220220
:enabled true
221-
:added "<<next>>"
222-
:updated "<<next>>"}
221+
:added "1.21.0"
222+
:updated "1.21.0"}
223223

224224
lint/not-empty?
225225
{:description "Looks for `(not (empty?))` which matters for nil-punning."
@@ -249,8 +249,8 @@
249249
lint/rand-int-one
250250
{:description "A call to `(rand-int 1)` will always return 0."
251251
:enabled true
252-
:added "<<next>>"
253-
:updated "<<next>>"}
252+
:added "1.21.0"
253+
:updated "1.21.0"}
254254

255255
lint/redundant-call
256256
{:description "Certain core functions return the arg when given a single arg."
@@ -692,8 +692,8 @@
692692
style/prefixed-libspecs
693693
{:description "Prefer flat require libspecs over nested/prefixed libspecs."
694694
:enabled true
695-
:added "<<next>>"
696-
:updated "<<next>>"}
695+
:added "1.21.0"
696+
:updated "1.21.0"}
697697

698698
style/reduce-str
699699
{:description "Use clojure.string for efficient string concatenation."

0 commit comments

Comments
 (0)