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

Makefile: add openshift-goimports, remove old verify #4083

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

stevekuznetsov
Copy link
Contributor

Makefile: add openshift-goimports, remove old verify

The openshift-goimports formatter is superior to the old strategy of
verifying import groups since:

  • it is more flexible, allowing configuration flags to be passed that
    specify which groups need to exist and what order they should be in
  • it has an automatic formatter built in, so no humans will ever have to
    make manual changes to fix things
  • it runs in microseconds or milliseconds, so adding it to a pre-commit
    hook has little to no downside

Signed-off-by: Steve Kuznetsov [email protected]


*: format imports

Signed-off-by: Steve Kuznetsov [email protected]


@stevekuznetsov stevekuznetsov force-pushed the skuznets/openshift-goimports branch 2 times, most recently from 8b7e40d to ef0851b Compare February 5, 2025 14:25
@github-actions github-actions bot added the needs-rebase branch needs a rebase label Feb 5, 2025
Copy link

github-actions bot commented Feb 5, 2025

Please rebase pull request.

The openshift-goimports formatter is superior to the old strategy of
verifying import groups since:

- it is more flexible, allowing configuration flags to be passed that
  specify which groups need to exist and what order they should be in
- it has an automatic formatter built in, so no humans will ever have to
  make manual changes to fix things
- it runs in microseconds or milliseconds, so adding it to a pre-commit
  hook has little to no downside

Signed-off-by: Steve Kuznetsov <[email protected]>
No need to copy-paste the formatting and import ordering line in every
single generation argument, it's easy enough to just run it in the
generate target.

Signed-off-by: Steve Kuznetsov <[email protected]>
@stevekuznetsov stevekuznetsov force-pushed the skuznets/openshift-goimports branch from ef0851b to 87a7913 Compare February 6, 2025 20:30
@github-actions github-actions bot removed the needs-rebase branch needs a rebase label Feb 6, 2025
@stevekuznetsov stevekuznetsov force-pushed the skuznets/openshift-goimports branch 2 times, most recently from 352f84a to b650c29 Compare February 6, 2025 20:38
Signed-off-by: Steve Kuznetsov <[email protected]>
@stevekuznetsov stevekuznetsov force-pushed the skuznets/openshift-goimports branch from b650c29 to 2ade564 Compare February 6, 2025 20:50
@hawkowl hawkowl merged commit 2dc513d into master Feb 7, 2025
22 checks passed
@hawkowl hawkowl deleted the skuznets/openshift-goimports branch February 7, 2025 03:45
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.

3 participants