-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
126 lines (111 loc) · 4.28 KB
/
.pre-commit-config.yaml
File metadata and controls
126 lines (111 loc) · 4.28 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Host compatibility hook lane:
# - Hooks run on host by design.
# - Release-grade canonical full gate remains strict/manual-first: `npm run ci:strict`.
repos:
- repo: local
hooks:
- id: cortexpilot-pre-commit-quality-gate
name: cortexpilot-pre-commit-quality-gate
entry: env CORTEXPILOT_HOST_COMPAT=1 bash scripts/pre_commit_quality_gate.sh
language: system
pass_filenames: false
stages: [pre-commit]
- id: cortexpilot-pre-push-quality-gate-full
name: cortexpilot-pre-push-quality-gate-full-host-compat
entry: env CORTEXPILOT_HOST_COMPAT=1 bash scripts/pre_push_quality_gate.sh
language: system
pass_filenames: false
stages: [pre-push]
- id: cortexpilot-repo-hygiene
name: cortexpilot-repo-hygiene
entry: bash scripts/check_repo_hygiene.sh
language: system
pass_filenames: false
stages: [manual]
- id: cortexpilot-public-sensitive-surface-gate
name: cortexpilot-public-sensitive-surface-gate
entry: bash scripts/run_governance_py.sh scripts/check_public_sensitive_surface.py
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: cortexpilot-github-security-alerts-gate
name: cortexpilot-github-security-alerts-gate
entry: bash scripts/run_governance_py.sh scripts/check_github_security_alerts.py --mode require --repo xiaojiou176/CortexPilot-public
language: system
pass_filenames: false
always_run: true
stages: [manual]
- id: cortexpilot-root-semantic-cleanliness
name: cortexpilot-root-semantic-cleanliness
entry: bash scripts/run_governance_py.sh scripts/check_root_semantic_cleanliness.py
language: system
pass_filenames: false
stages: [pre-commit]
- id: cortexpilot-env-governance
name: cortexpilot-env-governance
entry: bash scripts/run_governance_py.sh scripts/check_env_governance.py --mode gate
language: system
pass_filenames: false
stages: [pre-commit]
- id: cortexpilot-dead-code-warning
name: cortexpilot-dead-code-warning
entry: bash scripts/dead_code_gate.sh --mode warn
language: system
pass_filenames: false
stages: [pre-commit]
- id: cortexpilot-test-smell-gate
name: cortexpilot-test-smell-gate
entry: bash scripts/test_smell_gate.sh
language: system
pass_filenames: false
always_run: true
stages: [manual]
- id: cortexpilot-ui-protocol-gate
name: cortexpilot-ui-protocol-gate
entry: bash scripts/ui_protocol_gate.sh
language: system
pass_filenames: false
stages: [pre-commit]
- id: cortexpilot-ui-gemini-quick-gate
name: cortexpilot-ui-gemini-quick-gate
entry: bash scripts/run_governance_py.sh scripts/ui_ux_gemini_quick_gate.py
language: system
pass_filenames: false
always_run: true
stages: [manual]
- id: cortexpilot-doc-sync-gate
name: cortexpilot-doc-sync-gate
entry: bash scripts/hooks/doc_sync_gate.sh
language: system
pass_filenames: false
always_run: true
stages: [manual]
- id: cortexpilot-doc-drift-gate
name: cortexpilot-doc-drift-gate
entry: bash scripts/hooks/doc_drift_gate.sh
language: system
pass_filenames: false
always_run: true
stages: [manual]
- id: cortexpilot-allowed-paths-gate
name: cortexpilot-allowed-paths-gate
entry: bash scripts/hooks/allowed_paths_gate.sh
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: cortexpilot-navigation-completeness-gate
name: cortexpilot-navigation-completeness-gate
entry: bash scripts/hooks/navigation_completeness_gate.sh
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
- id: cortexpilot-gitleaks-gate
name: cortexpilot-gitleaks-gate
entry: gitleaks protect --staged --config .gitleaks.toml --redact
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]