-
Notifications
You must be signed in to change notification settings - Fork 671
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
Add lint-fix make target, add gci to flytectl, remove goimports make target #5484
Conversation
Signed-off-by: Jason Parraga <[email protected]>
Signed-off-by: Jason Parraga <[email protected]>
Signed-off-by: Jason Parraga <[email protected]>
Signed-off-by: Jason Parraga <[email protected]>
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.
Thank you!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5484 +/- ##
==========================================
- Coverage 61.00% 60.99% -0.02%
==========================================
Files 793 793
Lines 51378 51419 +41
==========================================
+ Hits 31342 31361 +19
- Misses 17149 17166 +17
- Partials 2887 2892 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…target (flyteorg#5484) * Favor golangci-lint --fix instead running goimports,gci directly Signed-off-by: Jason Parraga <[email protected]> * Enable gci lint on flytectl Signed-off-by: Jason Parraga <[email protected]> * check in gci fixes on flytectl Signed-off-by: Jason Parraga <[email protected]> * Deduplicate per feedback Signed-off-by: Jason Parraga <[email protected]> --------- Signed-off-by: Jason Parraga <[email protected]>
…target (flyteorg#5484) * Favor golangci-lint --fix instead running goimports,gci directly Signed-off-by: Jason Parraga <[email protected]> * Enable gci lint on flytectl Signed-off-by: Jason Parraga <[email protected]> * check in gci fixes on flytectl Signed-off-by: Jason Parraga <[email protected]> * Deduplicate per feedback Signed-off-by: Jason Parraga <[email protected]> --------- Signed-off-by: Jason Parraga <[email protected]> Signed-off-by: Vladyslav Libov <[email protected]>
This pull request introduces a
lint-fix
target that will automatically fix linting issues instead of runninggoimports
,gci
, orgolangci-lint
commands manually.It also adds
gci
linting toflytectl
. It appears thatflytectl
hadgolangci-lint
config options forgci
but the linter was not enabled.Lastly, it removes the
goimports
make target which was pretty error prone. It did not respect thegolangci-lint
configs in each project and generated dramatically different fixes.