Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@abhinav
Copy link
Collaborator

@abhinav abhinav commented Sep 11, 2025

golangci-lint now has a v2 configuration format
that includes specifying formatters as well.
Migrate the configuration with golangci-lint migrate
and manually copy the comments over.

Also take advantage of the -diff flag of go mod tidy
instead of git diff after the fact.

@abhinav
Copy link
Collaborator Author

abhinav commented Sep 11, 2025

This change is part of the following stack:

Change managed by git-spice.

@codecov
Copy link

codecov bot commented Sep 11, 2025

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1275   +/-   ##
=======================================
  Coverage   98.64%   98.64%           
=======================================
  Files          35       35           
  Lines        3458     3458           
=======================================
  Hits         3411     3411           
  Misses         40       40           
  Partials        7        7           

☔ 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.

@abhinav abhinav mentioned this pull request Sep 11, 2025
- unused

# Our own extras:
- gofumpt
Copy link

Choose a reason for hiding this comment

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

Accidental? On purpose?

Copy link

Choose a reason for hiding this comment

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

Oh I see it's added below


// Unexported fields are left unchanged.
assert.NotEqual(t, "foo", out.type4.foo)
assert.NotEqual(t, "foo", out.foo)
Copy link

Choose a reason for hiding this comment

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

Is this related to the linter change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

similar—yeah. it was a quickfix—not a breaking linter warning, but a linter message nonetheless.
type4 is embedded so the field can be accessed directly.

YEAR_RANGE: '\d{4}(-\d{4})?'
template: |-
Copyright (c) {{ YEAR_RANGE }} {{ COMPANY }}
settings:
Copy link

Choose a reason for hiding this comment

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

Github UI seems to be unnecessarily painful for this change:|

Base automatically changed from go-1.25 to master September 14, 2025 16:17
golangci-lint now has a v2 configuration format
that includes specifying formatters as well.
Migrate the configuration with `golangci-lint migrate`
and manually copy the comments over.

Also take advantage of the `-diff` flag of `go mod tidy`
instead of `git diff` after the fact.
This version auto-manages the cache
so we don't have to do it ourselves.
@abhinav abhinav merged commit 21e34ec into master Sep 14, 2025
17 of 18 checks passed
@abhinav abhinav deleted the golangci-lint-v2 branch September 14, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants