-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[chore] use the same modernize as golanglint #14175
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
base: main
Are you sure you want to change the base?
[chore] use the same modernize as golanglint #14175
Conversation
Signed-off-by: Paulo Dias <[email protected]>
Signed-off-by: Paulo Dias <[email protected]>
Signed-off-by: Paulo Dias <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14175 +/- ##
==========================================
- Coverage 92.25% 92.23% -0.03%
==========================================
Files 658 658
Lines 41186 41186
==========================================
- Hits 37998 37986 -12
- Misses 2182 2190 +8
- Partials 1006 1010 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Makefile.Common
Outdated
| $(GOCMD) run \ | ||
| golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest \ | ||
| -fix -test -v ./... | ||
| golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than using go run here, how about we add the package as a tools dependency and use it like the several other tools we already use?
That would allow us to lock into a specific version rather than using latest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Paulo Dias <[email protected]>
…s/opentelemetry-collector into chore/use_golanglint_analyzer Signed-off-by: Paulo Dias <[email protected]>
Signed-off-by: Paulo Dias <[email protected]>
dmathieu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed working locally.
Description
This PR ensures we use the same modernize package as golanglint