-
Notifications
You must be signed in to change notification settings - Fork 6.5k
feat(makefile): add format-go target
#25047
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: master
Are you sure you want to change the base?
Conversation
Signed-off-by: nitishfy <justnitish06@gmail.com>
❗ Preview Environment deployment failed on BunnyshellSee: Environment Details | Pipeline Logs Available commands (reply to this 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.
I don't understand why we can't just use the existing make lint[-local] target?
|
@blakepettersson The main difference is that |
|
I see. Could we not amend the |
|
I'd not personally because of the way format-go target has been written so far. Lint is required every tim,e but not the format. I also noticed that the format target sometimes points out to functions being unus,ed which is not correct every time. If we put it in lint, our lint checks will fail most of the times. You'd use |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #25047 +/- ##
==========================================
- Coverage 60.89% 60.84% -0.05%
==========================================
Files 351 351
Lines 60489 60489
==========================================
- Hits 36832 36804 -28
- Misses 20736 20762 +26
- Partials 2921 2923 +2 ☔ View full report in Codecov by Sentry. |
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.
I agree that it's better not to introduce yet another make target.
On the other hand, it is required to run the same linter across all folders and subfolders so we can find a solution to improve the existing linter target and enhance it to include all folders with a .mod file.
Yup, my suggested amendment to |
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.
Can you clarify what value does it bring or what problem is it solving?
I'm not agains introducing formatting in general but mass changes makes it difficult to cherry-pick fixes and create unnecessary work for maintainers.
Checklist: