A little fail-safe filesystem designed for microcontrollers
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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 163 finding(s).
Are imports declared and package/API names verified? 18 finding(s).
Are wrappers, guards, and repeated structures necessary? 57 finding(s).
Which changes need focused human review? 227 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/perf.py | 1104 | except FileNotFoundError: | CODE |
| HIGH | scripts/perf.py | 1055 | except TypeError: | CODE |
| HIGH | scripts/perf.py | 1102 | except TypeError: | CODE |
| HIGH | scripts/tailpipe.py | 136 | except KeyboardInterrupt: | CODE |
| HIGH | scripts/tracebd.py | 858 | except KeyboardInterrupt: | CODE |
| HIGH | scripts/plot.py | 246 | except ValueError: | CODE |
| HIGH | scripts/plot.py | 255 | except ValueError: | CODE |
| HIGH | scripts/plot.py | 455 | except FileNotFoundError: | CODE |
| HIGH | scripts/plot.py | 1368 | except KeyboardInterrupt: | CODE |
| HIGH | scripts/readtree.py | 53 | except KeyError: | CODE |
| HIGH | scripts/readtree.py | 61 | except KeyError: | CODE |
| HIGH | scripts/readtree.py | 97 | except KeyError: | CODE |
| HIGH | scripts/plotmpl.py | 177 | except ValueError: | CODE |
| HIGH | scripts/plotmpl.py | 186 | except ValueError: | CODE |
| HIGH | scripts/plotmpl.py | 201 | except FileNotFoundError: | CODE |
| HIGH | scripts/code.py | 591 | except FileNotFoundError: | CODE |
| HIGH | scripts/code.py | 542 | except TypeError: | CODE |
| HIGH | scripts/code.py | 589 | except TypeError: | CODE |
| HIGH | scripts/test.py | 1080 | except BrokenPipeError: | CODE |
| HIGH | scripts/test.py | 1085 | except BrokenPipeError: | CODE |
| HIGH | scripts/test.py | 833 | except BrokenPipeError: | CODE |
| HIGH | scripts/cov.py | 666 | except FileNotFoundError: | CODE |
| HIGH | scripts/cov.py | 615 | except TypeError: | CODE |
| HIGH | scripts/cov.py | 664 | except TypeError: | CODE |
| HIGH | scripts/bench.py | 1080 | except BrokenPipeError: | CODE |
| HIGH | scripts/bench.py | 1085 | except BrokenPipeError: | CODE |
| HIGH | scripts/bench.py | 823 | except BrokenPipeError: | CODE |
| HIGH | scripts/structs.py | 543 | except FileNotFoundError: | CODE |
| HIGH | scripts/structs.py | 492 | except TypeError: | CODE |
| HIGH | scripts/structs.py | 541 | except TypeError: | CODE |
| HIGH | scripts/summary.py | 627 | except FileNotFoundError: | CODE |
| HIGH | scripts/summary.py | 646 | except TypeError: | CODE |
| HIGH | scripts/summary.py | 698 | except FileNotFoundError: | CODE |
| HIGH | scripts/summary.py | 696 | except TypeError: | CODE |
| HIGH | scripts/summary.py | 260 | except ValueError: | CODE |
| HIGH | scripts/perfbd.py | 1085 | except FileNotFoundError: | CODE |
| HIGH | scripts/perfbd.py | 1035 | except TypeError: | CODE |
| HIGH | scripts/perfbd.py | 1083 | except TypeError: | CODE |
| HIGH | scripts/stack.py | 616 | except FileNotFoundError: | CODE |
| HIGH | scripts/stack.py | 567 | except TypeError: | CODE |
| HIGH | scripts/watch.py | 216 | except KeyboardInterrupt: | CODE |
| HIGH | scripts/teepipe.py | 49 | except KeyboardInterrupt: | CODE |
| HIGH | scripts/teepipe.py | 44 | except BrokenPipeError: | CODE |
| HIGH | scripts/data.py | 588 | except FileNotFoundError: | CODE |
| HIGH | scripts/data.py | 539 | except TypeError: | CODE |
| HIGH | scripts/data.py | 586 | except TypeError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/changeprefix.py | 52 | CODE | |
| LOW | scripts/changeprefix.py | 85 | CODE | |
| LOW | scripts/perf.py | 160 | CODE | |
| LOW | scripts/perf.py | 237 | CODE | |
| LOW | scripts/perf.py | 387 | CODE | |
| LOW | scripts/perf.py | 674 | CODE | |
| LOW | scripts/perf.py | 921 | CODE | |
| LOW | scripts/perf.py | 1018 | CODE | |
| LOW | scripts/perf.py | 43 | CODE | |
| LOW | scripts/perf.py | 93 | CODE | |
| LOW | scripts/tailpipe.py | 101 | CODE | |
| LOW | scripts/tracebd.py | 564 | CODE | |
| LOW | scripts/tracebd.py | 450 | CODE | |
| LOW | scripts/tracebd.py | 703 | CODE | |
| LOW | scripts/plot.py | 143 | CODE | |
| LOW | scripts/plot.py | 446 | CODE | |
| LOW | scripts/plot.py | 508 | CODE | |
| LOW | scripts/plot.py | 815 | CODE | |
| LOW | scripts/plot.py | 384 | CODE | |
| LOW | scripts/plot.py | 594 | CODE | |
| LOW | scripts/plot.py | 973 | CODE | |
| LOW | scripts/readmdir.py | 173 | CODE | |
| LOW | scripts/readtree.py | 10 | CODE | |
| LOW | scripts/plotmpl.py | 192 | CODE | |
| LOW | scripts/plotmpl.py | 254 | CODE | |
| LOW | scripts/plotmpl.py | 561 | CODE | |
| LOW | scripts/plotmpl.py | 340 | CODE | |
| LOW | scripts/code.py | 138 | CODE | |
| LOW | scripts/code.py | 348 | CODE | |
| LOW | scripts/code.py | 519 | CODE | |
| LOW | scripts/code.py | 34 | CODE | |
| LOW | scripts/code.py | 84 | CODE | |
| LOW | scripts/test.py | 233 | CODE | |
| LOW | scripts/test.py | 772 | CODE | |
| LOW | scripts/test.py | 1009 | CODE | |
| LOW | scripts/test.py | 50 | CODE | |
| LOW | scripts/test.py | 149 | CODE | |
| LOW | scripts/test.py | 796 | CODE | |
| LOW | scripts/test.py | 886 | CODE | |
| LOW | scripts/test.py | 78 | CODE | |
| LOW | scripts/test.py | 93 | CODE | |
| LOW | scripts/test.py | 317 | CODE | |
| LOW | scripts/cov.py | 213 | CODE | |
| LOW | scripts/cov.py | 335 | CODE | |
| LOW | scripts/cov.py | 506 | CODE | |
| LOW | scripts/cov.py | 581 | CODE | |
| LOW | scripts/cov.py | 34 | CODE | |
| LOW | scripts/cov.py | 84 | CODE | |
| LOW | scripts/bench.py | 225 | CODE | |
| LOW | scripts/bench.py | 755 | CODE | |
| LOW | scripts/bench.py | 1003 | CODE | |
| LOW | scripts/bench.py | 50 | CODE | |
| LOW | scripts/bench.py | 146 | CODE | |
| LOW | scripts/bench.py | 784 | CODE | |
| LOW | scripts/bench.py | 881 | CODE | |
| LOW | scripts/bench.py | 75 | CODE | |
| LOW | scripts/bench.py | 90 | CODE | |
| LOW | scripts/bench.py | 309 | CODE | |
| LOW | scripts/structs.py | 132 | CODE | |
| LOW | scripts/structs.py | 296 | CODE | |
| 32 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | lfs.c | 1001 | COMMENT | |
| LOW | lfs.c | 2141 | LFS_MKTAG(0x400, 0x3ff, 0), | COMMENT |
| LOW | lfs.c | 4181 | #endif | COMMENT |
| LOW | lfs.c | 5321 | // Minor (bottom-nibble), incremented on feature additions | COMMENT |
| LOW | lfs.c | 5961 | COMMENT | |
| LOW | lfs_util.h | 1 | /* | COMMENT |
| LOW | lfs_util.h | 21 | #include LFS_STRINGIZE(LFS_CONFIG) | COMMENT |
| LOW | lfs_util.h | 41 | // System includes | COMMENT |
| LOW | lfs_util.h | 61 | extern "C" | COMMENT |
| LOW | lfs_util.h | 81 | #ifndef LFS_DEBUG | COMMENT |
| LOW | lfs_util.h | 101 | #ifndef LFS_ERROR | COMMENT |
| LOW | lfs_util.h | 241 | // Allocate memory, only used if buffers are not provided to littlefs | COMMENT |
| LOW | lfs.h | 21 | // Software library version | COMMENT |
| LOW | lfs.h | 41 | COMMENT | |
| LOW | lfs.h | 181 | // are propagated to the user. | COMMENT |
| LOW | lfs.h | 201 | COMMENT | |
| LOW | lfs.h | 221 | // RAM. The littlefs needs a read cache, a program cache, and one additional | COMMENT |
| LOW | lfs.h | 241 | // Set to -1 to disable metadata compaction during lfs_fs_gc. | COMMENT |
| LOW | lfs.h | 261 | COMMENT | |
| LOW | lfs.h | 281 | // attr_max, and <= block_size/8. Defaults to the largest possible | COMMENT |
| LOW | lfs.h | 341 | COMMENT | |
| LOW | lfs.h | 481 | // be zeroed for defaults and backwards compatibility. | COMMENT |
| LOW | lfs.h | 501 | int lfs_unmount(lfs_t *lfs); | COMMENT |
| LOW | lfs.h | 521 | #endif | COMMENT |
| LOW | lfs.h | 541 | lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path, | COMMENT |
| LOW | lfs.h | 561 | // Returns a negative error code on failure. | COMMENT |
| LOW | lfs.h | 581 | COMMENT | |
| LOW | lfs.h | 601 | // Returns a negative error code on failure. | COMMENT |
| LOW | lfs.h | 621 | // actually be updated on the storage until either sync or close is called. | COMMENT |
| LOW | lfs.h | 641 | COMMENT | |
| LOW | lfs.h | 661 | /// Directory operations /// | COMMENT |
| LOW | lfs.h | 681 | COMMENT | |
| LOW | lfs.h | 701 | // | COMMENT |
| LOW | lfs.h | 721 | // Note: Result is best effort. If files share COW structures, the returned | COMMENT |
| LOW | lfs.h | 741 | // function allows the work to be performed earlier and without other | COMMENT |
| LOW | lfs.h | 761 | // Returns a negative error code on failure. Accomplishing nothing is not | COMMENT |
| LOW | lfs.h | 781 | #ifdef LFS_MIGRATE | COMMENT |
| LOW | bd/lfs_filebd.h | 21 | #ifndef LFS_FILEBD_TRACE | COMMENT |
| LOW | bd/lfs_rambd.h | 21 | #ifndef LFS_RAMBD_TRACE | COMMENT |
| LOW | bd/lfs_emubd.h | 21 | COMMENT | |
| LOW | tests/test_compat.toml | 1 | # Test for compatibility between different littlefs versions | COMMENT |
| LOW | tests/test_compat.toml | 21 | #define STRINGIZE(x) STRINGIZE_(x) | COMMENT |
| LOW | tests/test_compat.toml | 41 | #define lfsp_dir_read lfs_dir_read | COMMENT |
| LOW | scripts/changeprefix.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | scripts/perf.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | scripts/code.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | scripts/cov.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | scripts/summary.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | scripts/perfbd.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | scripts/stack.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | scripts/watch.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | scripts/teepipe.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | scripts/prettyasserts.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | scripts/data.py | 1 | #!/usr/bin/env python3 | COMMENT |
| LOW | runners/test_runner.h | 81 | // a few preconfigured defines that control how tests run | COMMENT |
| LOW | runners/test_runner.h | 101 | #define READ_SIZE TEST_DEFINE(READ_SIZE_i) | COMMENT |
| LOW | runners/bench_runner.h | 81 | COMMENT | |
| LOW | runners/bench_runner.h | 101 | #define BLOCK_CYCLES_i 11 | COMMENT |
| LOW | runners/test_runner.c | 1 | /* | COMMENT |
| LOW | runners/bench_runner.c | 1 | /* | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/prettyasserts.py | 100 | f.writeln(" for (size_t i = 0; i < size && i < %d; i++) {" % limit) | CODE |
| HIGH | scripts/prettyasserts.py | 282 | state = p.push() | CODE |
| HIGH | scripts/prettyasserts.py | 354 | state = p.push() | CODE |
| HIGH | scripts/prettyasserts.py | 379 | state = p.push() | CODE |
| HIGH | scripts/prettyasserts.py | 397 | state = p.push() | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/changeprefix.py | 14 | CODE | |
| LOW | scripts/changeprefix.py | 15 | CODE | |
| LOW | scripts/perf.py | 18 | CODE | |
| LOW | scripts/tailpipe.py | 15 | CODE | |
| LOW | scripts/plot.py | 12 | CODE | |
| LOW | scripts/plotmpl.py | 15 | CODE | |
| LOW | scripts/plotmpl.py | 22 | CODE | |
| LOW | scripts/plotmpl.py | 23 | CODE | |
| LOW | scripts/test.py | 23 | CODE | |
| LOW | scripts/bench.py | 23 | CODE | |
| LOW | scripts/structs.py | 14 | CODE | |
| LOW | scripts/summary.py | 17 | CODE | |
| LOW | scripts/perfbd.py | 17 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/changeprefix.py | 85 | CODE | |
| LOW | scripts/perf.py | 674 | CODE | |
| LOW | scripts/perf.py | 132 | CODE | |
| LOW | scripts/tracebd.py | 564 | CODE | |
| LOW | scripts/tracebd.py | 265 | CODE | |
| LOW | scripts/tracebd.py | 450 | CODE | |
| LOW | scripts/plot.py | 815 | CODE | |
| LOW | scripts/plotmpl.py | 561 | CODE | |
| LOW | scripts/cov.py | 189 | CODE | |
| LOW | scripts/perfbd.py | 640 | CODE | |
| LOW | scripts/stack.py | 311 | CODE |