Skip to content

Commit 263e9f1

Browse files
authored
chore(lint): update config (#161)
1 parent 7c12790 commit 263e9f1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.golangci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,21 @@ linters:
66
- bodyclose
77
- containedctx
88
- contextcheck
9-
- cyclop
109
- copyloopvar
10+
- cyclop
1111
- decorder
1212
- dogsled
1313
- dupl
14-
- durationcheck
1514
- dupword
15+
- durationcheck
1616
- err113
1717
- errcheck
1818
- errchkjson
1919
- errname
2020
- errorlint
2121
- exhaustive
2222
- exptostd
23+
- fatcontext
2324
- forbidigo
2425
- forcetypeassert
2526
- funlen
@@ -46,11 +47,13 @@ linters:
4647
- iface
4748
- importas
4849
- inamedparam
49-
- interfacebloat
5050
- ineffassign
51+
- interfacebloat
52+
- intrange
5153
- lll
5254
- loggercheck
5355
- maintidx
56+
- makezero
5457
- mirror
5558
- misspell
5659
- mnd
@@ -79,7 +82,6 @@ linters:
7982
- stylecheck
8083
- tagalign
8184
- tagliatelle
82-
- tenv
8385
- testifylint
8486
- testpackage
8587
- thelper
@@ -88,8 +90,8 @@ linters:
8890
- unconvert
8991
- unparam
9092
- unused
91-
- usetesting
9293
- usestdlibvars
94+
- usetesting
9395
- wastedassign
9496
- whitespace
9597
- wrapcheck
@@ -152,8 +154,6 @@ linters-settings:
152154
block-size: 5
153155
goimports:
154156
local-prefixes: github.com/vladopajic/go-test-coverage/v2
155-
tenv:
156-
all: true
157157
wsl:
158158
force-err-cuddling: true
159159

pkg/testcoverage/coverage/profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func mergeSameFileProfile(ap, bp *cover.Profile) (*cover.Profile, error) {
6767
return nil, fmt.Errorf("inconsistent profiles length [%q, %q]", ap.FileName, bp.FileName)
6868
}
6969

70-
for i := 0; i < len(ap.Blocks); i++ {
70+
for i := range ap.Blocks {
7171
a, b := ap.Blocks[i], bp.Blocks[i]
7272

7373
if b.StartLine == a.StartLine &&

0 commit comments

Comments
 (0)