KEMBAR78
:seedling: migrate to golangci-lint v2 by spencerschrock · Pull Request #4641 · ossf/scorecard · GitHub
Skip to content

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

@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
@codecov
Copy link

codecov bot commented May 29, 2025

Codecov Report

❌ Patch coverage is 94.11765% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 68.32%. Comparing base (353ed60) to head (768475d).
⚠️ Report is 228 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4641      +/-   ##
==========================================
+ Coverage   66.80%   68.32%   +1.52%     
==========================================
  Files         230      249      +19     
  Lines       16602    18929    +2327     
==========================================
+ Hits        11091    12934    +1843     
- Misses       4808     5133     +325     
- Partials      703      862     +159     
🚀 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.

@github-actions
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

@github-actions
Copy link

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

@github-actions
Copy link

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

@github-actions
Copy link

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

@github-actions github-actions bot added Stale and removed Stale labels Aug 14, 2025
@github-actions
Copy link

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

@github-actions github-actions bot added the Stale label Aug 26, 2025
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>
Signed-off-by: Spencer Schrock <sschrock@google.com>
Signed-off-by: Spencer Schrock <sschrock@google.com>
@spencerschrock
Copy link
Member Author

Rebased on top of main, with 2 new commits to fix new issues that popped up since this was initially submitted:
a81eb85
768475d

@spencerschrock spencerschrock enabled auto-merge (squash) September 4, 2025 17:17
@spencerschrock
Copy link
Member Author

/scdiff generate Maintained,Security-Policy,CII-Best-Practices,Branch-Protection,Dangerous-Workflow,CI-Tests,Binary-Artifacts,Packaging,Signed-Releases,Code-Review,License,Token-Permissions,SAST,Vulnerabilities,Dependency-Update-Tool,Pinned-Dependencies,Fuzzing

@github-actions
Copy link

github-actions bot commented Sep 4, 2025

@spencerschrock spencerschrock merged commit 59a8e91 into ossf:main Sep 4, 2025
38 checks passed
@spencerschrock spencerschrock deleted the lint-v2-v2 branch September 4, 2025 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants