Skip to content
AlqudimiPublic

About

Evidence before confidence: RepoForge performs local, deterministic engineering-readiness audits for software repositories — checking tests, CI, docs, and hygiene against verifiable evidence.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

RepoForge

Evidence before confidence.
Local, deterministic engineering-readiness audits for software repositories.

CI MIT License Python 3.11+

RepoForge is a small, dependency-light CLI that turns repository-quality questions into reproducible evidence. It audits documentation, tests, automation, dependencies, security signals, and maintainability; then emits actionable findings in terminal, Markdown, JSON, or SARIF format.

RepoForge is intentionally not an AI chatbot and does not upload your source code. The local scanner is the source of truth; future explanation adapters remain optional.

Why it exists

A repository can look healthy while lacking tests, reproducible dependencies, CI, community policies, or secure configuration. Existing tools usually focus on one dimension: code quality, SBOMs, vulnerability feeds, or generated documentation. RepoForge provides a single, explainable readiness snapshot for contributors and maintainers, with evidence attached to every finding.

Features

  • Offline, deterministic scanning with no account and no API key.
  • Separate scores for documentation, testing, automation, security, dependencies, and maintainability.
  • Conservative hard-coded-secret detection with redacted evidence.
  • Safe filesystem boundaries: no repository code is imported or executed.
  • Markdown, JSON, and SARIF output for humans and CI systems.
  • Baseline fingerprints for accepting known findings without losing raw history.
  • Explicit exit codes for --fail-on and --min-score policy gates.
  • A small rule protocol designed for ecosystem-specific plugins.

Quick start

git clone https://github.com/Alqudimi/RepoForge.git
cd RepoForge
python3 -m venv .venv
. .venv/bin/activate
pip install -e '.[dev]'
repoforge scan .

JSON and SARIF reports are suitable for CI artifacts:

repoforge scan . --format json --output repoforge.json
repoforge scan . --format sarif --output repoforge.sarif
repoforge scan . --fail-on high --min-score 70

To accept the current findings as a baseline:

repoforge scan . --format json --output baseline.json
repoforge scan . --baseline baseline.json --fail-on high

Example output

RepoForge score: 71.7/100
Scanned 42 files (28 source, 6 test)
[MEDIUM] CI001 — No GitHub Actions workflow was detected.
[LOW] MAINT001 src/legacy.py:18 — Unresolved maintenance marker found.

The report is a decision aid, not a security certification. A finding is evidence that deserves review, not proof of a vulnerability.

Architecture

CLI -> ScanService -> Safe RepositorySnapshot -> RuleRegistry -> Findings
                                      -> Metrics/Scoring
Findings + Score -> Terminal / Markdown / JSON / SARIF
                                      -> Baseline / Policy / Exit code

Read PRODUCT.md for the product boundary, security model, non-functional requirements, and extension strategy. The source is split into models, snapshot isolation, rules, service/policy, reporters, and CLI orchestration so contributors can add a rule without changing reporting code.

Development

pip install -e '.[dev]'
pytest
ruff check .
mypy src
bandit -q -r src

The CI workflow runs the same checks. Tests cover missing quality signals, good repositories, secret redaction, structured reporters, safe roots, and baseline behavior.

Roadmap

The next extension points are ecosystem-specific parsers, richer dependency and SBOM checks, Git history baselines, organization policy packs, and an optional local dashboard. None is required for the deterministic MVP.

Contributing and security

Please read CONTRIBUTING.md before opening an issue or pull request. Do not include real secrets or private source code in bug reports. Security reports belong in SECURITY.md.

License

RepoForge is released under the MIT License. See LICENSE.

About

Evidence before confidence: RepoForge performs local, deterministic engineering-readiness audits for software repositories — checking tests, CI, docs, and hygiene against verifiable evidence.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages