Skip to content

google-java-format rules in Sudsy

Javaversion 2.0.0 (GitHub release latest; the native binary `scripts/parity.sh format google-java-format` downloads, no JVM needed)91% of Java files identical2 covered5 partial1 planned0 deferred

Every rule and setting of google-java-format in the parity catalog, with the Sudsy equivalent. The format share is the part of real-world files that Sudsy formats to the same text as google-java-format. Where the tool has a page for an entry, the id links to it.

Status: covered; partial (the note says what differs); not yet (planned); deferred; not planned; SDK (a .NET SDK diagnostic does it).

Id Sudsy Status Note
indent option java.format.indent_size covered
max-width option java.format.line_width covered
aosp option java.format.indent_size partial AOSP is an indent_size of 4 (continuation is always two levels); its import grouping (android, com and other groups) is not produced.
sort-imports formatter partial Static imports first, then ASCII order, no duplicates, one blank line between the groups; a block with a comment between imports is left as written.
skip-sorting-imports - not yet
fix-imports-only - not planned rewrites code outside the layout
skip-removing-unused-imports formatter partial Unused imports are never removed.
skip-reflowing-long-strings formatter partial Strings are never split.
skip-javadoc-formatting formatter partial Javadoc is kept as written.
lines - not planned range formatting is the editor’s
offsets - not planned range formatting is the editor’s
replace - not planned command-line mode
dry-run - not planned command-line mode
set-exit-if-changed - not planned command-line mode