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

Format empty lines misaligning with Java Code Conventions #370

Open
punkratz312 opened this issue Oct 14, 2024 · 1 comment
Open

Format empty lines misaligning with Java Code Conventions #370

punkratz312 opened this issue Oct 14, 2024 · 1 comment
Labels

Comments

@punkratz312
Copy link
Contributor

punkratz312 commented Oct 14, 2024

It is very common in this codebase to avoid the first empty line separating the class declaration from the first fields or methods. However, this practice goes against the Java Code Conventions (JCC), so we want to address it in our local project.

https://github.com/openrewrite/rewrite-static-analysis/pull/369/files

@punkratz312 punkratz312 changed the title Format empty lines misaligning with Java Code Conventions. Format empty lines misaligning with Java Code Conventions Oct 14, 2024
@timtebeek
Copy link
Contributor

hi @punkratz312 ; sounds like a fine case for a recipe indeed to put at least a single blank line before the first statement in a class body. Having that be available as a recipe also ensures we can apply that once across all 50+ recipe modules through app.moderne.io

@timtebeek timtebeek moved this to Recipes Wanted in OpenRewrite Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Recipes Wanted
Development

No branches or pull requests

2 participants