sqc 0.4.13

Software Code Quality - CERT C compliance checker
"""Centralized paths, constants, and defaults for the benchmark infrastructure."""

from pathlib import Path

# ── Project layout ────────────────────────────────────────────────────────────
PROJECT_DIR = Path(__file__).resolve().parent.parent
SQC_BIN = PROJECT_DIR / "target" / "release" / "sqc"
MANIFEST_ALL = PROJECT_DIR / "rules_templates" / "rules-benchmark.toml"
MANIFEST_CWE_DIR = PROJECT_DIR / "rules_templates" / "cwe"
RULE_CWE_MAP = PROJECT_DIR / "data" / "rule_cwe_map.json"
GENERATE_MAP_SCRIPT = PROJECT_DIR / "scripts" / "generate_rule_cwe_map.py"

# ── Juliet test suite ─────────────────────────────────────────────────────────
JULIET_BASE = Path.home() / "data" / "benchmarks" / "juliet-test-suite-c" / "testcases"

# ── Database ──────────────────────────────────────────────────────────────────
DB_PATH = PROJECT_DIR / "data" / "benchmarks.db"

# ── Defaults ──────────────────────────────────────────────────────────────────
DEFAULT_JOBS = 12
KNOWN_TOTAL_CWES = 118