Reformats Java source code to comply with Google Java Style.
This report summarizes scanner evidence for google/google-java-format, a Java project with 6,217 GitHub stars. SynthScan examined 33,916 lines of code across 115 source files, recording 58 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 2.0 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 48 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 3 finding(s).
Which changes need focused human review? 58 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 58 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 1681 | class Test { | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 1721 | @Test | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 1741 | /// A following paragraph. | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 1801 | COMMENT | |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 1821 | /// ``` | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 1841 | """; | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 1861 | /// - flibbertigibbet | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 1901 | /// | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 1921 | // the strings they represent.) | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 2041 | /// lines, with each line being indented by the default amount for continuation | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 2181 | String input = | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 2281 | /// | foo | bar | | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 2301 | @Test | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 2461 | class Test {} | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 2721 | // they are subsequently mishandled by our formatting logic. So for example the CommonMark parser | COMMENT |
| LOW | …oogle/googlejavaformat/java/JavadocFormattingTest.java | 2741 | // https://spec.commonmark.org/0.31.2/#link-reference-definitions | COMMENT |
| LOW | core/src/main/java/com/google/googlejavaformat/Doc.java | 41 | /// If a [Level] will not fit on one line, all of its `UNIFIED` [Break]s will be broken. | COMMENT |
| LOW | core/src/main/java/com/google/googlejavaformat/Doc.java | 101 | COMMENT | |
| LOW | core/src/main/java/com/google/googlejavaformat/Doc.java | 501 | COMMENT | |
| LOW | …/main/java/com/google/googlejavaformat/DocBuilder.java | 21 | /// A `DocBuilder` converts a sequence of [Op]s into a [Doc]. | COMMENT |
| LOW | …/src/main/java/com/google/googlejavaformat/Output.java | 41 | } | COMMENT |
| LOW | …e/src/main/java/com/google/googlejavaformat/Input.java | 21 | COMMENT | |
| LOW | …/main/java/com/google/googlejavaformat/layout/Doc.java | 41 | /// rules are implemented by [LayoutSolver]: | COMMENT |
| LOW | …/main/java/com/google/googlejavaformat/layout/Doc.java | 81 | COMMENT | |
| LOW | …/main/java/com/google/googlejavaformat/layout/Doc.java | 321 | /// not. | COMMENT |
| LOW | …/google/googlejavaformat/java/RemoveUnusedImports.java | 61 | // types (`@link`, `@see`, `@throws`, etc.) | COMMENT |
| LOW | …google/googlejavaformat/java/JavaFormatterOptions.java | 21 | import com.google.errorprone.annotations.CanIgnoreReturnValue; | COMMENT |
| LOW | …/google/googlejavaformat/java/JavaInputAstVisitor.java | 1681 | return null; | COMMENT |
| LOW | …/google/googlejavaformat/java/JavaInputAstVisitor.java | 3121 | } | COMMENT |
| LOW | …/google/googlejavaformat/java/JavaInputAstVisitor.java | 3601 | afterFirstToken = true; | COMMENT |
| LOW | …n/java/com/google/googlejavaformat/java/Formatter.java | 41 | COMMENT | |
| LOW | …n/java/com/google/googlejavaformat/java/Formatter.java | 61 | /// This formatter also produces data structures of which tokens and comments appear where on the | COMMENT |
| LOW | …n/java/com/google/googlejavaformat/java/Formatter.java | 141 | } | COMMENT |
| LOW | …n/java/com/google/googlejavaformat/java/Formatter.java | 241 | ImmutableSet<CleanupPass> passes = | COMMENT |
| LOW | …m/google/googlejavaformat/java/CommandLineOptions.java | 21 | import java.util.Optional; | COMMENT |
| LOW | …va/com/google/googlejavaformat/java/ImportOrderer.java | 261 | } | COMMENT |
| LOW | …va/com/google/googlejavaformat/java/ImportOrderer.java | 381 | COMMENT | |
| LOW | …va/com/google/googlejavaformat/java/javadoc/Token.java | 21 | /// The general idea is that every token that requires special handling (extra line breaks, | COMMENT |
| LOW | …va/com/google/googlejavaformat/java/javadoc/Token.java | 101 | COMMENT | |
| LOW | …va/com/google/googlejavaformat/java/javadoc/Token.java | 121 | /// code block | COMMENT |
| LOW | …va/com/google/googlejavaformat/java/javadoc/Token.java | 141 | /// | baz | qux | | COMMENT |
| LOW | …va/com/google/googlejavaformat/java/javadoc/Token.java | 161 | /// somewhat indirect: As far as [JavadocWriter] is concerned, this token is meaningless. But its | COMMENT |
| LOW | util/test-native.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | util/publish-snapshot-on-commit.sh | 1 | # Copyright 2020 Google Inc. | COMMENT |
| LOW | .github/workflows/release.yml | 1 | # Copyright 2020 The Google Java Format Authors | COMMENT |
| LOW | .github/workflows/ci.yml | 1 | # Copyright 2020 The Google Java Format Authors | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …om/google/googlejavaformat/java/StringWrapperTest.java | 0 | class t { string s = "one long incredibly unbroken sentence moving from topic to topic so that no one had a chance to in | STRING |
| HIGH | …st/java/com/google/googlejavaformat/java/MainTest.java | 0 | class t { string s = "one long incredibly unbroken sentence moving from topic to topic so that no one had a chance to in | STRING |
| HIGH | …ooglejavaformat/java/StringWrapperIntegrationTest.java | 0 | class t { string s = "one long incredibly unbroken sentence moving from topic to topic so that no one had a chance to in | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …st/java/com/google/googlejavaformat/java/MainTest.java | 144 | * @param foo lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dol | STRING |
| LOW | …st/java/com/google/googlejavaformat/java/MainTest.java | 144 | * @param foo lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dol | STRING |
| LOW | …st/java/com/google/googlejavaformat/java/MainTest.java | 160 | * @param foo lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | STRING |
| LOW | …st/java/com/google/googlejavaformat/java/MainTest.java | 160 | * @param foo lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | STRING |
| LOW | …st/java/com/google/googlejavaformat/java/MainTest.java | 651 | * @param foo lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | STRING |
| LOW | …st/java/com/google/googlejavaformat/java/MainTest.java | 651 | * @param foo lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/google-java-format-diff.py | 7 | # This file is distributed under the University of Illinois Open Source | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …va/com/google/googlejavaformat/java/FormatterTest.java | 49 | // don't forget to misspell "long", or you will be mystified for a while | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/google-java-format-diff.py | 32 | CODE |