Skip to content

Upgrade golangci-lint to v2.12.2 - #718

Merged
dharmab merged 1 commit into
mainfrom
upgrade-golangci-lint
Jul 26, 2026
Merged

Upgrade golangci-lint to v2.12.2#718
dharmab merged 1 commit into
mainfrom
upgrade-golangci-lint

Conversation

@dharmab

@dharmab dharmab commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Bump the golangci-lint tool dependency (managed via go.mod tool directive) from v2.11.3 to v2.12.2, updating go.sum and transitive deps via go mod tidy.
  • Disable goconst for _test.go files, since tests legitimately reuse similar strings across cases.
  • Disable goconst for pkg/encyclopedia/aircraft.go: designations coincidentally repeat across semantically distinct fields (e.g. a family's PlatformDesignation matching a specific variant's own ACMIShortName/TypeDesignation) and across unrelated struct entries. Extracting shared constants here would create false coupling between unrelated facts.
  • Suppress one coincidental goconst hit in pkg/locations/location.go (bullseye reserved name overlaps with an unrelated word-alias list in pkg/parser).

Test plan

  • make lint passes with 0 issues
  • go mod tidy produces no further diff

Bump the golangci-lint tool dependency and update go.sum accordingly.
Also disable goconst for test files and the aircraft encyclopedia data
table, and suppress a coincidental string overlap in locations, since
these are semantically distinct duplicates rather than real repetition.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dharmab
dharmab enabled auto-merge (squash) July 26, 2026 16:39
@dharmab
dharmab merged commit a7dffbf into main Jul 26, 2026
9 checks passed
@dharmab
dharmab deleted the upgrade-golangci-lint branch July 26, 2026 16:46
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