diff --git a/.golangci.reference.yml b/.golangci.reference.yml index 191224c6dab3..54159cd3b008 100644 --- a/.golangci.reference.yml +++ b/.golangci.reference.yml @@ -1286,7 +1286,7 @@ linters-settings: min-complexity: 10 godot: - # Comments to be checked: `declarations`, `toplevel`, or `all`. + # Comments to be checked: `declarations`, `toplevel`, `noinline` or `all`. # Default: declarations scope: toplevel # List of regexps for excluding particular comment lines from check. @@ -1346,27 +1346,25 @@ linters-settings: # Define here regexp type values. # for example: AUTHOR: .*@mycompany\.com - # The template use for checking. + # The template used for checking. + # Put here copyright header template for source code files + # Note: {{ YEAR }} is a builtin value that returns the year relative to the current machine time. # Default: "" template: |- - # Put here copyright header template for source code files - # For example: - # Note: {{ YEAR }} is a builtin value that returns the year relative to the current machine time. - # - # {{ AUTHOR }} {{ COMPANY }} {{ YEAR }} - # SPDX-License-Identifier: Apache-2.0 - - # Licensed under the Apache License, Version 2.0 (the "License"); - # you may not use this file except in compliance with the License. - # You may obtain a copy of the License at: - - # http://www.apache.org/licenses/LICENSE-2.0 - - # Unless required by applicable law or agreed to in writing, software - # distributed under the License is distributed on an "AS IS" BASIS, - # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - # See the License for the specific language governing permissions and - # limitations under the License. + {{ AUTHOR }} {{ COMPANY }} {{ YEAR }} + SPDX-License-Identifier: Apache-2.0 + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at: + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. # As alternative of directive 'template', you may put the path to file with the template source. # Useful if you need to load the template from a specific file. # Default: "" @@ -2580,6 +2578,8 @@ linters-settings: severity: warning disabled: false exclude: [""] + arguments: + - "xerrors.New" # https://github.com/mgechev/revive/blob/HEAD/RULES_DESCRIPTIONS.md#errorf - name: errorf severity: warning diff --git a/CHANGELOG.md b/CHANGELOG.md index a79da6034f31..3f90f45126fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,21 @@ If you value it, consider supporting us, we appreciate it! ❤️ [![Open Collective backers and sponsors](https://img.shields.io/badge/OpenCollective-Donate-blue?logo=opencollective&style=for-the-badge)](https://opencollective.com/golangci-lint) [![GitHub Sponsors](https://img.shields.io/badge/GitHub-Donate-blue?logo=github&style=for-the-badge)](https://github.com/sponsors/golangci) +### v1.64.6 + +1. Linters bug fixes + * `asciicheck`: from 0.4.0 to 0.4.1 + * `contextcheck`: from 1.1.5 to 1.1.6 + * `errcheck`: from 1.8.0 to 1.9.0 + * `exptostd`: from 0.4.1 to 0.4.2 + * `ginkgolinter`: from 0.19.0 to 0.19.1 + * `go-exhaustruct`: from 3.3.0 to 3.3.1 + * `gocheckcompilerdirectives`: from 1.2.1 to 1.3.0 + * `godot`: from 1.4.20 to 1.5.0 + * `perfsprint`: from 0.8.1 to 0.8.2 + * `revive`: from 1.6.1 to 1.7.0 + * `tagalign`: from 1.4.1 to 1.4.2 + ### v1.64.5 1. Bug fixes @@ -59,6 +74,7 @@ The next release will be golangci-lint [v2](https://github.com/golangci/golangci * `staticcheck`: from 0.5.1 to 0.6.0 4. Deprecations * ⚠️ `tenv` is deprecated and replaced by `usetesting.os-setenv: true`. + * ⚠️ `exportloopref` deprecation step 2 5. Misc. * Sanitize severities by output format * Avoid panic with plugin without description diff --git a/assets/linters-info.json b/assets/linters-info.json index a6bdba3f629b..15b47050d2ed 100644 --- a/assets/linters-info.json +++ b/assets/linters-info.json @@ -1195,7 +1195,7 @@ "since": "v1.43.0", "deprecation": { "since": "v1.64.0", - "message": "Duplicate feature another linter.", + "message": "Duplicate feature in another linter.", "replacement": "usetesting" } },