Skip to content

Modernize golangci-lint config - #103

Merged
tamalsaha merged 1 commit into
masterfrom
modernize-golangci-lint
Jul 13, 2026
Merged

Modernize golangci-lint config#103
tamalsaha merged 1 commit into
masterfrom
modernize-golangci-lint

Conversation

@tamalsaha

Copy link
Copy Markdown
Contributor
  • Enable bodyclose and prealloc linters
  • Move exclude-files/exclude-dirs to linters.exclusions.paths (golangci-lint
    v2 location) and fix over-escaped regex generated.\.go -> generated..go
  • Switch formatter from gofmt to gofumpt and drop the interface{} -> any
    rewrite rule (gofumpt is a stricter superset)
  • Apply resulting gofumpt formatting

Signed-off-by: Tamal Saha tamal@appscode.com

- Enable bodyclose and prealloc linters
- Move exclude-files/exclude-dirs to linters.exclusions.paths (golangci-lint
  v2 location) and fix over-escaped regex generated.*\\.go -> generated.*\.go
- Switch formatter from gofmt to gofumpt and drop the interface{} -> any
  rewrite rule (gofumpt is a stricter superset)
- Apply resulting gofumpt formatting

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha
tamalsaha merged commit 62235a9 into master Jul 13, 2026
6 checks passed
@tamalsaha
tamalsaha deleted the modernize-golangci-lint branch July 13, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant