Skip to content

fix(ci): migrate .golangci.yml to v2 schema#25

Closed
howard-eridani wants to merge 1 commit intomainfrom
daedalus/fix-govet-shadow
Closed

fix(ci): migrate .golangci.yml to v2 schema#25
howard-eridani wants to merge 1 commit intomainfrom
daedalus/fix-govet-shadow

Conversation

@howard-eridani
Copy link
Copy Markdown
Contributor

Summary

  • Migrated .golangci.yml from v1 to v2 schema for golangci-lint v2.11.3
  • Removed invalid govet.shadow: true field (now govet.enable: [shadow])
  • Moved linters-settingslinters.settings, issues.exclude-ruleslinters.exclusions.rules
  • Moved gofmt/goimports to formatters section, removed gosimple (merged into staticcheck)

Test plan

  • CI lint job passes with v2 config
  • No regressions in go build / go test

Fixes task: 32f46fb5-efda-428b-a8ce-625988683bf4

🤖 Generated with Claude Code

…adow

golangci-lint v2.11.3 uses v2 config schema where:
- shadow is a govet sub-analyzer via enable list, not a top-level bool
- linters-settings → linters.settings (nested)
- issues.exclude-rules → linters.exclusions.rules
- gofmt/goimports moved to formatters section
- gosimple merged into staticcheck

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@howard-eridani
Copy link
Copy Markdown
Contributor Author

Closing in favor of PR #20 per Howard's recommendation. See #20 comments.

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.

2 participants