@@ -2,6 +2,66 @@ Follow the news and releases on [Mastodon](https://fosstodon.org/@golangcilint)
2
2
3
3
There is the most valuable changes log:
4
4
5
+ ### v1.57.0
6
+
7
+ 1 . New linters
8
+ * ` copyloopvar ` : https://github.com/karamaru-alpha/copyloopvar
9
+ * ` intrange ` : https://github.com/ckaznocha/intrange
10
+ 2 . Updated linters
11
+ * ` dupword ` : from 0.0.13 to 0.0.14
12
+ * ` gci ` : from 0.12.1 to 0.12.3
13
+ * ` ginkgolinter ` : from 0.15.2 to 0.16.1 (new option ` force-expect-to ` , ` validate-async-intervals ` , and ` forbid-spec-pollution ` )
14
+ * ` go-critic ` : from 0.11.1 to 0.11.2
15
+ * ` go-critic ` : support of ` enable-all ` and ` disable-all ` options
16
+ * ` go-spancheck ` : from 0.5.2 to 0.5.3
17
+ * ` gomodguard ` : from 1.3.0 to 1.3.1
18
+ * ` govet ` : deprecation of ` check-shadowing ` ⚠️
19
+ * ` govet ` : disable temporarily ` httpresponse ` because of a bug https://github.com/golang/go/issues/66259
20
+ * ` misspell ` : add ` extra-words `
21
+ * ` musttag ` : from 0.8.0 to 0.9.0
22
+ * ` nakedret ` : from 2.0.2 to 2.0.4
23
+ * ` paralleltest ` : from 1.0.9 to 1.0.10
24
+ * ` perfsprint ` : from 0.6.0 to 0.7.1 (new option ` strconcat ` )
25
+ * ` protogetter ` : from 0.3.4 to 0.3.5
26
+ * ` revive ` : add ` exclude ` option
27
+ * ` sloglint ` : from 0.4.0 to 0.5.0 (new option ` no-global ` )
28
+ * ` staticcheck ` : from 0.4.6 to 0.4.7
29
+ * ` testifylint ` : from 1.1.2 to 1.2.0 (new option ` bool-compare ` )
30
+ * ` unconvert ` : to HEAD (new options ` fast-math ` and ` safe ` )
31
+ * ` wrapcheck ` : from 2.8.1 to 2.8.3
32
+ * Disable ` copyloopvar ` and ` intrange ` on Go < 1.22
33
+ 3 . Enhancements
34
+ * 🧩 New custom linters system https://golangci-lint.run/plugins/module-plugins/
35
+ * 🎉 Allow running only a specific linter without modifying the file configuration (` --enable-only ` )
36
+ * Allow custom sort order for the reports (` output.sort-order ` )
37
+ * Automatically adjust the maximum concurrency to the container CPU quota if ` run.concurrency=0 `
38
+ * Add ` verify ` command to check the configuration against the JSON Schema
39
+ * Option to strictly follow Go generated file convention (` issues.exclude-generated-strict ` )
40
+ * Syntax to not override ` severity ` from linters (` @linter ` )
41
+ * Use severities from ` gosec `
42
+ * Create automatically directory related to ` output.formats.path `
43
+ * Use the first issue without inline on ` mergeLineIssues ` on multiple issues
44
+ 4 . Misc.
45
+ * ⚠️ Inactivate deprecated linters (` deadcode ` , ` exhaustivestruct ` , ` golint ` , ` ifshort ` , ` interfacer ` , ` maligned ` , ` nosnakecase ` , ` scopelint ` , ` structcheck ` , ` varcheck ` )
46
+ * ⚠️ Deprecated CLI flags have been removed (deprecated since 2018)
47
+ * ⚠️ Move ` show-stats ` option from ` run ` to ` output ` configuration section
48
+ * ⚠️ Replace ` run.skip-xxx ` options by ` issues.exclude-xxx ` options
49
+ * ⚠️ Replace ` output.format ` by ` output.formats ` with a new file configuration syntax
50
+ * Internal rewrite of the CLI
51
+ * Improve 'no go files to analyze' message
52
+ * Use ` GOTOOLCHAIN=auto ` inside the Docker images
53
+ 5 . Documentation
54
+ * ⚠️ Define the linter deprecation cycle https://golangci-lint.run/product/roadmap/#linter-deprecation-cycle
55
+ * 🎉 Use information from the previous release to create linter pages
56
+ * 🎉 Publish JSON schema on https://golangci-lint.run/jsonschema/golangci.jsonschema.json
57
+ * Reorganize documentation pages
58
+ * Add an explanation about the configuration file inside golangci-lint repository
59
+
60
+ ** ⚠️ Important ⚠️**
61
+
62
+ 1 . Deprecated linters are inactivated, you still need to disable them if you are using ` enable-all ` .
63
+ 2 . Deprecated CLI flags (about linter settings and ` deadline ` ) have been removed.
64
+
5
65
### v1.56.2
6
66
7
67
1 . updated linters
@@ -13,7 +73,7 @@ There is the most valuable changes log:
13
73
2 . misc.
14
74
* Fix missing version in Docker image
15
75
3 . Documentation
16
- * Explain the limitation of new-from-rev and new-from-patch
76
+ * Explain the limitation of ` new-from-rev ` and ` new-from-patch `
17
77
18
78
### v1.56.1
19
79
@@ -26,7 +86,7 @@ There is the most valuable changes log:
26
86
### v1.56.0
27
87
28
88
1 . new linters
29
- * feat: add ` spancheck ` linter https://github.com/jjti/go-spancheck
89
+ * ` spancheck ` : https://github.com/jjti/go-spancheck
30
90
2 . updated linters
31
91
* ` depguard ` : from 2.1.0 to 2.2.0
32
92
* ` exhaustive ` : from 0.11.0 to 0.12.0
@@ -59,15 +119,15 @@ There is the most valuable changes log:
59
119
3 . misc.
60
120
* 🎉 go1.22 support
61
121
* Implement stats per linter with a flag
62
- * fix: make versioning inside Docker image consistent with binaries
63
- * fix: parse Go RC version
122
+ * Make versioning inside Docker image consistent with binaries
123
+ * Parse Go RC version
64
124
4 . Documentation
65
- * Add missing fields to .golangci.reference.yml
66
- * Fix noctx description
67
- * Improve .golangci.reference.yml defaults
68
- * Improve typecheck FAQ
69
- * Note that ` exhaustruct ` struct regular expressions are expected to match the entire ` package/name/structname `
70
- * Adjust wrapcheck ignoreSigs to new defaults
125
+ * Fix ` noctx ` description
126
+ * Add missing fields to ` .golangci.reference.yml `
127
+ * Improve ` .golangci.reference.yml ` defaults
128
+ * ` typecheck ` : improve FAQ
129
+ * ` exhaustruct ` : note that struct regular expressions are expected to match the entire ` package/name/structname `
130
+ * ` wrapcheck ` : adjust ` ignoreSigs ` to new defaults
71
131
72
132
** Important**
73
133
@@ -1183,7 +1243,7 @@ IMPORTANT: `varcheck` and `deadcode` has been removed of default linters.
1183
1243
# ## April 2020
1184
1244
1185
1245
1. Add new linters : ` testpackage` , `nestif`, `godot`, `gomodguard`, `asciicheck`
1186
- 2. Add github actions output format
1246
+ 2. Add GitHub Actions output format
1187
1247
3. Update linters : ` wsl` , `gomodguard`, `gosec`
1188
1248
4. Support `disabled-tags` setting for `gocritic`
1189
1249
5. Mitigate OOM and "failed prerequisites"
@@ -1197,7 +1257,7 @@ IMPORTANT: `varcheck` and `deadcode` has been removed of default linters.
1197
1257
2. Add new linters : ` funlen` , `whitespace` (with auto-fix) and `godox`
1198
1258
3. Update linters : ` gochecknoglobals` , `scopelint`, `gosec`
1199
1259
4. Provide pre-built binary for ARM and FreeBSD
1200
- 5. 2. Fix false-positives in `unused`
1260
+ 5. Fix false-positives in `unused`
1201
1261
6. Support `--skip-dirs-use-default`
1202
1262
7. Add support for bash completions
1203
1263
0 commit comments