rewrite-static-analysis icon indicating copy to clipboard operation
rewrite-static-analysis copied to clipboard

Format empty lines misaligning with Java Code Conventions

Open Pankraz76 opened this issue 1 year ago • 2 comments

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

Pankraz76 avatar Oct 14 '24 18:10 Pankraz76

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 avatar Oct 14 '24 20:10 timtebeek

This issue is stale because it has not had any activity for 60 days. Remove question label or comment or this will be closed in two weeks. Issues may be reopened when there is renewed interest.

github-actions[bot] avatar Jul 28 '25 11:07 github-actions[bot]