AI Slop Code Risk Monitor

littlefs-project/littlefs

SlopCodeMonitor badge for littlefs-project/littlefs Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

A little fail-safe filesystem designed for microcontrollers

7.9 Moderate pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for littlefs-project/littlefs, a C project with 7,017 GitHub stars. SynthScan examined 53,995 lines of code across 66 source files, recording 227 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 7.9 (Moderate 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.

7.9
Adjusted Signal
7.9
Raw Pattern Score
100%
Time Factor
2026-11-16
Last Push
7.0K
Stars
C
Language
54.0K
Lines of Code
66
Files
227
Pattern Hits
2026-11-16
Scan Date
0.77
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-11-16.

Cognitive Ownership Risk 13.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 3.5/100 · LOW

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

Agent Over-Engineering Ratio 20.0/100 · LOW

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

PR Review Velocity Impact 36.0/100 · MEDIUM

Which changes need focused human review? 227 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 0HIGH 51MEDIUM 0LOW 176

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 227 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.

Empty Error Handlers46 hits · 230 pts
SeverityFileLineSnippetContext
HIGHscripts/perf.py1104except FileNotFoundError:CODE
HIGHscripts/perf.py1055except TypeError:CODE
HIGHscripts/perf.py1102except TypeError:CODE
HIGHscripts/tailpipe.py136except KeyboardInterrupt:CODE
HIGHscripts/tracebd.py858except KeyboardInterrupt:CODE
HIGHscripts/plot.py246except ValueError:CODE
HIGHscripts/plot.py255except ValueError:CODE
HIGHscripts/plot.py455except FileNotFoundError:CODE
HIGHscripts/plot.py1368except KeyboardInterrupt:CODE
HIGHscripts/readtree.py53except KeyError:CODE
HIGHscripts/readtree.py61except KeyError:CODE
HIGHscripts/readtree.py97except KeyError:CODE
HIGHscripts/plotmpl.py177except ValueError:CODE
HIGHscripts/plotmpl.py186except ValueError:CODE
HIGHscripts/plotmpl.py201except FileNotFoundError:CODE
HIGHscripts/code.py591except FileNotFoundError:CODE
HIGHscripts/code.py542except TypeError:CODE
HIGHscripts/code.py589except TypeError:CODE
HIGHscripts/test.py1080except BrokenPipeError:CODE
HIGHscripts/test.py1085except BrokenPipeError:CODE
HIGHscripts/test.py833except BrokenPipeError:CODE
HIGHscripts/cov.py666except FileNotFoundError:CODE
HIGHscripts/cov.py615except TypeError:CODE
HIGHscripts/cov.py664except TypeError:CODE
HIGHscripts/bench.py1080except BrokenPipeError:CODE
HIGHscripts/bench.py1085except BrokenPipeError:CODE
HIGHscripts/bench.py823except BrokenPipeError:CODE
HIGHscripts/structs.py543except FileNotFoundError:CODE
HIGHscripts/structs.py492except TypeError:CODE
HIGHscripts/structs.py541except TypeError:CODE
HIGHscripts/summary.py627except FileNotFoundError:CODE
HIGHscripts/summary.py646except TypeError:CODE
HIGHscripts/summary.py698except FileNotFoundError:CODE
HIGHscripts/summary.py696except TypeError:CODE
HIGHscripts/summary.py260except ValueError:CODE
HIGHscripts/perfbd.py1085except FileNotFoundError:CODE
HIGHscripts/perfbd.py1035except TypeError:CODE
HIGHscripts/perfbd.py1083except TypeError:CODE
HIGHscripts/stack.py616except FileNotFoundError:CODE
HIGHscripts/stack.py567except TypeError:CODE
HIGHscripts/watch.py216except KeyboardInterrupt:CODE
HIGHscripts/teepipe.py49except KeyboardInterrupt:CODE
HIGHscripts/teepipe.py44except BrokenPipeError:CODE
HIGHscripts/data.py588except FileNotFoundError:CODE
HIGHscripts/data.py539except TypeError:CODE
HIGHscripts/data.py586except TypeError:CODE
Deep Nesting92 hits · 92 pts
SeverityFileLineSnippetContext
LOWscripts/changeprefix.py52CODE
LOWscripts/changeprefix.py85CODE
LOWscripts/perf.py160CODE
LOWscripts/perf.py237CODE
LOWscripts/perf.py387CODE
LOWscripts/perf.py674CODE
LOWscripts/perf.py921CODE
LOWscripts/perf.py1018CODE
LOWscripts/perf.py43CODE
LOWscripts/perf.py93CODE
LOWscripts/tailpipe.py101CODE
LOWscripts/tracebd.py564CODE
LOWscripts/tracebd.py450CODE
LOWscripts/tracebd.py703CODE
LOWscripts/plot.py143CODE
LOWscripts/plot.py446CODE
LOWscripts/plot.py508CODE
LOWscripts/plot.py815CODE
LOWscripts/plot.py384CODE
LOWscripts/plot.py594CODE
LOWscripts/plot.py973CODE
LOWscripts/readmdir.py173CODE
LOWscripts/readtree.py10CODE
LOWscripts/plotmpl.py192CODE
LOWscripts/plotmpl.py254CODE
LOWscripts/plotmpl.py561CODE
LOWscripts/plotmpl.py340CODE
LOWscripts/code.py138CODE
LOWscripts/code.py348CODE
LOWscripts/code.py519CODE
LOWscripts/code.py34CODE
LOWscripts/code.py84CODE
LOWscripts/test.py233CODE
LOWscripts/test.py772CODE
LOWscripts/test.py1009CODE
LOWscripts/test.py50CODE
LOWscripts/test.py149CODE
LOWscripts/test.py796CODE
LOWscripts/test.py886CODE
LOWscripts/test.py78CODE
LOWscripts/test.py93CODE
LOWscripts/test.py317CODE
LOWscripts/cov.py213CODE
LOWscripts/cov.py335CODE
LOWscripts/cov.py506CODE
LOWscripts/cov.py581CODE
LOWscripts/cov.py34CODE
LOWscripts/cov.py84CODE
LOWscripts/bench.py225CODE
LOWscripts/bench.py755CODE
LOWscripts/bench.py1003CODE
LOWscripts/bench.py50CODE
LOWscripts/bench.py146CODE
LOWscripts/bench.py784CODE
LOWscripts/bench.py881CODE
LOWscripts/bench.py75CODE
LOWscripts/bench.py90CODE
LOWscripts/bench.py309CODE
LOWscripts/structs.py132CODE
LOWscripts/structs.py296CODE
32 more matches not shown…
Over-Commented Block60 hits · 58 pts
SeverityFileLineSnippetContext
LOWlfs.c1001COMMENT
LOWlfs.c2141 LFS_MKTAG(0x400, 0x3ff, 0),COMMENT
LOWlfs.c4181#endifCOMMENT
LOWlfs.c5321// Minor (bottom-nibble), incremented on feature additionsCOMMENT
LOWlfs.c5961COMMENT
LOWlfs_util.h1/*COMMENT
LOWlfs_util.h21#include LFS_STRINGIZE(LFS_CONFIG)COMMENT
LOWlfs_util.h41// System includesCOMMENT
LOWlfs_util.h61extern "C"COMMENT
LOWlfs_util.h81#ifndef LFS_DEBUGCOMMENT
LOWlfs_util.h101#ifndef LFS_ERRORCOMMENT
LOWlfs_util.h241// Allocate memory, only used if buffers are not provided to littlefsCOMMENT
LOWlfs.h21// Software library versionCOMMENT
LOWlfs.h41COMMENT
LOWlfs.h181 // are propagated to the user.COMMENT
LOWlfs.h201COMMENT
LOWlfs.h221 // RAM. The littlefs needs a read cache, a program cache, and one additionalCOMMENT
LOWlfs.h241 // Set to -1 to disable metadata compaction during lfs_fs_gc.COMMENT
LOWlfs.h261COMMENT
LOWlfs.h281 // attr_max, and <= block_size/8. Defaults to the largest possibleCOMMENT
LOWlfs.h341COMMENT
LOWlfs.h481// be zeroed for defaults and backwards compatibility.COMMENT
LOWlfs.h501int lfs_unmount(lfs_t *lfs);COMMENT
LOWlfs.h521#endifCOMMENT
LOWlfs.h541lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path,COMMENT
LOWlfs.h561// Returns a negative error code on failure.COMMENT
LOWlfs.h581COMMENT
LOWlfs.h601// Returns a negative error code on failure.COMMENT
LOWlfs.h621// actually be updated on the storage until either sync or close is called.COMMENT
LOWlfs.h641COMMENT
LOWlfs.h661/// Directory operations ///COMMENT
LOWlfs.h681COMMENT
LOWlfs.h701//COMMENT
LOWlfs.h721// Note: Result is best effort. If files share COW structures, the returnedCOMMENT
LOWlfs.h741// function allows the work to be performed earlier and without otherCOMMENT
LOWlfs.h761// Returns a negative error code on failure. Accomplishing nothing is notCOMMENT
LOWlfs.h781#ifdef LFS_MIGRATECOMMENT
LOWbd/lfs_filebd.h21#ifndef LFS_FILEBD_TRACECOMMENT
LOWbd/lfs_rambd.h21#ifndef LFS_RAMBD_TRACECOMMENT
LOWbd/lfs_emubd.h21COMMENT
LOWtests/test_compat.toml1# Test for compatibility between different littlefs versionsCOMMENT
LOWtests/test_compat.toml21#define STRINGIZE(x) STRINGIZE_(x)COMMENT
LOWtests/test_compat.toml41#define lfsp_dir_read lfs_dir_readCOMMENT
LOWscripts/changeprefix.py1#!/usr/bin/env python3COMMENT
LOWscripts/perf.py1#!/usr/bin/env python3COMMENT
LOWscripts/code.py1#!/usr/bin/env python3COMMENT
LOWscripts/cov.py1#!/usr/bin/env python3COMMENT
LOWscripts/summary.py1#!/usr/bin/env python3COMMENT
LOWscripts/perfbd.py1#!/usr/bin/env python3COMMENT
LOWscripts/stack.py1#!/usr/bin/env python3COMMENT
LOWscripts/watch.py1#!/usr/bin/env python3COMMENT
LOWscripts/teepipe.py1#!/usr/bin/env python3COMMENT
LOWscripts/prettyasserts.py1#!/usr/bin/env python3COMMENT
LOWscripts/data.py1#!/usr/bin/env python3COMMENT
LOWrunners/test_runner.h81// a few preconfigured defines that control how tests runCOMMENT
LOWrunners/test_runner.h101#define READ_SIZE TEST_DEFINE(READ_SIZE_i)COMMENT
LOWrunners/bench_runner.h81COMMENT
LOWrunners/bench_runner.h101#define BLOCK_CYCLES_i 11COMMENT
LOWrunners/test_runner.c1/*COMMENT
LOWrunners/bench_runner.c1/*COMMENT
Cross-Language Confusion5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHscripts/prettyasserts.py100 f.writeln(" for (size_t i = 0; i < size && i < %d; i++) {" % limit)CODE
HIGHscripts/prettyasserts.py282 state = p.push()CODE
HIGHscripts/prettyasserts.py354 state = p.push()CODE
HIGHscripts/prettyasserts.py379 state = p.push()CODE
HIGHscripts/prettyasserts.py397 state = p.push()CODE
Unused Imports13 hits · 13 pts
SeverityFileLineSnippetContext
LOWscripts/changeprefix.py14CODE
LOWscripts/changeprefix.py15CODE
LOWscripts/perf.py18CODE
LOWscripts/tailpipe.py15CODE
LOWscripts/plot.py12CODE
LOWscripts/plotmpl.py15CODE
LOWscripts/plotmpl.py22CODE
LOWscripts/plotmpl.py23CODE
LOWscripts/test.py23CODE
LOWscripts/bench.py23CODE
LOWscripts/structs.py14CODE
LOWscripts/summary.py17CODE
LOWscripts/perfbd.py17CODE
AI Structural Patterns11 hits · 11 pts
SeverityFileLineSnippetContext
LOWscripts/changeprefix.py85CODE
LOWscripts/perf.py674CODE
LOWscripts/perf.py132CODE
LOWscripts/tracebd.py564CODE
LOWscripts/tracebd.py265CODE
LOWscripts/tracebd.py450CODE
LOWscripts/plot.py815CODE
LOWscripts/plotmpl.py561CODE
LOWscripts/cov.py189CODE
LOWscripts/perfbd.py640CODE
LOWscripts/stack.py311CODE