Repository Analysis

Wilfred/difftastic

a structural diff that understands syntax 🟥🟩

1.0 Likely human-written View on GitHub
1.0
Adjusted Score
1.0
Raw Score
100%
Time Factor
2026-05-10
Last Push
25,426
Stars
Rust
Language
168,600
Lines of Code
407
Files
174
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 13LOW 161

Pattern Findings

174 matches across 8 categories. Click a row to expand file-level details.

Over-Commented Block154 hits · 122 pts
SeverityFileLineSnippet
LOWdemo_files/1/src/main.rs1//! Difftastic is a syntactic diff tool.
LOWdemo_files/2/src/main.rs1//! Difftastic is a syntactic diff tool.
LOWvendored_parsers/tree-sitter-janet-simple/grammar.js201 $._lit),
LOW…_parsers/tree-sitter-janet-simple/bindings/rust/lib.rs1//! This crate provides janet_simple language support for the [tree-sitter][] parsing library.
LOWvendored_parsers/tree-sitter-janet-simple/src/parser.c1#include <tree_sitter/parser.h>
LOW…sers/tree-sitter-janet-simple/src/tree_sitter/parser.h1#ifndef TREE_SITTER_PARSER_H_
LOWvendored_parsers/tree-sitter-scss/bindings/rust/lib.rs1//! This crate provides scss language support for the [tree-sitter][] parsing library.
LOWvendored_parsers/tree-sitter-scss/src/parser.c1#include <tree_sitter/parser.h>
LOW…ored_parsers/tree-sitter-scss/src/tree_sitter/parser.h1#ifndef TREE_SITTER_PARSER_H_
LOWvendored_parsers/tree-sitter-hare/bindings/rust/lib.rs1//! This crate provides hare language support for the [tree-sitter][] parsing library.
LOW…ored_parsers/tree-sitter-hare/src/tree_sitter/parser.h1#ifndef TREE_SITTER_PARSER_H_
LOW…ndored_parsers/tree-sitter-kotlin/bindings/rust/lib.rs1//! This crate provides kotlin language support for the [tree-sitter][] parsing library.
LOW…ed_parsers/tree-sitter-kotlin/src/tree_sitter/parser.h1#ifndef TREE_SITTER_PARSER_H_
LOW…ndored_parsers/tree-sitter-elvish/bindings/rust/lib.rs1//! This crate provides elvish language support for the [tree-sitter][] parsing library.
LOWvendored_parsers/tree-sitter-elvish/src/parser.c1#include <tree_sitter/parser.h>
LOW…ed_parsers/tree-sitter-elvish/src/tree_sitter/parser.h1#ifndef TREE_SITTER_PARSER_H_
LOWvendored_parsers/tree-sitter-latex/bindings/rust/lib.rs1//! This crate provides Latex language support for the [tree-sitter][] parsing library.
LOW…red_parsers/tree-sitter-latex/src/tree_sitter/parser.h1#ifndef TREE_SITTER_PARSER_H_
LOW…ored_parsers/tree-sitter-latex/src/tree_sitter/array.h1#ifndef TREE_SITTER_ARRAY_H_
LOW…ored_parsers/tree-sitter-latex/src/tree_sitter/array.h41 (assert((uint32_t)(_index) < (self)->size), &(self)->contents[_index])
LOW…ored_parsers/tree-sitter-latex/src/tree_sitter/array.h101
LOW…ored_parsers/tree-sitter-latex/src/tree_sitter/array.h121/// callback to determine the order.
LOW…ored_parsers/tree-sitter-latex/src/tree_sitter/array.h281#ifdef _MSC_VER
LOW…ored_parsers/tree-sitter-latex/src/tree_sitter/alloc.h21#define ts_malloc ts_current_malloc
LOW…ored_parsers/tree-sitter-latex/src/tree_sitter/alloc.h41#ifndef ts_realloc
LOWvendored_parsers/tree-sitter-smali/bindings/rust/lib.rs1// ------------------------------------------------------------------------------------------------
LOW…red_parsers/tree-sitter-smali/src/tree_sitter/parser.h1#ifndef TREE_SITTER_PARSER_H_
LOWsample_files/r_2.R1# This file is from https://github.com/rstudio/shiny, under the GPL v3.
LOWsample_files/r_2.R21#' * A [bslib::bs_theme()] object. This can be used to replace a stock
LOWsample_files/r_2.R101 # sliderInput() et al) can resolve their HTML dependencies at render time
LOWsample_files/r_2.R121 # "It appears `shiny::bootstrapLib()` was rendered outside of an Shiny ",
LOWsample_files/r_2.R141
LOWsample_files/r_2.R181#' Note that `func` should **not** be an anonymous function, or a function which
LOWsample_files/r_2.R241#' @export
LOWsample_files/r_2.R261#' For example, `fluidPage(plotOutput("plot", height = "100%"))` will not
LOWsample_files/r_2.R281#' @param padding Padding to use for the body. This can be a numeric vector
LOWsample_files/r_2.R301#' "#two { float: right; background-color: #ccffcc; }"
LOWsample_files/r_2.R341
LOWsample_files/r_2.R361#' [tabPanel()].
LOWsample_files/r_2.R381#' @param fluid `TRUE` to use a fluid layout. `FALSE` to use a fixed
LOWsample_files/r_2.R401#'
LOWsample_files/r_2.R441 ))
LOWsample_files/r_2.R461#' @export
LOWsample_files/r_2.R481#' any.
LOWsample_files/r_2.R501#' "breaks", "Breaks",
LOWsample_files/r_2.R521#' if (input$plotType == "scatter") {
LOWsample_files/r_2.R541#' Create a help text element
LOWsample_files/r_2.R561#'
LOWsample_files/r_2.R581#' )
LOWsample_files/r_2.R601#' @param ... [tabPanel()] elements to include in the tabset
LOWsample_files/r_2.R621#'
LOWsample_files/r_2.R641#' # Hide the tab values.
LOWsample_files/r_2.R681}
LOWsample_files/r_2.R701#' respectively.
LOWsample_files/r_2.R741
LOWsample_files/r_2.R761#' @examples
LOWsample_files/r_2.R861#' Render a [renderPlot()] or [renderImage()] within an
LOWsample_files/r_2.R881#' `print(p)`, then the coordinates for interactive graphics will not be
LOWsample_files/r_2.R901#' @param hover Similar to the `click` argument, this can be `NULL`
LOWsample_files/r_2.R921#' `imageOutput`/`plotOutput` calls may share the same `id`
94 more matches not shown…
Slop Phrases8 hits · 24 pts
SeverityFileLineSnippet
MEDIUMsample_files/r_2.R358#' @param id If provided, you can use `input$`*`id`* in your
MEDIUMsample_files/r_2.R474#' example, if you have an input with an id of `foo`, then you can use
MEDIUMsample_files/r_2.R602#' @param id If provided, you can use `input$`*`id`* in your
MEDIUMsample_files/r_2.R689#' @param id If provided, you can use `input$`*`id`* in your
MEDIUMsample_files/r_1.R358#' @param id If provided, you can use `input$`*`id`* in your
MEDIUMsample_files/r_1.R474#' example, if you have an input with an id of `foo`, then you can use
MEDIUMsample_files/r_1.R602#' @param id If provided, you can use `input$`*`id`* in your
MEDIUMsample_files/r_1.R689#' @param id If provided, you can use `input$`*`id`* in your
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippet
MEDIUM.github/workflows/release.yml16 # Create a draft release so we can add the changelog before publishing it
MEDIUMsample_files/r_2.R1# This file is from https://github.com/rstudio/shiny, under the GPL v3.
MEDIUMsample_files/r_1.R1# This file is from https://github.com/rstudio/shiny, under the GPL v3.
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMsample_files/nest_2.rs72 // TODO: Make this robust against invalid toml
MEDIUMsample_files/nest_1.rs72 // TODO: Make this robust against invalid toml
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippet
LOWsample_files/r_2.R71 # Check if ui has lang attribute; otherwise, NULL
LOWsample_files/r_1.R71 # Check if ui has lang attribute; otherwise, NULL
Fake / Example Data2 hits · 3 pts
SeverityFileLineSnippet
LOWsample_files/comments_2.rs17// a big block comment. Lorem ipsum dolor sit amet,
LOWsample_files/comments_2.rs17// a big block comment. Lorem ipsum dolor sit amet,
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippet
LOWdemo_files/1/src/cli/format.js233async function createIsIgnoredFromContextOrDie(context) {
LOWdemo_files/2/src/cli/format.js236async function createIsIgnoredFromContextOrDie(context) {
Unused Imports1 hit · 1 pts
SeverityFileLineSnippet
LOW…er-latex/bindings/python/tree_sitter_latex/__init__.py3