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

Provide a code formatter #921

Open
serverhorror opened this issue Jul 19, 2022 · 2 comments
Open

Provide a code formatter #921

serverhorror opened this issue Jul 19, 2022 · 2 comments

Comments

@serverhorror
Copy link
Contributor

It's quite cumbersome to make changes when CodeNarc starts complaining about Code Style but there is no code formatter (or settings recommendations for IDEs like IDEA or VS Code) available.

Is it possible to add something like https://github.com/sherter/google-java-format-gradle-plugin so we have an easier way to format the whole codebase according to what the CI checks require?

@renedupont
Copy link
Member

In Java projects I have used https://github.com/diffplug/spotless which has a gradle plugin and mentions in their readme that it also works for groovy (I have only used it for java so far though).

@serverhorror
Copy link
Contributor Author

I've been away from Java-ish stuff since Uni.

I was just hoping for something like gofmt (since CodeNarc complained about Code style but there was no easy way to fix it)

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

No branches or pull requests

2 participants