AI Slop Code Risk Monitor

sharkdp/bat

SlopCodeMonitor badge for sharkdp/bat Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A cat(1) clone with wings.

3.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for sharkdp/bat, a Rust project with 60,990 GitHub stars. SynthScan examined 62,441 lines of code across 453 source files, recording 178 pattern matches distributed across 13 syntactic categories. The legacy adjusted pattern signal is 3.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.

3.0
Adjusted Signal
3.0
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
61.0K
Stars
Rust
Language
62.4K
Lines of Code
453
Files
178
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

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.

Cognitive Ownership Risk 8.4/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 148 finding(s).

Hallucinated Dependency & Supply Chain Risk 1.7/100 · LOW

Are imports declared and package/API names verified? 12 finding(s).

Agent Over-Engineering Ratio 9.9/100 · LOW

Are wrappers, guards, and repeated structures necessary? 133 finding(s).

PR Review Velocity Impact 17.1/100 · LOW

Which changes need focused human review? 178 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 1HIGH 4MEDIUM 14LOW 159

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 178 distinct pattern matches across 13 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.

Hyper-Verbose Identifiers115 hits · 76 pts
SeverityFileLineSnippetContext
LOWtests/snapshots/generate_snapshots.py52def undo_sample_file_modification():CODE
LOWtests/syntax-tests/compare_highlighted_versions.py10def compare_highlighted_versions(root_old, root_new):CODE
LOWtests/syntax-tests/create_highlighted_versions.py43def create_highlighted_version(args):CODE
LOWtests/syntax-tests/create_highlighted_versions.py81def create_highlighted_versions(output_basepath):CODE
LOWtests/syntax-tests/source/Ruby/output.rb53 def find_repeated_substring_file(file_path)CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py635 def test_ellipsis_subscript_assignment(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py642 def test_empty_subscript_assignment(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py649 def test_invalid_subscript_assignment(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7317 def test_multiarray_writable_attributes_deletion(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7326 def test_multiarray_not_writable_attributes_deletion(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7334 def test_multiarray_flags_writable_attribute_deletion(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7340 def test_multiarray_flags_not_writable_attribute_deletion(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7450def test_flat_element_deletion():CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7461def test_scalar_element_deletion():CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7918 def test_empty_bstring_array_is_falsey(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7921 def test_whitespace_bstring_array_is_falsey(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7926 def test_all_null_bstring_array_is_falsey(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7931 def test_null_inside_bstring_array_is_truthy(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7967 def test_empty_ustring_array_is_falsey(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7970 def test_whitespace_ustring_array_is_falsey(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7975 def test_all_null_ustring_array_is_falsey(self):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7980 def test_null_inside_ustring_array_is_truthy(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py121 def test_writeable_from_readonly(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py132 def test_writeable_from_buffer(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py161 def test_writeable_from_c_data(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py472 def test_assignment_broadcasting(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py532 def test_stringlike_empty_list(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py547 def test_longdouble_assignment(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py733 def test_invalid_subscript_assignment(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py761 def test_overlapping_assignment(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py899 def test_zeros_like_like_zeros(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py939 def test_sequence_non_homogenous(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py948 def test_non_sequence_sequence(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py1080 def test_array_of_ragged_array(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py1093 def test_deep_nonragged_object(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py1100 def test_subarray_field_access(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py1378 def test_structuredscalar_indexing(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py1440 def test_count_nonzero_unaligned(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py1555 def test_pickle_with_buffercallback(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py1792 def test_sort_complex_byte_swapping(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py2248 def test_searchsorted_unicode(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py2275 def test_searchsorted_with_invalid_sorter(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py2289 def test_searchsorted_with_sorter(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py2366 def test_searchsorted_return_type(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py2378 def test_argpartition_out_of_range(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py2389 def test_partition_out_of_range(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py2400 def test_argpartition_integer(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py2418 def test_partition_empty_array(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py2428 def test_argpartition_empty_array(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py2749 def test_partition_unicode_kind(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py2956 def test_dot_matmul_inner_array_casting_fails(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3002 def test_diagonal_view_notwriteable(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3297 def test__complex__should_not_work(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3362 def test_ufunc_binop_interaction(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3546 def test_ufunc_override_normalize_signature(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3631 def test_pow_override_with_errors(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3652 def test_pow_array_object_dtype(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3685 def test_pos_array_ufunc_override(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3698 def test_extension_incref_elide(self):CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3713 def test_extension_incref_elide_stack(self):CODE
55 more matches not shown…
Decorative Section Separators8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMtests/syntax-tests/source/Bash/batgrep.sh2# -----------------------------------------------------------------------------COMMENT
MEDIUMtests/syntax-tests/source/Bash/batgrep.sh7# -----------------------------------------------------------------------------COMMENT
MEDIUMdiagnostics/info.sh24# -----------------------------------------------------------------------------COMMENT
MEDIUMdiagnostics/info.sh26# -----------------------------------------------------------------------------COMMENT
MEDIUMdiagnostics/info.sh143# -----------------------------------------------------------------------------COMMENT
MEDIUMdiagnostics/info.sh145# -----------------------------------------------------------------------------COMMENT
MEDIUMdiagnostics/info.sh224# -----------------------------------------------------------------------------COMMENT
MEDIUMdiagnostics/info.sh226# -----------------------------------------------------------------------------COMMENT
Over-Commented Block24 hits · 23 pts
SeverityFileLineSnippetContext
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3701 #COMMENT
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py5441 # this needs definition as there are lots places along the lineCOMMENT
LOWtests/benchmarks/highlighting-speed-src/jquery.js1241 // Regex strategy adopted from Diego PeriniCOMMENT
LOWtests/benchmarks/highlighting-speed-src/jquery.js4081 // 1. The entire cache objectCOMMENT
LOWtests/benchmarks/highlighting-speed-src/jquery.js10301COMMENT
LOWtests/scripts/find-slow-to-highlight-files.py1#!/usr/bin/env python3COMMENT
LOWassets/syntaxes/02_Extra/syntax_test_requirements.txt41# ^^^^^ constant.otherCOMMENT
LOWassets/syntaxes/02_Extra/syntax_test_requirements.txt61# ^^^^^^^^^^^^^^^ - comment.lineCOMMENT
LOWassets/syntaxes/02_Extra/syntax_test_requirements.txt81#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ markup.underline.link.urlCOMMENT
LOWsrc/error.rs21 #[error("unable to detect syntax for {0}")]COMMENT
LOWsrc/terminal.rs21 0x04 => Color::Blue,COMMENT
LOWsrc/lib.rs1//! `bat` is a library to print syntax highlighted content.COMMENT
LOWsrc/theme.rs41COMMENT
LOWsrc/theme.rs61/// ```COMMENT
LOWsrc/style.rs181 ///COMMENT
LOWsrc/syntax_mapping.rs41COMMENT
LOWsrc/syntax_mapping.rs121 ///COMMENT
LOWsrc/vscreen.rs61COMMENT
LOWsrc/assets.rs121 file_name: impl AsRef<Path>,COMMENT
LOWsrc/nonprintable_notation.rs1/// How to print non-printable characters withCOMMENT
LOWsrc/bin/bat/config.rs61 }COMMENT
LOWsrc/syntax_mapping/builtin.rs21//COMMENT
LOWsrc/syntax_mapping/builtin.rs41// `GlobMatcher` for rules that they have previously visited.COMMENT
LOWsrc/assets/assets_metadata.rs41 ///COMMENT
Empty Error Handlers4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHtests/syntax-tests/create_highlighted_versions.py37except FileNotFoundError:CODE
HIGH…hmarks/highlighting-speed-src/numpy_test_multiarray.py7455except TypeError:CODE
HIGH…hmarks/highlighting-speed-src/numpy_test_multiarray.py4927except (MemoryError, ValueError):CODE
HIGH…hmarks/highlighting-speed-src/numpy_test_multiarray.py5092except IndexError:CODE
Excessive Try-Catch Wrapping6 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMtests/syntax-tests/compare_highlighted_versions.py74 print("Error: files with changes have been found")CODE
MEDIUMtests/syntax-tests/source/Swift/test.swift161 print("Error creating a file \(destinationFileUrl) : \(writeError)")CODE
MEDIUMtests/syntax-tests/source/Swift/test.swift165 print("Error took place while downloading a file. Error description: %@", error?.localizedDescription);CODE
MEDIUM…hmarks/highlighting-speed-src/numpy_test_multiarray.py328def make_array(size, offset, strides):CODE
LOW⚡…hmarks/highlighting-speed-src/numpy_test_multiarray.py7457 except Exception:CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py332 except Exception as e:CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALtests/benchmarks/highlighting-speed-src/jquery.js7622jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {CODE
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtests/integration_tests.rs3618 .write_stdin("Lorem Ipsum")CODE
LOWtests/integration_tests.rs3621 .stdout("\x1B[48;2;208;218;231mLorem Ipsum\x1B[0m")CODE
LOWtests/integration_tests.rs3638 .write_stdin("Lorem Ipsum")CODE
LOWtests/integration_tests.rs3641 .stdout("\x1B[48;2;33;48;67mLorem Ipsum\x1B[0m")CODE
LOWtests/integration_tests.rs4647 .args(["config", "user.email", "test@test.com"])CODE
LOWtests/syntax-tests/highlighted/HTML/test.html19 Lorem <strong>ODE
LOWtests/syntax-tests/source/HTML/test.html19 Lorem <strong>ipsum</strong> dolor sit amet consectetur adipisicingCODE
LOWtests/syntax-tests/source/PHP/test.php103$doe->setName('John Doe');CODE
Unused Imports3 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/syntax-tests/source/Python/battest.py1CODE
LOWtests/syntax-tests/source/Python/battest.py3CODE
LOWtests/syntax-tests/source/Python/battest.py4CODE
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…hmarks/highlighting-speed-src/numpy_test_multiarray.py3406 # Create an object with the given base, in the given module, with aCOMMENT
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/benchmarks/highlighting-speed-src/jquery.js10313// understands anonymous AMD modules. A named AMD is safest and most robustCOMMENT
Deep Nesting5 hits · 2 pts
SeverityFileLineSnippetContext
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3210CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3362CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py4477CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py8413CODE
LOW…hmarks/highlighting-speed-src/numpy_test_multiarray.py3433CODE
Slop Phrases1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/syntax-tests/create_highlighted_versions.py56 env["COLORTERM"] = "truecolor" # make sure to output 24bit colorsCODE
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/benchmarks/highlighting-speed-src/jquery.js4173function getData( data ) {CODE