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
6 changes: 3 additions & 3 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: golangci-lint
on:
push:
branches:
- main
- '**'
pull_request:

permissions:
Expand All @@ -27,6 +27,6 @@ jobs:
go-version: ${{ env.GO_VERSION }}

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v7
with:
version: v1.62.2
version: v2.1.5
46 changes: 30 additions & 16 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
version: "2"
run:
timeout: 1m

timeout: 2m
linters:
disable-all: true
default: none
enable:
- dupl
- errcheck
- errname
- errorlint
- funlen
- gci
- goconst
- gocritic
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
- govet
- ineffassign
- lll
Expand All @@ -25,18 +21,36 @@ linters:
- prealloc
- revive
- staticcheck
- stylecheck
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- whitespace

issues:
exclude-rules:
- path: _test\.go
linters:
- unparam
- funlen
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- funlen
- unparam
path: _test\.go
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofmt
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
2 changes: 1 addition & 1 deletion internal/terminal/spinner.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (s *Spinner) Start() {
}()
}

//nolint:errcheck
//nolint:errcheck,staticcheck
func (s *Spinner) Clear() {
s.writer.WriteString(fmt.Sprintf(moveCursorBackward, s.length))
s.writer.WriteString(clearLineFromCursor)
Expand Down
Loading