Skip to content

Commit 9cb72c5

Browse files
Merge pull request #60 from NETWAYS/dependabot/github_actions/golangci/golangci-lint-action-7
Bump golangci/golangci-lint-action from 6 to 7
2 parents 81fd1b0 + c54ede3 commit 9cb72c5

File tree

3 files changed

+90
-72
lines changed

3 files changed

+90
-72
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
- name: golangci-lint
19-
uses: golangci/golangci-lint-action@v6
19+
uses: golangci/golangci-lint-action@v7
2020
with:
21-
version: v1.63.4
21+
version: v2.0.2

.golangci.yml

Lines changed: 87 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,90 @@
1+
version: "2"
12
run:
2-
timeout: 5m
33
tests: false
4-
issues:
5-
exclude-rules:
6-
- path: 'cmd/memory.go'
7-
linters:
8-
- funlen
9-
- gocognit
10-
- gocyclo
11-
- maintidx
12-
- path: 'cmd/filesystem.go'
13-
linters:
14-
- funlen
15-
- gocognit
16-
- maintidx
17-
- gocyclo
18-
- path: 'cmd/psi.go'
19-
linters:
20-
- funlen
21-
- gocognit
22-
- gocyclo
23-
- maintidx
24-
- path: 'internal/sensors/sensors.go'
25-
linters:
26-
- funlen
27-
- gocognit
28-
- path: 'internal/filesystem/filesystem.go'
29-
linters:
30-
- funlen
31-
- gocognit
32-
- gocyclo
33-
- maintidx
34-
- path: 'cmd/filesystem.go'
35-
linters:
36-
- nestif
37-
- path: 'internal/netdev/netdev.go'
38-
linters:
39-
- deadcode
40-
- golint
41-
- unused
42-
- nosnakecase
43-
- stylecheck
44-
- varcheck
45-
- revive
464
linters:
47-
enable-all: true
48-
disable:
49-
- funlen
50-
- mnd
51-
- dupl
52-
- cyclop
53-
- depguard
54-
- exhaustruct
55-
- forbidigo
56-
- forcetypeassert
57-
- gci
58-
- gochecknoglobals
59-
- gochecknoinits
60-
- godox
61-
- godot
62-
- err113
63-
- gofumpt
64-
- lll
65-
- musttag
66-
- nakedret
67-
- nlreturn
68-
- nolintlint
69-
- nonamedreturns
70-
- tagliatelle
71-
- varnamelen
72-
- wrapcheck
5+
default: all
6+
disable:
7+
- cyclop
8+
- depguard
9+
- dupl
10+
- err113
11+
- exhaustruct
12+
- forbidigo
13+
- forcetypeassert
14+
- funlen
15+
- gochecknoglobals
16+
- gochecknoinits
17+
- godot
18+
- godox
19+
- lll
20+
- mnd
21+
- musttag
22+
- nakedret
23+
- nlreturn
24+
- nolintlint
25+
- nonamedreturns
26+
- tagliatelle
27+
- varnamelen
28+
- wrapcheck
29+
exclusions:
30+
generated: lax
31+
presets:
32+
- comments
33+
- common-false-positives
34+
- legacy
35+
- std-error-handling
36+
rules:
37+
- linters:
38+
- funlen
39+
- gocognit
40+
- gocyclo
41+
- maintidx
42+
path: cmd/memory.go
43+
- linters:
44+
- funlen
45+
- gocognit
46+
- gocyclo
47+
- maintidx
48+
path: cmd/filesystem.go
49+
- linters:
50+
- funlen
51+
- gocognit
52+
- gocyclo
53+
- maintidx
54+
path: cmd/psi.go
55+
- linters:
56+
- funlen
57+
- gocognit
58+
path: internal/sensors/sensors.go
59+
- linters:
60+
- funlen
61+
- gocognit
62+
- gocyclo
63+
- maintidx
64+
path: internal/filesystem/filesystem.go
65+
- linters:
66+
- nestif
67+
path: cmd/filesystem.go
68+
- linters:
69+
- deadcode
70+
- golint
71+
- nosnakecase
72+
- revive
73+
- staticcheck
74+
- unused
75+
- varcheck
76+
path: internal/netdev/netdev.go
77+
paths:
78+
- third_party$
79+
- builtin$
80+
- examples$
81+
formatters:
82+
enable:
83+
- gofmt
84+
- goimports
85+
exclusions:
86+
generated: lax
87+
paths:
88+
- third_party$
89+
- builtin$
90+
- examples$

internal/filesystem/filesystem.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/shirou/gopsutil/v3/disk"
1010
)
1111

12-
// nolint: revive, golint
12+
// nolint: revive
1313
type FilesystemType struct {
1414
PartStats disk.PartitionStat
1515
UsageStats disk.UsageStat

0 commit comments

Comments
 (0)