Skip to content
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
20 changes: 20 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ linters:
- gochecksumtype
- gocritic
- gosmopolitan
- modernize
- nilnesserr
- prealloc
- reassign
Expand Down Expand Up @@ -88,6 +89,25 @@ linters:
rules: rules.go
underef:
skipRecvDeref: true
modernize:
disable: # each disabled analyzer has an existing backlog; enable it once its findings are cleared
- any
- atomictypes
- forvar
- mapsloop
- minmax
- omitzero
- rangeint
- reflecttypefor
- slicesbackward
- slicescontains
- slicessort
- stditerators
- stringsbuilder
- stringscut
- stringscutprefix
- testingcontext
- waitgroupgo
govet:
enable:
- nilness
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func printSample(t *testing.T, iter int) {
}

func procStatusKb(s, key string) int {
for _, line := range strings.Split(s, "\n") {
for line := range strings.SplitSeq(s, "\n") {
if !strings.HasPrefix(line, key) {
continue
}
Expand Down
Loading