File tree Expand file tree Collapse file tree 3 files changed +90
-72
lines changed Expand file tree Collapse file tree 3 files changed +90
-72
lines changed Original file line number Diff line number Diff line change 16
16
- uses : actions/checkout@v4
17
17
18
18
- name : golangci-lint
19
- uses : golangci/golangci-lint-action@v6
19
+ uses : golangci/golangci-lint-action@v7
20
20
with :
21
- version : v1.63.4
21
+ version : v2.0.2
Original file line number Diff line number Diff line change
1
+ version : " 2"
1
2
run :
2
- timeout : 5m
3
3
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
46
4
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$
Original file line number Diff line number Diff line change 9
9
"github.com/shirou/gopsutil/v3/disk"
10
10
)
11
11
12
- // nolint: revive, golint
12
+ // nolint: revive
13
13
type FilesystemType struct {
14
14
PartStats disk.PartitionStat
15
15
UsageStats disk.UsageStat
You can’t perform that action at this time.
0 commit comments