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

feat(dx): add tooling to fix formatting issues #102

Merged
merged 3 commits into from
Sep 7, 2022
Merged

Conversation

yitsushi
Copy link
Contributor

@yitsushi yitsushi commented Sep 7, 2022

  • Makes it easier to fix formatting issues automatically.
  • Installs extra dev tools like gci.

Changes under cmds/ and pkg/ are coming from make format.

feat(dx): add tooling to fix formatting issues

@yitsushi yitsushi requested a review from a team as a code owner September 7, 2022 11:46
@gardener-robot
Copy link
Contributor

@yitsushi Thank you for your contribution.

Comment on lines 1 to 6
// Copyright 2022 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
Copy link
Contributor

Choose a reason for hiding this comment

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

why is the indentation changed? Do we have the empty comment line in-between?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have no idea, I just run the auto formatter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interesting it's not gci, it's the goimports.

@mandelsoft
Copy link
Contributor

Sorry, I think some of the moved external imports are moved to the test imports, because there was no section for external imports other than the one with the ginkgo imports. Then I understand why it is done. But maybe we could separate those manually.

@gardener-robot gardener-robot added size/s Small and removed size/m Medium labels Sep 7, 2022
@yitsushi
Copy link
Contributor Author

yitsushi commented Sep 7, 2022

@mandelsoft : I tried to figure out how can I add some extra custom logic, but I couldn't. In theory I should be able to do that, but I found close to no documentation about it. I found docs only about how to change the order of the predefined groups, which is I think useless.

@mandelsoft
Copy link
Contributor

@yitsushi , You told me some days ago, that it accepts it, if it is grouped manually, this is completely fine, we just have to it manually, once,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/s Small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants