Skip to content

chore: Update golangci-lint to v2.7.0 - #3853

Merged
gmlewis merged 1 commit into
google:masterfrom
stevehipwell:golangci-lint-v2.7.0
Dec 4, 2025
Merged

chore: Update golangci-lint to v2.7.0#3853
gmlewis merged 1 commit into
google:masterfrom
stevehipwell:golangci-lint-v2.7.0

Conversation

@stevehipwell

@stevehipwellstevehipwell commented Dec 4, 2025

Copy link
Copy Markdown
Contributor

This PR fixes the currently broken golangci-lint custom plugin implementation (broken due to the GitHub Actions Git version). It also makes an auto-fix change that otherwise fails the linter.

Signed-off-by: Steve Hipwell <steve.hipwell@gmail.com>

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you, @stevehipwell and @alexandear!
LGTM.
Merging.

@codecov

codecovBot commented Dec 4, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.46%. Comparing base (e279f70) to head (44db530).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@## master #3853 +/- ##
=======================================
Coverage 92.46% 92.46% =======================================
Files 199 199 Lines 14240 14240 =======================================
Hits 13167 13167 Misses 884 884 Partials 189 189 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewis
gmlewis merged commit 841abae into google:masterDec 4, 2025
7 checks passed
Comment on lines +99 to +100
if before, _, ok := strings.Cut(text, "</a>"); ok {
newText := before + strings.Join(innerText, "")

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.

stringscut may report false positives: golang/go#76687

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

It looked correct to me, do you think it's wrong?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If it breaks next time I use it, I'll revert the changes, so no big deal.

@stevehipwell
stevehipwell deleted the golangci-lint-v2.7.0 branch December 4, 2025 13:12
jlaportebot added a commit to jlaportebot/go-github that referenced this pull request Jun 28, 2026
Sign up for freeto 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

@stevehipwell@alexandear@gmlewis