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

Scaffolding templates generate loosely formatted code #4132

Closed
pgaxatte opened this issue Sep 5, 2024 · 0 comments
Closed

Scaffolding templates generate loosely formatted code #4132

pgaxatte opened this issue Sep 5, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@pgaxatte
Copy link
Contributor

pgaxatte commented Sep 5, 2024

What broke? What's expected?

When creating APIs and webhooks, some parts of the generated files fail stricter linter checks.

Since we use a stricter golangci configuration, I'd like to propose minor corrections on the templates.
This could result in a stricter golangci configuration generated by kubebuilder in the future.

Reproducing this issue

Use a linter on generated code with additional linters enabled (like godot, gofumpt, nlreturn)

KubeBuilder (CLI) Version

4.2.0

PROJECT version

3

Plugin versions

No response

Other versions

No response

Extra Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants