Skip to content

Commit cb1fec0

Browse files
docs: update documentation assets (#4901)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
1 parent 51461b7 commit cb1fec0

File tree

5 files changed

+3824
-13
lines changed

5 files changed

+3824
-13
lines changed

.golangci.reference.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,6 +1612,12 @@ linters-settings:
16121612
arguments:
16131613
- mypragma
16141614
- otherpragma
1615+
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#comments-density
1616+
- name: comments-density
1617+
severity: warning
1618+
disabled: false
1619+
exclude: [""]
1620+
arguments: [ 15 ]
16151621
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#confusing-naming
16161622
- name: confusing-naming
16171623
severity: warning
@@ -2201,13 +2207,16 @@ linters-settings:
22012207
- error-nil
22022208
- expected-actual
22032209
- float-compare
2210+
- formatter
22042211
- go-require
22052212
- len
22062213
- negative-positive
22072214
- nil-compare
22082215
- require-error
2216+
- suite-broken-parallel
22092217
- suite-dont-use-pkg
22102218
- suite-extra-assert-call
2219+
- suite-subtest-run
22112220
- suite-thelper
22122221
- useless-assert
22132222

@@ -2217,7 +2226,8 @@ linters-settings:
22172226
# Enable checkers by name
22182227
# (in addition to default
22192228
# blank-import, bool-compare, compares, empty, error-is-as, error-nil, expected-actual, go-require, float-compare,
2220-
# len, negative-positive, nil-compare, require-error, suite-dont-use-pkg, suite-extra-assert-call, useless-assert
2229+
# formatter, len, negative-positive, nil-compare, require-error, suite-broken-parallel, suite-dont-use-pkg,
2230+
# suite-extra-assert-call, suite-subtest-run, useless-assert
22212231
# ).
22222232
enable:
22232233
- blank-import
@@ -2228,13 +2238,16 @@ linters-settings:
22282238
- error-nil
22292239
- expected-actual
22302240
- float-compare
2241+
- formatter
22312242
- go-require
22322243
- len
22332244
- negative-positive
22342245
- nil-compare
22352246
- require-error
2247+
- suite-broken-parallel
22362248
- suite-dont-use-pkg
22372249
- suite-extra-assert-call
2250+
- suite-subtest-run
22382251
- suite-thelper
22392252
- useless-assert
22402253

@@ -2246,6 +2259,13 @@ linters-settings:
22462259
# Regexp for expected variable name.
22472260
# Default: (^(exp(ected)?|want(ed)?)([A-Z]\w*)?$)|(^(\w*[a-z])?(Exp(ected)?|Want(ed)?)$)
22482261
pattern: ^expected
2262+
formatter:
2263+
# To enable go vet's printf checks.
2264+
# Default: true
2265+
check-format-string: false
2266+
# To require f-assertions if format string is used.
2267+
# Default: false
2268+
require-f-funcs: true
22492269
go-require:
22502270
# To ignore HTTP handlers (like http.HandlerFunc).
22512271
# Default: false
@@ -2369,9 +2389,6 @@ linters-settings:
23692389
# Treat IncDec statement (e.g. `i++` or `i--`) as both read and write operation instead of just write.
23702390
# Default: false
23712391
post-statements-are-reads: true
2372-
# Mark all exported identifiers as used.
2373-
# Default: true
2374-
exported-is-used: false
23752392
# Mark all exported fields as used.
23762393
# default: true
23772394
exported-fields-are-used: false

CHANGELOG.md

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,43 @@
11
Follow the news and releases on [Mastodon](https://fosstodon.org/@golangcilint) and on [Twitter](https://twitter.com/golangci).
22

3+
### v1.60.1
4+
5+
1. Updated linters
6+
* `errorlint`: from 1.5.2 to 1.6.0
7+
* `exhaustruct`: from 3.2.0 to 3.3.0 (recognize custom error values in return)
8+
* `fatcontext`: from 0.2.2 to 0.4.0 (fix false positives for context stored in structs)
9+
* `gocognit`: from 1.1.2 to 1.1.3
10+
* `gomodguard`: from 1.3.2 to 1.3.3
11+
* `govet` (`printf`): report non-constant format, no args
12+
* `lll`: advertise max line length instead of just reporting failure
13+
* `revive`: from 1.3.7 to 1.3.9 (new rule: `comments-density`)
14+
* `sloglint`: from 0.7.1 to 0.7.2
15+
* `spancheck`: from 0.6.1 to 0.6.2
16+
* `staticcheck`: from 0.4.7 to 0.5.0
17+
* `tenv`: from 1.7.1 to 1.10.0 (remove reports on fuzzing)
18+
* `testifylint`: from 1.3.1 to 1.4.3 (new options: `formatter`, `suite-broken-parallel`, `suite-subtest-run`)
19+
* `tparallel`: from 0.3.1 to 0.3.2
20+
* `usestdlibvars`: from 1.26.0 to 1.27.0 (fix false-positive with number used inside a mathematical operations)
21+
* `wsl`: from 4.2.1 to 4.4.1
22+
* ️⚠️ `unused`: remove `exported-is-used` option
23+
2. Fixes
24+
* SARIF: sanitize level property
25+
* ️⚠️ `typecheck` issues should never be ignored
26+
3. Documentation
27+
* Add link on linter without configuration
28+
* Remove 'trusted by' page
29+
* `wsl` update documentation of the configuration
30+
4. misc.
31+
* 🎉 go1.23 support
32+
33+
### v1.60.0
34+
35+
Cancelled due to a CI problem.
36+
337
### v1.59.1
438

539
1. Updated linters
6-
* `go-errorlint`: from 1.5.1 to 1.5.2
40+
* `errorlint`: from 1.5.1 to 1.5.2
741
* `gomnd`: deprecated configuration compatibility
842
* `intrange`: add `style` preset
943
* `misspell`: from 0.5.1 to 0.6.0
@@ -15,7 +49,7 @@ Follow the news and releases on [Mastodon](https://fosstodon.org/@golangcilint)
1549
* SARIF: init empty result slice
1650
* SARIF: issue column >= 1
1751
3. Documentation
18-
* update `revive` configuration
52+
* `revive`: update documentation of the configuration
1953

2054
### v1.59.0
2155

assets/linters-info.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@
11681168
"desc": "tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go1.17",
11691169
"loadMode": 575,
11701170
"inPresets": [
1171-
"style"
1171+
"test"
11721172
],
11731173
"originalURL": "https://github.com/sivchari/tenv",
11741174
"internal": false,
@@ -1218,7 +1218,7 @@
12181218
"desc": "thelper detects tests helpers which is not start with t.Helper() method.",
12191219
"loadMode": 575,
12201220
"inPresets": [
1221-
"style"
1221+
"test"
12221222
],
12231223
"originalURL": "https://github.com/kulti/thelper",
12241224
"internal": false,

jsonschema/golangci.jsonschema.json

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@
217217
"call-to-gc",
218218
"cognitive-complexity",
219219
"comment-spacings",
220+
"comments-density",
220221
"confusing-naming",
221222
"confusing-results",
222223
"constant-logical-expr",
@@ -2886,13 +2887,16 @@
28862887
"error-nil",
28872888
"expected-actual",
28882889
"float-compare",
2890+
"formatter",
28892891
"go-require",
28902892
"len",
28912893
"negative-positive",
28922894
"nil-compare",
28932895
"require-error",
2896+
"suite-broken-parallel",
28942897
"suite-dont-use-pkg",
28952898
"suite-extra-assert-call",
2899+
"suite-subtest-run",
28962900
"suite-thelper",
28972901
"useless-assert"
28982902
]
@@ -2906,13 +2910,16 @@
29062910
"error-nil",
29072911
"expected-actual",
29082912
"float-compare",
2913+
"float-compare",
29092914
"go-require",
29102915
"len",
29112916
"negative-positive",
29122917
"nil-compare",
29132918
"require-error",
2919+
"suite-broken-parallel",
29142920
"suite-dont-use-pkg",
29152921
"suite-extra-assert-call",
2922+
"suite-subtest-run",
29162923
"useless-assert"
29172924
]
29182925
},
@@ -2929,13 +2936,16 @@
29292936
"error-nil",
29302937
"expected-actual",
29312938
"float-compare",
2939+
"formatter",
29322940
"go-require",
29332941
"len",
29342942
"negative-positive",
29352943
"nil-compare",
29362944
"require-error",
2945+
"suite-broken-parallel",
29372946
"suite-dont-use-pkg",
29382947
"suite-extra-assert-call",
2948+
"suite-subtest-run",
29392949
"suite-thelper",
29402950
"useless-assert"
29412951
],
@@ -2966,6 +2976,22 @@
29662976
}
29672977
}
29682978
},
2979+
"formatter": {
2980+
"type": "object",
2981+
"additionalProperties": false,
2982+
"properties": {
2983+
"check-format-string": {
2984+
"description": "To enable go vet's printf checks.",
2985+
"type": "boolean",
2986+
"default": true
2987+
},
2988+
"require-f-funcs": {
2989+
"description": "To require f-assertions if format string is used.",
2990+
"type": "boolean",
2991+
"default": false
2992+
}
2993+
}
2994+
},
29692995
"go-require": {
29702996
"type": "object",
29712997
"additionalProperties": false,
@@ -3207,11 +3233,6 @@
32073233
"type": "boolean",
32083234
"default": false
32093235
},
3210-
"exported-is-used": {
3211-
"description": "",
3212-
"type": "boolean",
3213-
"default": true
3214-
},
32153236
"exported-fields-are-used": {
32163237
"description": "",
32173238
"type": "boolean",

0 commit comments

Comments
 (0)