Skip to content

Commit

Permalink
linter: fix lint errors and update linter config
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Nov 5, 2024
1 parent edd3e5a commit 675300f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
13 changes: 4 additions & 9 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ linters-settings:
min-complexity: 15
goimports:
local-prefixes: github.com/gucio321/giu-animations
govet:
check-shadowing: true
lll:
line-length: 140
maligned:
suggest-new: true
govet:
cehck-shadowing: true
misspell:
locale: US

Expand All @@ -34,12 +34,12 @@ linters:
enable:
- asciicheck
- bodyclose
- depguard
- copyloopvar
- dogsled
- dupl
- err113
- errcheck
- errorlint
- exportloopref
- forcetypeassert
- funlen
- gci
Expand All @@ -50,7 +50,6 @@ linters:
- goconst
- gocritic
- gocyclo
- goerr113
- gofmt
- gofumpt
- goheader
Expand Down Expand Up @@ -87,10 +86,6 @@ linters:

run:
timeout: 5m
skip-dirs:
- .github
- build
- web

issues:
max-same-issues: 0
Expand Down
1 change: 0 additions & 1 deletion color_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func ColorFlowColors(
) *ColorFlowAnimation {
c := make([]func() color.RGBA, len(colors))
for i := range c {
i := i
c[i] = func() color.RGBA {
r, g, b, a := colors[i].RGBA()

Expand Down

0 comments on commit 675300f

Please sign in to comment.