Skip to content
Open
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
go-version: 1.23.x
cache: false # managed by golangci-lint

- uses: golangci/golangci-lint-action@v6
- uses: golangci/golangci-lint-action@v9
name: Install golangci-lint
with:
version: v1.64.8
version: v2.11.3
# Hack: Use the official action to download, but not run.
# make lint below will handle actually running the linter.
args: --help
Expand Down
41 changes: 21 additions & 20 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
output:
# Make output more digestible with quickfix in vim/emacs/etc.
sort-results: true
print-issued-lines: false
version: "2"

linters:
default: none
enable:
- gofumpt
- errcheck
- govet
- ineffassign
- nolintlint
- revive

linters-settings:
govet:
# These govet checks are disabled by default, but they're useful.
enable:
- nilness
- reflectvaluecompare
- sortslice
- unusedwrite
errcheck:
exclude-functions:
- fmt.Fprintf
- staticcheck
- unused
settings:
errcheck:
exclude-functions:
- fmt.Fprintf
govet:
# These govet checks are disabled by default, but they're useful.
enable:
- nilness
- reflectvaluecompare
- sortslice
- unusedwrite

issues:
# Print all issues reported by all linters.
max-issues-per-linter: 0
max-same-issues: 0

# Don't ignore some of the issues that golangci-lint considers okay.
# This includes documenting all exported entities.
exclude-use-default: false
formatters:
enable:
- gofumpt
5 changes: 1 addition & 4 deletions internal/stack/stacks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ func TestAll(t *testing.T) {
got := All()

// Retry until the background stacks are not runnable/running.
for {
if !isBackgroundRunning(cur, got) {
break
}
for isBackgroundRunning(cur, got) {
runtime.Gosched()
got = All()
}
Expand Down