docs: update documentation assets (#4901)

Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
golangci-releaser 2024-08-14 04:52:56 +03:00 committed by GitHub
parent 51461b734d
commit cb1fec0316
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 3824 additions and 13 deletions

View File

@ -1612,6 +1612,12 @@ linters-settings:
arguments:
- mypragma
- otherpragma
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#comments-density
- name: comments-density
severity: warning
disabled: false
exclude: [""]
arguments: [ 15 ]
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#confusing-naming
- name: confusing-naming
severity: warning
@ -2201,13 +2207,16 @@ linters-settings:
- error-nil
- expected-actual
- float-compare
- formatter
- go-require
- len
- negative-positive
- nil-compare
- require-error
- suite-broken-parallel
- suite-dont-use-pkg
- suite-extra-assert-call
- suite-subtest-run
- suite-thelper
- useless-assert
@ -2217,7 +2226,8 @@ linters-settings:
# Enable checkers by name
# (in addition to default
# blank-import, bool-compare, compares, empty, error-is-as, error-nil, expected-actual, go-require, float-compare,
# len, negative-positive, nil-compare, require-error, suite-dont-use-pkg, suite-extra-assert-call, useless-assert
# formatter, len, negative-positive, nil-compare, require-error, suite-broken-parallel, suite-dont-use-pkg,
# suite-extra-assert-call, suite-subtest-run, useless-assert
# ).
enable:
- blank-import
@ -2228,13 +2238,16 @@ linters-settings:
- error-nil
- expected-actual
- float-compare
- formatter
- go-require
- len
- negative-positive
- nil-compare
- require-error
- suite-broken-parallel
- suite-dont-use-pkg
- suite-extra-assert-call
- suite-subtest-run
- suite-thelper
- useless-assert
@ -2246,6 +2259,13 @@ linters-settings:
# Regexp for expected variable name.
# Default: (^(exp(ected)?|want(ed)?)([A-Z]\w*)?$)|(^(\w*[a-z])?(Exp(ected)?|Want(ed)?)$)
pattern: ^expected
formatter:
# To enable go vet's printf checks.
# Default: true
check-format-string: false
# To require f-assertions if format string is used.
# Default: false
require-f-funcs: true
go-require:
# To ignore HTTP handlers (like http.HandlerFunc).
# Default: false
@ -2369,9 +2389,6 @@ linters-settings:
# Treat IncDec statement (e.g. `i++` or `i--`) as both read and write operation instead of just write.
# Default: false
post-statements-are-reads: true
# Mark all exported identifiers as used.
# Default: true
exported-is-used: false
# Mark all exported fields as used.
# default: true
exported-fields-are-used: false

View File

@ -1,9 +1,43 @@
Follow the news and releases on [Mastodon](https://fosstodon.org/@golangcilint) and on [Twitter](https://twitter.com/golangci).
### v1.60.1
1. Updated linters
* `errorlint`: from 1.5.2 to 1.6.0
* `exhaustruct`: from 3.2.0 to 3.3.0 (recognize custom error values in return)
* `fatcontext`: from 0.2.2 to 0.4.0 (fix false positives for context stored in structs)
* `gocognit`: from 1.1.2 to 1.1.3
* `gomodguard`: from 1.3.2 to 1.3.3
* `govet` (`printf`): report non-constant format, no args
* `lll`: advertise max line length instead of just reporting failure
* `revive`: from 1.3.7 to 1.3.9 (new rule: `comments-density`)
* `sloglint`: from 0.7.1 to 0.7.2
* `spancheck`: from 0.6.1 to 0.6.2
* `staticcheck`: from 0.4.7 to 0.5.0
* `tenv`: from 1.7.1 to 1.10.0 (remove reports on fuzzing)
* `testifylint`: from 1.3.1 to 1.4.3 (new options: `formatter`, `suite-broken-parallel`, `suite-subtest-run`)
* `tparallel`: from 0.3.1 to 0.3.2
* `usestdlibvars`: from 1.26.0 to 1.27.0 (fix false-positive with number used inside a mathematical operations)
* `wsl`: from 4.2.1 to 4.4.1
* ️⚠️ `unused`: remove `exported-is-used` option
2. Fixes
* SARIF: sanitize level property
* ️⚠️ `typecheck` issues should never be ignored
3. Documentation
* Add link on linter without configuration
* Remove 'trusted by' page
* `wsl` update documentation of the configuration
4. misc.
* 🎉 go1.23 support
### v1.60.0
Cancelled due to a CI problem.
### v1.59.1
1. Updated linters
* `go-errorlint`: from 1.5.1 to 1.5.2
* `errorlint`: from 1.5.1 to 1.5.2
* `gomnd`: deprecated configuration compatibility
* `intrange`: add `style` preset
* `misspell`: from 0.5.1 to 0.6.0
@ -15,7 +49,7 @@ Follow the news and releases on [Mastodon](https://fosstodon.org/@golangcilint)
* SARIF: init empty result slice
* SARIF: issue column >= 1
3. Documentation
* update `revive` configuration
* `revive`: update documentation of the configuration
### v1.59.0

View File

@ -1168,7 +1168,7 @@
"desc": "tenv is analyzer that detects using os.Setenv instead of t.Setenv since Go1.17",
"loadMode": 575,
"inPresets": [
"style"
"test"
],
"originalURL": "https://github.com/sivchari/tenv",
"internal": false,
@ -1218,7 +1218,7 @@
"desc": "thelper detects tests helpers which is not start with t.Helper() method.",
"loadMode": 575,
"inPresets": [
"style"
"test"
],
"originalURL": "https://github.com/kulti/thelper",
"internal": false,

View File

@ -217,6 +217,7 @@
"call-to-gc",
"cognitive-complexity",
"comment-spacings",
"comments-density",
"confusing-naming",
"confusing-results",
"constant-logical-expr",
@ -2886,13 +2887,16 @@
"error-nil",
"expected-actual",
"float-compare",
"formatter",
"go-require",
"len",
"negative-positive",
"nil-compare",
"require-error",
"suite-broken-parallel",
"suite-dont-use-pkg",
"suite-extra-assert-call",
"suite-subtest-run",
"suite-thelper",
"useless-assert"
]
@ -2906,13 +2910,16 @@
"error-nil",
"expected-actual",
"float-compare",
"float-compare",
"go-require",
"len",
"negative-positive",
"nil-compare",
"require-error",
"suite-broken-parallel",
"suite-dont-use-pkg",
"suite-extra-assert-call",
"suite-subtest-run",
"useless-assert"
]
},
@ -2929,13 +2936,16 @@
"error-nil",
"expected-actual",
"float-compare",
"formatter",
"go-require",
"len",
"negative-positive",
"nil-compare",
"require-error",
"suite-broken-parallel",
"suite-dont-use-pkg",
"suite-extra-assert-call",
"suite-subtest-run",
"suite-thelper",
"useless-assert"
],
@ -2966,6 +2976,22 @@
}
}
},
"formatter": {
"type": "object",
"additionalProperties": false,
"properties": {
"check-format-string": {
"description": "To enable go vet's printf checks.",
"type": "boolean",
"default": true
},
"require-f-funcs": {
"description": "To require f-assertions if format string is used.",
"type": "boolean",
"default": false
}
}
},
"go-require": {
"type": "object",
"additionalProperties": false,
@ -3207,11 +3233,6 @@
"type": "boolean",
"default": false
},
"exported-is-used": {
"description": "",
"type": "boolean",
"default": true
},
"exported-fields-are-used": {
"description": "",
"type": "boolean",

File diff suppressed because it is too large Load Diff