Skip to content

docs: update documentation assets #4901

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions .golangci.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
38 changes: 36 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions assets/linters-info.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
31 changes: 26 additions & 5 deletions jsonschema/golangci.jsonschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@
"call-to-gc",
"cognitive-complexity",
"comment-spacings",
"comments-density",
"confusing-naming",
"confusing-results",
"constant-logical-expr",
Expand Down Expand Up @@ -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"
]
Expand All @@ -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"
]
},
Expand All @@ -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"
],
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -3207,11 +3233,6 @@
"type": "boolean",
"default": false
},
"exported-is-used": {
"description": "",
"type": "boolean",
"default": true
},
"exported-fields-are-used": {
"description": "",
"type": "boolean",
Expand Down
Loading
Loading