Skip to content

fix: Disable revive var-naming lint errors for standard library package names#612

Merged
erezrokah merged 4 commits intorenovate/golangci-golangci-lint-2.xfrom
claude/sub-pr-610
Mar 2, 2026
Merged

fix: Disable revive var-naming lint errors for standard library package names#612
erezrokah merged 4 commits intorenovate/golangci-golangci-lint-2.xfrom
claude/sub-pr-610

Conversation

@Claude
Copy link
Contributor

@Claude Claude AI commented Mar 2, 2026

The golangci-lint upgrade to v2.10.1 introduced stricter revive var-naming checks that flag package names conflicting with Go standard library, specifically metrics and plugin.

Changes

  • Added //nolint:revive directives to suppress var-naming warnings on package declarations:
    • metrics/metrics.go - package name intentionally matches metrics domain
    • pb/plugin/v3/arrow_test.go - package name follows protobuf structure conventions
  • Updated .gitignore to exclude bin/ directory

Both packages are appropriately named for their context despite standard library conflicts.

Co-authored-by: erezrokah <26760571+erezrokah@users.noreply.github.com>
@Claude Claude AI changed the title [WIP] Update dependency golangci/golangci-lint to v2.10.1 fix: Disable revive var-naming lint errors for package names Mar 2, 2026
Claude AI and others added 2 commits March 2, 2026 16:42
Co-authored-by: erezrokah <26760571+erezrokah@users.noreply.github.com>
Co-authored-by: erezrokah <26760571+erezrokah@users.noreply.github.com>
@Claude Claude AI changed the title fix: Disable revive var-naming lint errors for package names fix: Disable revive var-naming lint errors for standard library package names Mar 2, 2026
@erezrokah erezrokah marked this pull request as ready for review March 2, 2026 16:55
@erezrokah erezrokah requested a review from a team as a code owner March 2, 2026 16:55
@erezrokah erezrokah requested review from Copilot and hermanschaaf and removed request for a team March 2, 2026 16:55
@erezrokah erezrokah merged commit b60133d into renovate/golangci-golangci-lint-2.x Mar 2, 2026
1 check passed
@erezrokah erezrokah deleted the claude/sub-pr-610 branch March 2, 2026 16:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts lint suppression and repo hygiene to accommodate stricter revive var-naming checks introduced by the golangci-lint upgrade, while keeping intentional package naming unchanged.

Changes:

  • Added //nolint:revive on package metrics to suppress revive var-naming warnings for the package name.
  • Added //nolint:revive on package plugin in the Arrow protobuf test package for the same revive warning.
  • Updated .gitignore to ignore the bin/ directory.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
pb/plugin/v3/arrow_test.go Suppresses revive var-naming on the plugin package declaration in tests.
metrics/metrics.go Suppresses revive var-naming on the metrics package declaration.
.gitignore Ignores bin/ output directory.

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

erezrokah added a commit that referenced this pull request Mar 2, 2026
* chore(deps): Update dependency golangci/golangci-lint to v2.10.1

* fix: Disable revive var-naming lint errors for standard library package names (#612)

* Initial plan

* fix: Disable revive var-naming lint errors for package names

Co-authored-by: erezrokah <26760571+erezrokah@users.noreply.github.com>

* Verify linter passes with no errors

Co-authored-by: erezrokah <26760571+erezrokah@users.noreply.github.com>

* chore: Remove binary from git and update .gitignore

Co-authored-by: erezrokah <26760571+erezrokah@users.noreply.github.com>

---------

Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com>
Co-authored-by: erezrokah <26760571+erezrokah@users.noreply.github.com>

---------

Co-authored-by: Claude <242468646+Claude@users.noreply.github.com>
Co-authored-by: erezrokah <26760571+erezrokah@users.noreply.github.com>
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
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.

3 participants