a structural diff that understands syntax 🟥🟩
This report summarizes scanner evidence for Wilfred/difftastic, a Rust project with 26,118 GitHub stars. SynthScan examined 74,207 lines of code across 312 source files, recording 175 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 2.3 (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? 167 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 5 finding(s).
Which changes need focused human review? 175 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 175 distinct pattern matches across 9 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 | demo_files/1/src/main.rs | 1 | //! Difftastic is a syntactic diff tool. | COMMENT |
| LOW | demo_files/2/src/main.rs | 1 | //! Difftastic is a syntactic diff tool. | COMMENT |
| LOW | vendored_parsers/tree-sitter-janet-simple/grammar.js | 201 | $._lit), | COMMENT |
| LOW | …_parsers/tree-sitter-janet-simple/bindings/rust/lib.rs | 1 | //! This crate provides janet_simple language support for the [tree-sitter][] parsing library. | COMMENT |
| LOW | vendored_parsers/tree-sitter-janet-simple/src/parser.c | 1 | #include <tree_sitter/parser.h> | COMMENT |
| LOW | …sers/tree-sitter-janet-simple/src/tree_sitter/parser.h | 1 | #ifndef TREE_SITTER_PARSER_H_ | COMMENT |
| LOW | vendored_parsers/tree-sitter-latex/bindings/rust/lib.rs | 1 | //! This crate provides Latex language support for the [tree-sitter][] parsing library. | COMMENT |
| LOW | …red_parsers/tree-sitter-latex/src/tree_sitter/parser.h | 1 | #ifndef TREE_SITTER_PARSER_H_ | COMMENT |
| LOW | …ored_parsers/tree-sitter-latex/src/tree_sitter/array.h | 1 | #ifndef TREE_SITTER_ARRAY_H_ | COMMENT |
| LOW | …ored_parsers/tree-sitter-latex/src/tree_sitter/array.h | 41 | (assert((uint32_t)(_index) < (self)->size), &(self)->contents[_index]) | COMMENT |
| LOW | …ored_parsers/tree-sitter-latex/src/tree_sitter/array.h | 101 | COMMENT | |
| LOW | …ored_parsers/tree-sitter-latex/src/tree_sitter/array.h | 121 | /// callback to determine the order. | COMMENT |
| LOW | …ored_parsers/tree-sitter-latex/src/tree_sitter/array.h | 281 | #ifdef _MSC_VER | COMMENT |
| LOW | …ored_parsers/tree-sitter-latex/src/tree_sitter/alloc.h | 21 | #define ts_malloc ts_current_malloc | COMMENT |
| LOW | …ored_parsers/tree-sitter-latex/src/tree_sitter/alloc.h | 41 | #ifndef ts_realloc | COMMENT |
| LOW | sample_files/r_2.R | 1 | # This file is from https://github.com/rstudio/shiny, under the GPL v3. | COMMENT |
| LOW | sample_files/r_2.R | 21 | #' * A [bslib::bs_theme()] object. This can be used to replace a stock | COMMENT |
| LOW | sample_files/r_2.R | 101 | # sliderInput() et al) can resolve their HTML dependencies at render time | COMMENT |
| LOW | sample_files/r_2.R | 121 | # "It appears `shiny::bootstrapLib()` was rendered outside of an Shiny ", | COMMENT |
| LOW | sample_files/r_2.R | 141 | COMMENT | |
| LOW | sample_files/r_2.R | 181 | #' Note that `func` should **not** be an anonymous function, or a function which | COMMENT |
| LOW | sample_files/r_2.R | 241 | #' @export | COMMENT |
| LOW | sample_files/r_2.R | 261 | #' For example, `fluidPage(plotOutput("plot", height = "100%"))` will not | COMMENT |
| LOW | sample_files/r_2.R | 281 | #' @param padding Padding to use for the body. This can be a numeric vector | COMMENT |
| LOW | sample_files/r_2.R | 301 | #' "#two { float: right; background-color: #ccffcc; }" | COMMENT |
| LOW | sample_files/r_2.R | 341 | COMMENT | |
| LOW | sample_files/r_2.R | 361 | #' [tabPanel()]. | COMMENT |
| LOW | sample_files/r_2.R | 381 | #' @param fluid `TRUE` to use a fluid layout. `FALSE` to use a fixed | COMMENT |
| LOW | sample_files/r_2.R | 401 | #' | COMMENT |
| LOW | sample_files/r_2.R | 441 | )) | COMMENT |
| LOW | sample_files/r_2.R | 461 | #' @export | COMMENT |
| LOW | sample_files/r_2.R | 481 | #' any. | COMMENT |
| LOW | sample_files/r_2.R | 501 | #' "breaks", "Breaks", | COMMENT |
| LOW | sample_files/r_2.R | 521 | #' if (input$plotType == "scatter") { | COMMENT |
| LOW | sample_files/r_2.R | 541 | #' Create a help text element | COMMENT |
| LOW | sample_files/r_2.R | 561 | #' | COMMENT |
| LOW | sample_files/r_2.R | 581 | #' ) | COMMENT |
| LOW | sample_files/r_2.R | 601 | #' @param ... [tabPanel()] elements to include in the tabset | COMMENT |
| LOW | sample_files/r_2.R | 621 | #' | COMMENT |
| LOW | sample_files/r_2.R | 641 | #' # Hide the tab values. | COMMENT |
| LOW | sample_files/r_2.R | 681 | } | COMMENT |
| LOW | sample_files/r_2.R | 701 | #' respectively. | COMMENT |
| LOW | sample_files/r_2.R | 741 | COMMENT | |
| LOW | sample_files/r_2.R | 761 | #' @examples | COMMENT |
| LOW | sample_files/r_2.R | 861 | #' Render a [renderPlot()] or [renderImage()] within an | COMMENT |
| LOW | sample_files/r_2.R | 881 | #' `print(p)`, then the coordinates for interactive graphics will not be | COMMENT |
| LOW | sample_files/r_2.R | 901 | #' @param hover Similar to the `click` argument, this can be `NULL` | COMMENT |
| LOW | sample_files/r_2.R | 921 | #' `imageOutput`/`plotOutput` calls may share the same `id` | COMMENT |
| LOW | sample_files/r_2.R | 941 | #' | COMMENT |
| LOW | sample_files/r_2.R | 961 | #' } | COMMENT |
| LOW | sample_files/r_2.R | 981 | #' verbatimTextOutput("plot_clickinfo"), | COMMENT |
| LOW | sample_files/r_2.R | 1001 | #' cat("Click:\n") | COMMENT |
| LOW | sample_files/r_2.R | 1021 | #' res <- brushedPoints(data(), input$plot_brush, "speed", "dist") | COMMENT |
| LOW | sample_files/r_2.R | 1041 | #' delayType = "throttle" | COMMENT |
| LOW | sample_files/r_2.R | 1061 | #' width <- session$clientData$output_image_width | COMMENT |
| LOW | sample_files/r_2.R | 1081 | #' cat("Click:\n") | COMMENT |
| LOW | sample_files/r_2.R | 1141 | } | COMMENT |
| LOW | sample_files/r_2.R | 1181 | ) | COMMENT |
| LOW | sample_files/r_2.R | 1201 | #' | COMMENT |
| LOW | sample_files/r_2.R | 1261 | #' [Bootstrap | COMMENT |
| 88 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | sample_files/r_2.R | 358 | #' @param id If provided, you can use `input$`*`id`* in your | COMMENT |
| MEDIUM | sample_files/r_2.R | 474 | #' example, if you have an input with an id of `foo`, then you can use | COMMENT |
| MEDIUM | sample_files/r_2.R | 602 | #' @param id If provided, you can use `input$`*`id`* in your | COMMENT |
| MEDIUM | sample_files/r_2.R | 689 | #' @param id If provided, you can use `input$`*`id`* in your | COMMENT |
| MEDIUM | sample_files/r_1.R | 358 | #' @param id If provided, you can use `input$`*`id`* in your | COMMENT |
| MEDIUM | sample_files/r_1.R | 474 | #' example, if you have an input with an id of `foo`, then you can use | COMMENT |
| MEDIUM | sample_files/r_1.R | 602 | #' @param id If provided, you can use `input$`*`id`* in your | COMMENT |
| MEDIUM | sample_files/r_1.R | 689 | #' @param id If provided, you can use `input$`*`id`* in your | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/release.yml | 21 | # Create a draft release so we can add the changelog before publishing it | COMMENT |
| MEDIUM | sample_files/r_2.R | 1 | # This file is from https://github.com/rstudio/shiny, under the GPL v3. | COMMENT |
| MEDIUM | sample_files/r_1.R | 1 | # This file is from https://github.com/rstudio/shiny, under the GPL v3. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | vendored_parsers/tree-sitter-latex/src/node-types.json | 7927 | "type": "placeholder", | CODE |
| LOW | vendored_parsers/tree-sitter-latex/src/node-types.json | 9708 | "type": "placeholder", | CODE |
| LOW | vendored_parsers/tree-sitter-latex/src/grammar.json | 1644 | "name": "placeholder" | CODE |
| LOW | vendored_parsers/tree-sitter-latex/src/grammar.json | 1675 | "placeholder": { | CODE |
| LOW | sample_files/comments_2.rs | 17 | // a big block comment. Lorem ipsum dolor sit amet, | COMMENT |
| LOW | sample_files/comments_2.rs | 17 | // a big block comment. Lorem ipsum dolor sit amet, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | sample_files/nest_2.rs | 72 | // TODO: Make this robust against invalid toml | COMMENT |
| MEDIUM | sample_files/nest_1.rs | 72 | // TODO: Make this robust against invalid toml | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | demo_files/1/src/cli/format.js | 233 | async function createIsIgnoredFromContextOrDie(context) { | CODE |
| LOW | demo_files/2/src/cli/format.js | 236 | async function createIsIgnoredFromContextOrDie(context) { | CODE |
| LOW | sample_files/cli_tests/out_of_order_hunk_1.py | 5 | def create_app_from_runtime_config() -> Any: | CODE |
| LOW | sample_files/cli_tests/out_of_order_hunk_2.py | 6 | def create_app_from_runtime_config() -> FastAPI: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | sample_files/r_2.R | 71 | # Check if ui has lang attribute; otherwise, NULL | COMMENT |
| LOW | sample_files/r_1.R | 71 | # Check if ui has lang attribute; otherwise, NULL | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …er-latex/bindings/python/tree_sitter_latex/__init__.py | 5 | __all__ = ["language"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …er-latex/bindings/python/tree_sitter_latex/__init__.py | 3 | CODE |