Skip to content

Commit cab8d9b

Browse files
committed
chore: prepare release
1 parent a39e032 commit cab8d9b

File tree

4 files changed

+4779
-0
lines changed

4 files changed

+4779
-0
lines changed

CHANGELOG.md

+38
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,44 @@ If you value it, consider supporting us, we appreciate it! ❤️
77
[![Open Collective backers and sponsors](https://img.shields.io/badge/OpenCollective-Donate-blue?logo=opencollective&style=for-the-badge)](https://opencollective.com/golangci-lint)
88
[![GitHub Sponsors](https://img.shields.io/badge/GitHub-Donate-blue?logo=github&style=for-the-badge)](https://github.com/sponsors/golangci)
99

10+
### v2.1.0
11+
12+
1. Enhancements
13+
* Add an option to display absolute paths (`--path-mode=abs`)
14+
* Add configuration path placeholder (`${config-path}`)
15+
* Add `warn-unused` option for `fmt` command
16+
* Colored diff for `fmt` command (`golangci-lint fmt --diff-colored`)
17+
2. New linters
18+
* Add `funcorder` linter https://github.com/manuelarte/funcorder
19+
3. Linters new features or changes
20+
* `go-errorlint`: from 1.7.1 to 1.8.0 (automatic error comparison and type assertion fixes)
21+
* ⚠️ `goconst`: `ignore-strings` is deprecated and replaced by `ignore-string-values`
22+
* `goconst`: from 1.7.1 to 1.8.1 (new options: `find-duplicates`, `eval-const-expressions`)
23+
* `govet`: add `httpmux` analyzer
24+
* `nilnesserr`: from 0.1.2 to 0.2.0 (detect more cases)
25+
* `paralleltest`: from 1.0.10 to 1.0.14 (checks only `_test.go` files)
26+
* `revive`: from 1.7.0 to 1.9.0 (support kebab case for setting names)
27+
* `sloglint`: from 0.9.0 to 0.11.0 (autofix, new option `msg-style`, suggest `slog.DiscardHandler`)
28+
* `wrapcheck`: from 2.10.0 to 2.11.0 (new option `report-internal-errors`)
29+
* `wsl`: from 4.6.0 to 4.7.0 (cgo files are always excluded)
30+
4. Linters bug fixes
31+
* `fatcontext`: from 0.7.1 to 0.7.2
32+
* `gocritic`: fix `importshadow` checker
33+
* `gosec`: from 2.22.2 to 2.22.3
34+
* `ireturn`: from 0.3.1 to 0.4.0
35+
* `loggercheck`: from 0.10.1 to 0.11.0
36+
* `nakedret`: from 2.0.5 to 2.0.6
37+
* `nonamedreturns`: from 1.0.5 to 1.0.6
38+
* `protogetter`: from 0.3.12 to 0.3.13
39+
* `testifylint`: from 1.6.0 to 1.6.1
40+
* `unconvert`: update to HEAD
41+
5. Misc.
42+
* Fixes memory leaks when using go1.(N) with golangci-lint built with go1.(N-X)
43+
* Adds `golangci-lint-fmt` pre-commit hook
44+
6. Documentation
45+
* Improvements
46+
* Updates section about vscode integration
47+
1048
### v2.0.2
1149

1250
1. Misc.

docs/src/docs/welcome/integrations.mdx

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Install the [extension](https://marketplace.visualstudio.com/items?itemName=gola
2020
```json
2121
"go.lintTool": "golangci-lint",
2222
"go.lintFlags": [
23+
"--path-mode=abs",
2324
"--fast-only"
2425
],
2526
"go.formatTool": "custom",
@@ -47,6 +48,7 @@ And use the following settings:
4748
```json
4849
"go.lintTool": "golangci-lint-v2",
4950
"go.lintFlags": [
51+
"--path-mode=abs",
5052
"--fast-only"
5153
],
5254
"go.formatTool": "custom",

jsonschema/golangci.jsonschema.json

+1
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@
665665
},
666666
"tagliatelle-cases": {
667667
"enum": [
668+
"",
668669
"camel",
669670
"pascal",
670671
"kebab",

0 commit comments

Comments
 (0)