Skip to content

fix: update .golangci.yml to valid golangci-lint v2 syntax - #922

Merged
leecalcote merged 3 commits into
masterfrom
copilot/fix-lint-checks
Mar 3, 2026
Merged

leecalcote merged 3 commits into
masterfrom
copilot/fix-lint-checks

Conversation

Copilot AI commented Mar 2, 2026 •

Copy link
Copy Markdown
Contributor

CI lint job was failing at config verification because .golangci.yml used v1 syntax incompatible with golangci-lint v2.10.1.

Changes

  • linters-settings (v1 root-level key) → moved under linters.settings (v2 syntax)
  • issues.exclude → removed; ST1005 was already suppressed via staticcheck's checks: ["all", "-ST1005"], and exclude is not a valid key under issues in v2
  • staticcheck.go: "1.25" → removed (redundant)
# Before (v1 syntax — invalid under v2 schema)
linters-settings:
  staticcheck:
    go: "1.25"
    checks: ["all", "-ST1005"]
issues:
  exclude:
    - "ST1005"

# After (v2 syntax)
linters:
  settings:
    staticcheck:
      checks: ["all", "-ST1005"]

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: fitzergerald <182300328+fitzergerald@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing lint checks in the repository fix: update .golangci.yml to valid golangci-lint v2 syntax Mar 3, 2026
@leecalcote
leecalcote marked this pull request as ready for review March 3, 2026 02:50
Copilot AI review requested due to automatic review settings March 3, 2026 02:50

@leecalcote leecalcote left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @fitzergerald

@leecalcote
leecalcote merged commit ba01e3c into master Mar 3, 2026
4 of 5 checks passed
@leecalcote
leecalcote deleted the copilot/fix-lint-checks branch March 3, 2026 02:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the repository’s golangci-lint configuration to conform to golangci-lint v2 schema so the CI lint job can successfully validate and run.

Changes:

  • Migrates linters-settings (v1) to linters.settings (v2).
  • Removes issues.exclude (invalid in v2) and relies on staticcheck.checks to suppress ST1005.
  • Removes the redundant staticcheck.go setting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

4 participants