marcoramilli/SynthScan

Detect AI-generated / synthetic code patterns and open a GitHub Issue with the findings.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
scan_pathPath to the directory to scan (relative to repo root).no.
patterns_filePath to the Markdown file containing detection patterns.nopatterns/synthetic_patterns.md
score_thresholdFail the action when the Synthetic Code Score (per 1k LOC) meets or exceeds this value. Set to 0 to never fail.no0
create_issueWhether to create a GitHub Issue with the results (true/false).notrue
issue_labelLabel to attach to the created issue.nosynthscan
report_pathFile path for the JSON report.nosynthscan-report.json
diff_filePath to a unified diff file. When set, only added lines in the diff are scored (PR mode).no""
sarif_outputEmit a SARIF 2.1.0 report for GitHub Code Scanning inline annotations (true/false).nofalse
ignore_filePath to a .synthscanignore file with gitignore-style path patterns to exclude.no.synthscanignore
namedescription
scoreThe Synthetic Code Score (normalised per 1k LOC).
raw_scoreThe raw (un-normalised) total score.
match_countNumber of pattern matches found.
lines_scannedTotal lines of code scanned.
issue_bodyFull Markdown body of the report (also used in the issue).
high_critical_hit_rateNumber of HIGH or CRITICAL matches per file scanned.
by_directoryJSON object mapping directory paths to their score.
sarif_pathPath of the emitted SARIF report (only set when sarif_output is true).