Skip to content

🌱 migrate to golangci-lint v2 #4641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

spencerschrock
Copy link
Member

What kind of change does this PR introduce?

linter update

What is the current behavior?

We use v1 of golangci-lint and dont get any updates.
Fix the current linter violations which can be confusing to contributors (e.g. #4639 (comment))

What is the new behavior (if this is a feature change)?**

We migrate to using v2

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

NONE

Special notes for your reviewer

Please review one commit at a time, as I tried to break them up, hopefully makes it easier.

The first commit was made by running golangci-lint migrate and adding the comments back.

Does this PR introduce a user-facing change?

For user-facing changes, please add a concise, human-readable release note to
the release-note

(In particular, describe what changes users might need to make in their
application as a result of this pull request.)

NONE

Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
this just treats the problem, but good enough for now

Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
@spencerschrock spencerschrock requested a review from a team as a code owner May 29, 2025 18:35
@spencerschrock spencerschrock requested review from justaugustus and raghavkaul and removed request for a team May 29, 2025 18:35
Copy link

codecov bot commented May 29, 2025

Codecov Report

Attention: Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.

Project coverage is 68.29%. Comparing base (353ed60) to head (c796624).
Report is 178 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4641      +/-   ##
==========================================
+ Coverage   66.80%   68.29%   +1.49%     
==========================================
  Files         230      249      +19     
  Lines       16602    18873    +2271     
==========================================
+ Hits        11091    12890    +1799     
- Misses       4808     5125     +317     
- Partials      703      858     +155     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

github-actions bot commented Jun 9, 2025

This pull request has been marked stale because it has been open for 10 days with no activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

2 participants