Skip to content

Commit 32d5a90

Browse files
committed
update golangci-lint to v2.1.5
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 7fde0e5 commit 32d5a90

4 files changed

Lines changed: 26 additions & 20 deletions

File tree

.golangci.yml

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
1-
run:
2-
timeout: 10m
1+
version: "2"
32

43
linters:
4+
default: none
55
enable:
66
- depguard
7-
- gofmt
8-
- goimports
97
- revive
108
- govet
119
- importas
1210
- ineffassign
1311
- misspell
14-
- typecheck
1512
- errname
1613
- makezero
1714
- whitespace
18-
disable-all: true
19-
20-
linters-settings:
21-
depguard:
15+
settings:
16+
depguard:
17+
rules:
18+
main:
19+
deny:
20+
- pkg: io/ioutil
21+
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
22+
importas:
23+
no-unaliased: true
24+
exclusions:
25+
generated: lax
2226
rules:
23-
main:
24-
deny:
25-
- pkg: io/ioutil
26-
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
27-
importas:
28-
no-unaliased: true
27+
- linters:
28+
- revive
29+
text: stutters
30+
31+
formatters:
32+
enable:
33+
- gofmt
34+
- goimports
2935

3036
issues:
31-
exclude-rules:
32-
- linters:
33-
- revive
34-
text: "stutters"
37+
max-issues-per-linter: 0
38+
max-same-issues: 0

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
ARG GO_VERSION="1.23"
1818
ARG XX_VERSION="1.6.1"
19-
ARG GOLANGCI_LINT_VERSION="v1.62"
19+
ARG GOLANGCI_LINT_VERSION="v2.1.5"
2020
ARG ADDLICENSE_VERSION="v1.1.1"
2121

2222
ARG LICENSE_ARGS="-c cli-docs-tool -l apache"

annotation/annotation.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// Package annotation handles annotations for CLI commands.
1516
package annotation
1617

1718
const (

clidocstool.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
// Package clidocstool provides tools for generating CLI documentation.
1516
package clidocstool
1617

1718
import (

0 commit comments

Comments
 (0)