From 675300fafc833456a832927328e3ba3c415113e3 Mon Sep 17 00:00:00 2001 From: gucio321 Date: Tue, 5 Nov 2024 14:57:12 +0100 Subject: [PATCH] linter: fix lint errors and update linter config --- .golangci.yml | 13 ++++--------- color_flow.go | 1 - 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 660a745..6c04237 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 @@ -34,12 +34,12 @@ linters: enable: - asciicheck - bodyclose - - depguard + - copyloopvar - dogsled - dupl + - err113 - errcheck - errorlint - - exportloopref - forcetypeassert - funlen - gci @@ -50,7 +50,6 @@ linters: - goconst - gocritic - gocyclo - - goerr113 - gofmt - gofumpt - goheader @@ -87,10 +86,6 @@ linters: run: timeout: 5m - skip-dirs: - - .github - - build - - web issues: max-same-issues: 0 diff --git a/color_flow.go b/color_flow.go index f1b30c5..af3e791 100644 --- a/color_flow.go +++ b/color_flow.go @@ -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()