Skip to content
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

Merged
merged 4 commits into from
Jun 17, 2024

Conversation

Sovietaced
Copy link
Contributor

@Sovietaced Sovietaced commented Jun 17, 2024

This pull request introduces a lint-fix target that will automatically fix linting issues instead of running goimports, gci, or golangci-lint commands manually.

It also adds gci linting to flytectl. It appears that flytectl had golangci-lint config options for gci but the linter was not enabled.

Lastly, it removes the goimports make target which was pretty error prone. It did not respect the golangci-lint configs in each project and generated dramatically different fixes.

@Sovietaced Sovietaced changed the title Add lint-fix make target, add gci to flytectl Add lint-fix make target, add gci to flytectl, remove goimports make target Jun 17, 2024
@Sovietaced Sovietaced marked this pull request as ready for review June 17, 2024 20:03
Signed-off-by: Jason Parraga <[email protected]>
Copy link
Contributor

@eapolinario eapolinario left a comment

Choose a reason for hiding this comment

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

Thank you!

@eapolinario eapolinario enabled auto-merge (squash) June 17, 2024 21:24
Copy link

codecov bot commented Jun 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.99%. Comparing base (de415af) to head (40dafb4).
Report is 128 commits behind head on master.

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     
Flag Coverage Δ
unittests-datacatalog 69.31% <ø> (ø)
unittests-flyteadmin 58.67% <ø> (-0.04%) ⬇️
unittests-flytecopilot 17.79% <ø> (ø)
unittests-flytectl 68.04% <ø> (ø)
unittests-flyteidl 79.04% <ø> (ø)
unittests-flyteplugins 61.83% <ø> (-0.01%) ⬇️
unittests-flytepropeller 57.30% <ø> (ø)
unittests-flytestdlib 65.82% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@eapolinario eapolinario merged commit ba88e82 into flyteorg:master Jun 17, 2024
52 of 53 checks passed
@Sovietaced Sovietaced deleted the linting branch June 17, 2024 21:41
robert-ulbrich-mercedes-benz pushed a commit to robert-ulbrich-mercedes-benz/flyte that referenced this pull request Jul 2, 2024
…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]>
vlibov pushed a commit to vlibov/flyte that referenced this pull request Aug 16, 2024
…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]>
Sign up for free to 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.

2 participants