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
14 changes: 7 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@ linters:
- bodyclose
- containedctx
- contextcheck
- cyclop
- copyloopvar
- cyclop
- decorder
- dogsled
- dupl
- durationcheck
- dupword
- durationcheck
- err113
- errcheck
- errchkjson
- errname
- errorlint
- exhaustive
- exptostd
- fatcontext
- forbidigo
- forcetypeassert
- funlen
Expand All @@ -46,11 +47,13 @@ linters:
- iface
- importas
- inamedparam
- interfacebloat
- ineffassign
- interfacebloat
- intrange
- lll
- loggercheck
- maintidx
- makezero
- mirror
- misspell
- mnd
Expand Down Expand Up @@ -79,7 +82,6 @@ linters:
- stylecheck
- tagalign
- tagliatelle
- tenv
- testifylint
- testpackage
- thelper
Expand All @@ -88,8 +90,8 @@ linters:
- unconvert
- unparam
- unused
- usetesting
- usestdlibvars
- usetesting
- wastedassign
- whitespace
- wrapcheck
Expand Down Expand Up @@ -152,8 +154,6 @@ linters-settings:
block-size: 5
goimports:
local-prefixes: github.com/vladopajic/go-test-coverage/v2
tenv:
all: true
wsl:
force-err-cuddling: true

Expand Down
2 changes: 1 addition & 1 deletion pkg/testcoverage/coverage/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func mergeSameFileProfile(ap, bp *cover.Profile) (*cover.Profile, error) {
return nil, fmt.Errorf("inconsistent profiles length [%q, %q]", ap.FileName, bp.FileName)
}

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

if b.StartLine == a.StartLine &&
Expand Down
Loading