chore: stricter golangci-lint, with gofumpt and goimports #77
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jwarykowski/shepherd!77
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/lint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The golangci-lint v2 config keybars and licence now use: the standard linters plus errorlint, gocritic, revive, misspell (UK spelling, comments only, skipping Go names like Serialize), modernize, intrange and others, with gofumpt and goimports as formatters.
--no-colorand$NO_COLORleft as they are), shadowedmax, if-else chains as switches, simplermin/max, an unused test returnscrollOffsetkeeps its exact behaviour;openLinkkeeps returning atea.Cmdfor its callersTested:
go test ./...,golangci-lint run(0 issues),go build.