Skip to content

Commit

Permalink
lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
vladopajic committed Feb 20, 2025
1 parent 7c12790 commit f497143
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
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

0 comments on commit f497143

Please sign in to comment.