This repository was archived by the owner on Apr 7, 2026. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pmat-metrics.toml
More file actions
95 lines (80 loc) · 2.23 KB
/
Copy path.pmat-metrics.toml
File metadata and controls
95 lines (80 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# PMAT Quality Metrics Configuration
# Simular: Unified Simulation Engine
# Version: 0.1.0-draft
[project]
name = "simular"
description = "Unified Simulation Engine for the Sovereign AI Stack"
version = "0.1.0-draft"
[thresholds]
# Minimum acceptable quality grade (A+, A, A-, B+, B, B-, C+, C, C-, D, F)
min_grade = "B+"
# Maximum allowed cyclomatic complexity per function
max_complexity = 15
# Minimum test coverage percentage
min_coverage = 95
# Maximum lines per function
max_function_lines = 60
# Maximum nesting depth (JPL Power of 10 Rule 1)
max_nesting_depth = 4
# Minimum assertions per function (JPL Power of 10 Rule 5)
min_assertions_per_function = 2
[satd]
# Self-Admitted Technical Debt detection
enabled = true
# Fail on any SATD comments (TODO, FIXME, HACK)
fail_on_satd = true
# Patterns to detect
patterns = ["TODO", "FIXME", "HACK", "XXX", "WORKAROUND"]
[tdg]
# Technical Debt Grading configuration
enabled = true
# Auto-update baseline on successful commits
auto_baseline = true
# Maximum score drop before failing (regression detection)
max_score_drop = 5
[hooks]
# Pre-commit hooks configuration
tdg_enforcement = true
satd_check = true
format_check = true
clippy_check = true
test_check = true
[documentation]
# Documentation validation
validate_readme = true
validate_claude_md = true
fail_on_hallucination = true
[toyota_way]
# Toyota Production System principles
jidoka = true # Stop-on-error
poka_yoke = true # Mistake-proofing via types
heijunka = true # Load-balanced execution
kaizen = true # Continuous improvement
muda_elimination = true # Zero-waste paths
genchi_genbutsu = true # Direct observation
[jpl_power_of_10]
# JPL Mission-Critical Verification rules
simple_control_flow = true
fixed_loop_bounds = true
no_heap_after_init = true
short_functions = true
assertion_density = true
minimal_scope = true
check_return_values = true
limit_preprocessor = true
restrict_pointers = true
warnings_as_errors = true
[falsification]
# Popperian falsification principles
require_testable_predictions = true
null_hypothesis_testing = true
refutation_over_confirmation = true
[exclude]
# Generated artifacts - not source code
paths = [
"book/",
"pkg/",
"web/pkg/",
"target/",
"*.min.js"
]