@boyingliu01/xp-gate 0.41.58 → 0.41.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adapters/rust.sh +184 -0
- package/hooks/gate-entries/gate-5-entry.sh +1 -1
- package/hooks/lib/file-classifier.sh +6 -2
- package/hooks/lib/toolchain-path.sh +5 -0
- package/lib/language-registry.js +81 -330
- package/lib/mattpocock-license-verdict.json +1 -1
- package/package.json +1 -1
- package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/claude-code/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/claude-code/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/dsh/package.json +1 -1
- package/plugins/dsh/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/dsh/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/dsh/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/opencode/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/opencode/skills/test-specification-alignment/AGENTS.md +1 -1
- package/plugins/qoder/plugin.json +1 -1
- package/plugins/qoder/skills/delphi-review/AGENTS.md +1 -1
- package/plugins/qoder/skills/sprint-flow/AGENTS.md +1 -1
- package/plugins/qoder/skills/test-specification-alignment/AGENTS.md +1 -1
- package/skills/delphi-review/AGENTS.md +1 -1
- package/skills/sprint-flow/AGENTS.md +1 -1
- package/skills/test-specification-alignment/AGENTS.md +1 -1
package/adapters/rust.sh
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
|
|
3
|
+
# Rust adapter for quality gates (#829)
|
|
4
|
+
# Tools: cargo clippy, cargo fmt, cargo test, cargo llvm-cov
|
|
5
|
+
#
|
|
6
|
+
# WHY THIS FILE EXISTS
|
|
7
|
+
# Before it, a Cargo.toml + src/*.rs repository was classified as "no language",
|
|
8
|
+
# so Gates 1/3/5/9/10 all skipped and the report still said PASS -- the defect
|
|
9
|
+
# family #717/#763/#788 name: "not checked" wearing the badge of "checked and
|
|
10
|
+
# clean". The extension was known only to docs-only.sh, which decided a file
|
|
11
|
+
# was NOT documentation; nothing consumed that knowledge.
|
|
12
|
+
#
|
|
13
|
+
# RESOLUTION ORDER (#829)
|
|
14
|
+
# XP_GATE_CARGO_BIN -> PATH -> ~/.cargo/bin/cargo
|
|
15
|
+
# The last step matters because rustup appends ~/.cargo/bin to the LOGIN
|
|
16
|
+
# shell's PATH; the hook runs in a non-login shell, which never reads it, so a
|
|
17
|
+
# correctly installed toolchain looked absent. lib/toolchain-path.sh now
|
|
18
|
+
# bootstraps that directory; this adapter keeps its own fallback so it stays
|
|
19
|
+
# usable when sourced on its own.
|
|
20
|
+
|
|
21
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
22
|
+
# #597: the library can be beside the adapters or one level up, depending on how
|
|
23
|
+
# the package was installed:
|
|
24
|
+
# global install ~/.config/xp-gate/adapters/adapter-common.sh (inside)
|
|
25
|
+
# npm package src/npm-package/adapters/../adapter-common.sh (above)
|
|
26
|
+
for _ac_candidate in \
|
|
27
|
+
"$SCRIPT_DIR/adapter-common.sh" \
|
|
28
|
+
"$SCRIPT_DIR/../adapter-common.sh"; do
|
|
29
|
+
if [ -f "$_ac_candidate" ]; then
|
|
30
|
+
# shellcheck source=/dev/null
|
|
31
|
+
source "$_ac_candidate"
|
|
32
|
+
break
|
|
33
|
+
fi
|
|
34
|
+
done
|
|
35
|
+
unset _ac_candidate
|
|
36
|
+
|
|
37
|
+
# The cargo binary, resolved in the documented order.
|
|
38
|
+
#
|
|
39
|
+
# Prints the command to use, or nothing when cargo cannot be found at all. An
|
|
40
|
+
# override that does not exist is NOT silently replaced by a PATH lookup: an
|
|
41
|
+
# explicit pin that resolves to something else would measure a different toolchain
|
|
42
|
+
# than the one asked for.
|
|
43
|
+
rust_cargo_bin() {
|
|
44
|
+
if [ -n "${XP_GATE_CARGO_BIN:-}" ]; then
|
|
45
|
+
[ -n "${XP_GATE_CARGO_BIN}" ] && printf '%s' "$XP_GATE_CARGO_BIN"
|
|
46
|
+
return 0
|
|
47
|
+
fi
|
|
48
|
+
if command -v cargo >/dev/null 2>&1; then
|
|
49
|
+
printf '%s' "cargo"
|
|
50
|
+
return 0
|
|
51
|
+
fi
|
|
52
|
+
local candidate
|
|
53
|
+
for candidate in "${HOME:-/nonexistent}/.cargo/bin/cargo" "${HOME:-/nonexistent}/.cargo/bin/cargo.exe"; do
|
|
54
|
+
if [ -x "$candidate" ]; then
|
|
55
|
+
printf '%s' "$candidate"
|
|
56
|
+
return 0
|
|
57
|
+
fi
|
|
58
|
+
done
|
|
59
|
+
return 0
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
# Are we in a Rust workspace? A Cargo.toml is the marker, matching how the other
|
|
63
|
+
# adapters key on their ecosystem's manifest rather than on file extensions.
|
|
64
|
+
rust_is_project() {
|
|
65
|
+
[ -f "Cargo.toml" ]
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
# cargo must exist before anything else can be measured.
|
|
69
|
+
#
|
|
70
|
+
# Returns 2 -- BLOCK, not "no tests" -- when it is absent (#829 acceptance 2). A
|
|
71
|
+
# missing toolchain is a reason the gate could not evaluate, and this repository's
|
|
72
|
+
# rule for a language tool is BLOCK rather than a quiet pass; only secret
|
|
73
|
+
# scanning has a stronger rule than this.
|
|
74
|
+
_rust_require_cargo() {
|
|
75
|
+
local cargo_bin
|
|
76
|
+
cargo_bin="$(rust_cargo_bin)"
|
|
77
|
+
# An override that names a path that does not exist is NOT a usable cargo. The
|
|
78
|
+
# first version only tested for an empty string, so a pinned-but-missing binary
|
|
79
|
+
# sailed through this check and failed later at a different message -- measured
|
|
80
|
+
# while writing AC-829-04, where that made the test pass for the wrong reason.
|
|
81
|
+
if [ -z "$cargo_bin" ] || { [ "$cargo_bin" != "cargo" ] && [ ! -x "$cargo_bin" ]; }; then
|
|
82
|
+
echo "❌ cargo not found (looked at XP_GATE_CARGO_BIN, PATH and ~/.cargo/bin)"
|
|
83
|
+
echo " Install the Rust toolchain (https://rustup.rs) so this gate can judge."
|
|
84
|
+
return 2
|
|
85
|
+
fi
|
|
86
|
+
RUST_CARGO="$cargo_bin"
|
|
87
|
+
return 0
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
run_static_analysis() {
|
|
91
|
+
rust_is_project || return 0
|
|
92
|
+
_rust_require_cargo || return $?
|
|
93
|
+
|
|
94
|
+
echo "Running Rust static analysis (cargo clippy)..."
|
|
95
|
+
# Two channels, deliberately:
|
|
96
|
+
#
|
|
97
|
+
# 1. Exit status with `-D warnings`. Only the lints compiled by rustc are
|
|
98
|
+
# promoted by this flag.
|
|
99
|
+
# 2. `^warning: ` in the output. cargo's MANIFEST lints (unused_dependencies,
|
|
100
|
+
# unexpected_cfgs declared in [lints]) are emitted during resolution and are
|
|
101
|
+
# NOT rustc lints, so `-D warnings` never reaches them. Without this second
|
|
102
|
+
# channel they are printed and the gate reports clean -- the same "printed a
|
|
103
|
+
# finding, scored it a pass" shape this repository keeps closing.
|
|
104
|
+
local output rc
|
|
105
|
+
output=$("$RUST_CARGO" clippy --workspace --all-targets -- -D warnings 2>&1)
|
|
106
|
+
rc=$?
|
|
107
|
+
printf '%s\n' "$output"
|
|
108
|
+
if [ $rc -ne 0 ]; then
|
|
109
|
+
return 1
|
|
110
|
+
fi
|
|
111
|
+
if printf '%s\n' "$output" | grep -qE '^warning: '; then
|
|
112
|
+
echo "❌ clippy reported warnings that -D warnings does not promote (cargo manifest lints)."
|
|
113
|
+
return 1
|
|
114
|
+
fi
|
|
115
|
+
return 0
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
run_lint() {
|
|
119
|
+
rust_is_project || return 0
|
|
120
|
+
_rust_require_cargo || return $?
|
|
121
|
+
|
|
122
|
+
echo "Running Rust formatting check (cargo fmt --check)..."
|
|
123
|
+
"$RUST_CARGO" fmt --all -- --check
|
|
124
|
+
return $?
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
run_tests() {
|
|
128
|
+
rust_is_project || return 0
|
|
129
|
+
_rust_require_cargo || return $?
|
|
130
|
+
|
|
131
|
+
echo "Running Rust tests (cargo test)..."
|
|
132
|
+
"$RUST_CARGO" test --workspace
|
|
133
|
+
return $?
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
# `cargo llvm-cov` runs the test suite itself, so a separate run_tests() pass adds
|
|
137
|
+
# no verdict -- only time. Same declaration the Go adapter makes (#798 / #794).
|
|
138
|
+
coverage_runs_tests() { return 0; }
|
|
139
|
+
|
|
140
|
+
run_coverage() {
|
|
141
|
+
rust_is_project || return 0
|
|
142
|
+
_rust_require_cargo || return $?
|
|
143
|
+
|
|
144
|
+
# cargo-llvm-cov is a separate install. Missing is BLOCK (2), never "no tests":
|
|
145
|
+
# the coverage question was not answered, and answering it with a pass is the
|
|
146
|
+
# defect class this adapter was built to remove.
|
|
147
|
+
if ! "$RUST_CARGO" llvm-cov --version >/dev/null 2>&1; then
|
|
148
|
+
echo "❌ cargo-llvm-cov not installed (cargo install cargo-llvm-cov)"
|
|
149
|
+
return 2
|
|
150
|
+
fi
|
|
151
|
+
|
|
152
|
+
echo "Running Rust coverage (cargo llvm-cov)..."
|
|
153
|
+
mkdir -p coverage
|
|
154
|
+
rm -f coverage/lcov.info
|
|
155
|
+
# lcov is the format Gate 5 already parses for every other language, so Rust
|
|
156
|
+
# reuses that path instead of introducing a second coverage reader.
|
|
157
|
+
#
|
|
158
|
+
# THE ARTIFACT IS THE VERDICT, not the exit status. A cargo that returns 0 and
|
|
159
|
+
# writes no lcov (a wrapper script, a workspace with no tests to instrument, a
|
|
160
|
+
# pinned binary that is not really cargo-llvm-cov) must not be scored as
|
|
161
|
+
# "coverage measured". Removing the stale file first means a missing report
|
|
162
|
+
# cannot be mistaken for the previous run's.
|
|
163
|
+
"$RUST_CARGO" llvm-cov --workspace --lcov --output-path coverage/lcov.info
|
|
164
|
+
local rc=$?
|
|
165
|
+
if [ $rc -ne 0 ]; then
|
|
166
|
+
return $rc
|
|
167
|
+
fi
|
|
168
|
+
if [ ! -s coverage/lcov.info ]; then
|
|
169
|
+
echo "❌ cargo llvm-cov exited 0 but wrote no coverage/lcov.info — coverage was NOT measured"
|
|
170
|
+
return 2
|
|
171
|
+
fi
|
|
172
|
+
return 0
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
# Gate 13 capability: `cargo check` is the compiler verdict -- it type-checks the
|
|
176
|
+
# workspace without producing a binary. Declared as a command so the gate runs the
|
|
177
|
+
# tool's own check rather than re-deriving what "compiled" means.
|
|
178
|
+
compiler_check_command() {
|
|
179
|
+
rust_is_project || return 0
|
|
180
|
+
local cargo_bin
|
|
181
|
+
cargo_bin="$(rust_cargo_bin)"
|
|
182
|
+
[ -n "$cargo_bin" ] || return 0
|
|
183
|
+
printf '%s check --workspace --all-targets' "$cargo_bin"
|
|
184
|
+
}
|
|
@@ -812,7 +812,7 @@ else
|
|
|
812
812
|
# of a test result was reported as the absence of a need for one. The
|
|
813
813
|
# Principles extensions list got `.cs` in ac214d38; this one was left behind,
|
|
814
814
|
# which is why the C# arm looked like it worked while Gate 5 stood down.
|
|
815
|
-
CODE_EXTENSIONS="\.(ts|tsx|js|jsx|mjs|cjs|py|go|java|kt|kts|cs|csx|cpp|cc|cxx|c|h|hpp|swift|m|mm|dart|php|phtml|sh|ps1)$"
|
|
815
|
+
CODE_EXTENSIONS="\.(ts|tsx|js|jsx|mjs|cjs|py|go|java|kt|kts|cs|csx|cpp|cc|cxx|c|h|hpp|swift|m|mm|dart|php|phtml|rs|sh|ps1)$"
|
|
816
816
|
CHANGED_CODE_FILES=$(echo "$CHANGED_FILES" | grep -E "$CODE_EXTENSIONS" || true)
|
|
817
817
|
if [ -z "$CHANGED_CODE_FILES" ]; then
|
|
818
818
|
# #554: this branch DID stand down deliberately, but "PASS" is a claim that
|
|
@@ -37,12 +37,16 @@ XP_GATE_JS_TS_EXTS='mjs|cjs|mts|cts|js|jsx|ts|tsx'
|
|
|
37
37
|
# Journals, source and script languages that Gate 4 (principles) can grade.
|
|
38
38
|
# Gate 4 runs a language-detecting walker rather than a per-language tool, so it
|
|
39
39
|
# legitimately covers more than Gate 3 (which needs a CCN-capable parser).
|
|
40
|
-
XP_GATE_PRINCIPLES_EXTS="${XP_GATE_JS_TS_EXTS}|py|go|java|kt|dart|swift|cpp|c|hpp|h|m|mm|cs|php"
|
|
40
|
+
XP_GATE_PRINCIPLES_EXTS="${XP_GATE_JS_TS_EXTS}|py|go|java|kt|dart|swift|cpp|c|hpp|h|m|mm|cs|php|rs"
|
|
41
41
|
|
|
42
42
|
# Languages Gate 3 can measure complexity for. A parser is required, so this is
|
|
43
43
|
# narrower than the principle set; keep it that way rather than implying a tool
|
|
44
44
|
# exists where it does not.
|
|
45
|
-
|
|
45
|
+
# #829: `rs` added. Measured: `lizard --csv -C 5` on a .rs file emits a real
|
|
46
|
+
# CCN row, so the gap was never tool capability -- Rust was simply absent from a
|
|
47
|
+
# list that had to be edited by hand. Until then a Cargo project was classified
|
|
48
|
+
# as "no language" and every gate passed without checking.
|
|
49
|
+
XP_GATE_CCN_EXTS="${XP_GATE_JS_TS_EXTS}|py|go|java|swift|cpp|c|hpp|h|m|mm|kt|cs|dart|php|phtml|rs"
|
|
46
50
|
|
|
47
51
|
# What semgrep can parse (Gates 9 and 10). Powershell is here because semgrep
|
|
48
52
|
# has a p/... ruleset entry for it, unlike the CCN set above.
|
|
@@ -53,6 +53,11 @@ toolchain_path_candidates() {
|
|
|
53
53
|
# Unix-side pip --user and hand-placed tools.
|
|
54
54
|
[ -n "$_home" ] && [ -d "$_home/.local/bin" ] && printf '%s\n' "$_home/.local/bin"
|
|
55
55
|
[ -n "$_home" ] && [ -d "$_home/bin" ] && printf '%s\n' "$_home/bin"
|
|
56
|
+
# #829: cargo/rustup install into ~/.cargo/bin and add it to the login shell's
|
|
57
|
+
# PATH, which a non-login shell (the one the hook runs in) does not read. Same
|
|
58
|
+
# shape as the pip --user entries above: an installed Rust toolchain was
|
|
59
|
+
# reported as missing, and Gate 5 then blocked with "tool missing".
|
|
60
|
+
[ -n "$_home" ] && [ -d "$_home/.cargo/bin" ] && printf '%s\n' "$_home/.cargo/bin"
|
|
56
61
|
|
|
57
62
|
return 0
|
|
58
63
|
}
|
package/lib/language-registry.js
CHANGED
|
@@ -18,45 +18,49 @@
|
|
|
18
18
|
* `optional`
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* Build one tool entry, filling in the four shapes that repeat 30 times.
|
|
23
|
+
*
|
|
24
|
+
* The repetition is structural: every tool declares the same five keys, and ~26%
|
|
25
|
+
* of this file was that skeleton. A factory emits the SAME object shape --
|
|
26
|
+
* consumers read plain data -- while leaving the per-tool facts (name, command,
|
|
27
|
+
* gates, install) visible at the call site, which is what a reader compares.
|
|
28
|
+
*
|
|
29
|
+
* `install` is either one command for every platform or an explicit
|
|
30
|
+
* `{ darwin, linux, win32 }` map. The map form stays visible at the call site, so
|
|
31
|
+
* the platforms that genuinely differ still read as different.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} name tool name as resolved on PATH
|
|
34
|
+
* @param {string} checkCmd version probe
|
|
35
|
+
* @param {string[]} gates the gates that consume this tool
|
|
36
|
+
* @param {string|Record<string,string>} install command or per-platform map
|
|
37
|
+
* @param {boolean} [optional] defaults to false -- a tool the gates rely on
|
|
38
|
+
* @returns {{name:string, checkCmd:string, install:object, optional:boolean, gates:string[]}}
|
|
39
|
+
*/
|
|
40
|
+
function tool(name, checkCmd, gates, install, optional = false) {
|
|
41
|
+
const installMap = typeof install === 'string'
|
|
42
|
+
? { darwin: install, linux: install, win32: install }
|
|
43
|
+
: install;
|
|
44
|
+
return { name, checkCmd, install: installMap, optional, gates };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The rustup bootstrap, identical on every unix-like platform (#829).
|
|
49
|
+
*
|
|
50
|
+
* Hoisted rather than written twice: the same string in two entries is duplicated
|
|
51
|
+
* code that the two copies would then be edited independently.
|
|
52
|
+
*/
|
|
53
|
+
const RUSTUP_INSTALL_UNIX = 'curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh';
|
|
54
|
+
|
|
21
55
|
const LANGUAGE_REGISTRY = {
|
|
22
56
|
typescript: {
|
|
23
57
|
name: 'TypeScript/JavaScript',
|
|
24
58
|
extensions: ['ts', 'tsx', 'js', 'jsx', 'mjs'],
|
|
25
59
|
configFiles: ['package.json', 'tsconfig.json'],
|
|
26
60
|
tools: [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
install: {
|
|
31
|
-
darwin: 'npm install -g eslint',
|
|
32
|
-
linux: 'npm install -g eslint',
|
|
33
|
-
win32: 'npm install -g eslint',
|
|
34
|
-
},
|
|
35
|
-
optional: false,
|
|
36
|
-
gates: ['Gate 1 (Code Quality)'],
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: '@archlinter/cli',
|
|
40
|
-
checkCmd: 'npx --no-install archlint --version',
|
|
41
|
-
install: {
|
|
42
|
-
darwin: 'npm install --save-dev @archlinter/cli',
|
|
43
|
-
linux: 'npm install --save-dev @archlinter/cli',
|
|
44
|
-
win32: 'npm install --save-dev @archlinter/cli',
|
|
45
|
-
},
|
|
46
|
-
optional: true,
|
|
47
|
-
gates: ['Gate 4 (Architecture)'],
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: 'dependency-cruiser',
|
|
51
|
-
checkCmd: 'npx --no-install depcruise --version',
|
|
52
|
-
install: {
|
|
53
|
-
darwin: 'npm install --save-dev dependency-cruiser',
|
|
54
|
-
linux: 'npm install --save-dev dependency-cruiser',
|
|
55
|
-
win32: 'npm install --save-dev dependency-cruiser',
|
|
56
|
-
},
|
|
57
|
-
optional: true,
|
|
58
|
-
gates: ['Gate 4 (Architecture)'],
|
|
59
|
-
},
|
|
61
|
+
tool('eslint', 'eslint --version', ['Gate 1 (Code Quality)'], 'npm install -g eslint', false),
|
|
62
|
+
tool('@archlinter/cli', 'npx --no-install archlint --version', ['Gate 4 (Architecture)'], 'npm install --save-dev @archlinter/cli', true),
|
|
63
|
+
tool('dependency-cruiser', 'npx --no-install depcruise --version', ['Gate 4 (Architecture)'], 'npm install --save-dev dependency-cruiser', true),
|
|
60
64
|
],
|
|
61
65
|
},
|
|
62
66
|
|
|
@@ -65,17 +69,7 @@ const LANGUAGE_REGISTRY = {
|
|
|
65
69
|
extensions: ['py'],
|
|
66
70
|
configFiles: ['pyproject.toml', 'setup.py', 'requirements.txt', 'Pipfile'],
|
|
67
71
|
tools: [
|
|
68
|
-
|
|
69
|
-
name: 'mypy',
|
|
70
|
-
checkCmd: 'mypy --version',
|
|
71
|
-
install: {
|
|
72
|
-
darwin: 'pip install mypy',
|
|
73
|
-
linux: 'pip install mypy',
|
|
74
|
-
win32: 'pip install mypy',
|
|
75
|
-
},
|
|
76
|
-
optional: false,
|
|
77
|
-
gates: ['Gate 1 (Code Quality)'],
|
|
78
|
-
},
|
|
72
|
+
tool('mypy', 'mypy --version', ['Gate 1 (Code Quality)'], 'pip install mypy', false),
|
|
79
73
|
{
|
|
80
74
|
name: 'ruff',
|
|
81
75
|
checkCmd: 'ruff --version',
|
|
@@ -98,39 +92,9 @@ const LANGUAGE_REGISTRY = {
|
|
|
98
92
|
optional: true, // fallback if no ruff
|
|
99
93
|
gates: ['Gate 1 (Code Quality)'],
|
|
100
94
|
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
install: {
|
|
105
|
-
darwin: 'pip install pytest',
|
|
106
|
-
linux: 'pip install pytest',
|
|
107
|
-
win32: 'pip install pytest',
|
|
108
|
-
},
|
|
109
|
-
optional: false,
|
|
110
|
-
gates: ['Gate 5 (Tests + Coverage)'],
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
name: 'black',
|
|
114
|
-
checkCmd: 'black --version',
|
|
115
|
-
install: {
|
|
116
|
-
darwin: 'pip install black',
|
|
117
|
-
linux: 'pip install black',
|
|
118
|
-
win32: 'pip install black',
|
|
119
|
-
},
|
|
120
|
-
optional: true,
|
|
121
|
-
gates: ['Gate 1 (Code Formatting)'],
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
name: 'import-linter',
|
|
125
|
-
checkCmd: 'lint-imports --version',
|
|
126
|
-
install: {
|
|
127
|
-
darwin: 'pip install import-linter',
|
|
128
|
-
linux: 'pip install import-linter',
|
|
129
|
-
win32: 'pip install import-linter',
|
|
130
|
-
},
|
|
131
|
-
optional: true,
|
|
132
|
-
gates: ['Gate 4 (Architecture)'],
|
|
133
|
-
},
|
|
95
|
+
tool('pytest', 'pytest --version', ['Gate 5 (Tests + Coverage)'], 'pip install pytest', false),
|
|
96
|
+
tool('black', 'black --version', ['Gate 1 (Code Formatting)'], 'pip install black', true),
|
|
97
|
+
tool('import-linter', 'lint-imports --version', ['Gate 4 (Architecture)'], 'pip install import-linter', true),
|
|
134
98
|
],
|
|
135
99
|
},
|
|
136
100
|
|
|
@@ -161,28 +125,8 @@ const LANGUAGE_REGISTRY = {
|
|
|
161
125
|
optional: true, // only if Gradle project
|
|
162
126
|
gates: ['Gate 1 (Build)'],
|
|
163
127
|
},
|
|
164
|
-
{
|
|
165
|
-
|
|
166
|
-
checkCmd: 'checkstyle --version',
|
|
167
|
-
install: {
|
|
168
|
-
darwin: 'brew install checkstyle',
|
|
169
|
-
linux: 'apt-get install checkstyle',
|
|
170
|
-
win32: 'choco install checkstyle',
|
|
171
|
-
},
|
|
172
|
-
optional: true,
|
|
173
|
-
gates: ['Gate 1 (Code Quality)'],
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
name: 'pmd',
|
|
177
|
-
checkCmd: 'pmd --version',
|
|
178
|
-
install: {
|
|
179
|
-
darwin: 'brew install pmd',
|
|
180
|
-
linux: 'apt-get install pmd',
|
|
181
|
-
win32: 'choco install pmd',
|
|
182
|
-
},
|
|
183
|
-
optional: true,
|
|
184
|
-
gates: ['Gate 1 (Code Quality)'],
|
|
185
|
-
},
|
|
128
|
+
tool('checkstyle', 'checkstyle --version', ['Gate 1 (Code Quality)'], { darwin: 'brew install checkstyle', linux: 'apt-get install checkstyle', win32: 'choco install checkstyle' }, true),
|
|
129
|
+
tool('pmd', 'pmd --version', ['Gate 1 (Code Quality)'], { darwin: 'brew install pmd', linux: 'apt-get install pmd', win32: 'choco install pmd' }, true),
|
|
186
130
|
{
|
|
187
131
|
// A BUILD dependency, not a CLI: there is no `archunit` binary to probe,
|
|
188
132
|
// so checkCmd cannot work here. Detected by scanning the build files.
|
|
@@ -204,39 +148,9 @@ const LANGUAGE_REGISTRY = {
|
|
|
204
148
|
extensions: ['go'],
|
|
205
149
|
configFiles: ['go.mod', 'go.sum'],
|
|
206
150
|
tools: [
|
|
207
|
-
{
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
install: {
|
|
211
|
-
darwin: 'brew install go',
|
|
212
|
-
linux: 'apt-get install golang || yum install golang',
|
|
213
|
-
win32: 'winget install GoLang.Go',
|
|
214
|
-
},
|
|
215
|
-
optional: false,
|
|
216
|
-
gates: ['Gate 1 (Build + Quality)'],
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
name: 'golangci-lint',
|
|
220
|
-
checkCmd: 'golangci-lint --version',
|
|
221
|
-
install: {
|
|
222
|
-
darwin: 'brew install golangci-lint',
|
|
223
|
-
linux: 'go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest',
|
|
224
|
-
win32: 'go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest',
|
|
225
|
-
},
|
|
226
|
-
optional: true,
|
|
227
|
-
gates: ['Gate 1 (Code Quality)'],
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
name: 'arch-go',
|
|
231
|
-
checkCmd: 'arch-go --version',
|
|
232
|
-
install: {
|
|
233
|
-
darwin: 'go install github.com/fdaines/arch-go@latest',
|
|
234
|
-
linux: 'go install github.com/fdaines/arch-go@latest',
|
|
235
|
-
win32: 'go install github.com/fdaines/arch-go@latest',
|
|
236
|
-
},
|
|
237
|
-
optional: true,
|
|
238
|
-
gates: ['Gate 4 (Architecture)'],
|
|
239
|
-
},
|
|
151
|
+
tool('go', 'go version', ['Gate 1 (Build + Quality)'], { darwin: 'brew install go', linux: 'apt-get install golang || yum install golang', win32: 'winget install GoLang.Go' }, false),
|
|
152
|
+
tool('golangci-lint', 'golangci-lint --version', ['Gate 1 (Code Quality)'], { darwin: 'brew install golangci-lint', linux: 'go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest', win32: 'go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest' }, true),
|
|
153
|
+
tool('arch-go', 'arch-go --version', ['Gate 4 (Architecture)'], 'go install github.com/fdaines/arch-go@latest', true),
|
|
240
154
|
],
|
|
241
155
|
},
|
|
242
156
|
|
|
@@ -245,28 +159,8 @@ const LANGUAGE_REGISTRY = {
|
|
|
245
159
|
extensions: ['kt', 'kts'],
|
|
246
160
|
configFiles: ['build.gradle', 'build.gradle.kts', 'pom.xml'],
|
|
247
161
|
tools: [
|
|
248
|
-
{
|
|
249
|
-
|
|
250
|
-
checkCmd: 'gradle --version',
|
|
251
|
-
install: {
|
|
252
|
-
darwin: 'brew install gradle',
|
|
253
|
-
linux: 'apt-get install gradle',
|
|
254
|
-
win32: 'winget install Gradle.Gradle',
|
|
255
|
-
},
|
|
256
|
-
optional: true,
|
|
257
|
-
gates: ['Gate 1 (Build)'],
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
name: 'ktlint',
|
|
261
|
-
checkCmd: 'ktlint --version',
|
|
262
|
-
install: {
|
|
263
|
-
darwin: 'brew install ktlint',
|
|
264
|
-
linux: 'curl -sSLO https://github.com/pinterest/ktlint/releases/latest/download/ktlint && chmod +x ktlint',
|
|
265
|
-
win32: 'choco install ktlint',
|
|
266
|
-
},
|
|
267
|
-
optional: true,
|
|
268
|
-
gates: ['Gate 1 (Code Quality)'],
|
|
269
|
-
},
|
|
162
|
+
tool('gradle', 'gradle --version', ['Gate 1 (Build)'], { darwin: 'brew install gradle', linux: 'apt-get install gradle', win32: 'winget install Gradle.Gradle' }, true),
|
|
163
|
+
tool('ktlint', 'ktlint --version', ['Gate 1 (Code Quality)'], { darwin: 'brew install ktlint', linux: 'curl -sSLO https://github.com/pinterest/ktlint/releases/latest/download/ktlint && chmod +x ktlint', win32: 'choco install ktlint' }, true),
|
|
270
164
|
{
|
|
271
165
|
// Konsist is a build dependency too -- see the Java ArchUnit note above.
|
|
272
166
|
name: 'konsist',
|
|
@@ -325,28 +219,8 @@ const LANGUAGE_REGISTRY = {
|
|
|
325
219
|
extensions: ['swift'],
|
|
326
220
|
configFiles: ['Package.swift', 'project.xcodeproj', 'project.pbxproj'],
|
|
327
221
|
tools: [
|
|
328
|
-
{
|
|
329
|
-
|
|
330
|
-
checkCmd: 'swift --version',
|
|
331
|
-
install: {
|
|
332
|
-
darwin: 'xcode-select --install',
|
|
333
|
-
linux: 'See https://swift.org/download/',
|
|
334
|
-
win32: 'See https://swift.org/download/',
|
|
335
|
-
},
|
|
336
|
-
optional: false,
|
|
337
|
-
gates: ['Gate 1 (Build + Quality)'],
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
name: 'swiftlint',
|
|
341
|
-
checkCmd: 'swiftlint --version',
|
|
342
|
-
install: {
|
|
343
|
-
darwin: 'brew install swiftlint',
|
|
344
|
-
linux: 'See https://github.com/realm/SwiftLint',
|
|
345
|
-
win32: 'See https://github.com/realm/SwiftLint',
|
|
346
|
-
},
|
|
347
|
-
optional: true,
|
|
348
|
-
gates: ['Gate 1 (Code Quality)'],
|
|
349
|
-
},
|
|
222
|
+
tool('swift', 'swift --version', ['Gate 1 (Build + Quality)'], { darwin: 'xcode-select --install', linux: 'See https://swift.org/download/', win32: 'See https://swift.org/download/' }, false),
|
|
223
|
+
tool('swiftlint', 'swiftlint --version', ['Gate 1 (Code Quality)'], { darwin: 'brew install swiftlint', linux: 'See https://github.com/realm/SwiftLint', win32: 'See https://github.com/realm/SwiftLint' }, true),
|
|
350
224
|
],
|
|
351
225
|
},
|
|
352
226
|
|
|
@@ -371,17 +245,7 @@ const LANGUAGE_REGISTRY = {
|
|
|
371
245
|
extensions: ['m', 'mm'],
|
|
372
246
|
configFiles: ['Podfile', 'Package.swift', '*.xcodeproj', '*.pbxproj'],
|
|
373
247
|
tools: [
|
|
374
|
-
{
|
|
375
|
-
name: 'clang',
|
|
376
|
-
checkCmd: 'clang --version',
|
|
377
|
-
install: {
|
|
378
|
-
darwin: 'xcode-select --install',
|
|
379
|
-
linux: 'apt install clang',
|
|
380
|
-
win32: 'See https://clang.llvm.org/get_started.html',
|
|
381
|
-
},
|
|
382
|
-
optional: false,
|
|
383
|
-
gates: ['Gate 1 (Build + Quality)'],
|
|
384
|
-
},
|
|
248
|
+
tool('clang', 'clang --version', ['Gate 1 (Build + Quality)'], { darwin: 'xcode-select --install', linux: 'apt install clang', win32: 'See https://clang.llvm.org/get_started.html' }, false),
|
|
385
249
|
],
|
|
386
250
|
},
|
|
387
251
|
|
|
@@ -397,50 +261,10 @@ const LANGUAGE_REGISTRY = {
|
|
|
397
261
|
extensions: ['php', 'phtml'],
|
|
398
262
|
configFiles: ['composer.json', 'phpunit.xml', 'phpunit.xml.dist', 'phpstan.neon'],
|
|
399
263
|
tools: [
|
|
400
|
-
{
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
darwin: 'brew install php',
|
|
405
|
-
linux: 'sudo apt install php-cli composer',
|
|
406
|
-
win32: 'scoop install php composer',
|
|
407
|
-
},
|
|
408
|
-
optional: false,
|
|
409
|
-
gates: ['Gate 1 (Build + Quality)', 'Gate 5 (Coverage)'],
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
name: 'composer',
|
|
413
|
-
checkCmd: 'composer --version',
|
|
414
|
-
install: {
|
|
415
|
-
darwin: 'brew install composer',
|
|
416
|
-
linux: 'See https://getcomposer.org/download/',
|
|
417
|
-
win32: 'scoop install composer',
|
|
418
|
-
},
|
|
419
|
-
optional: false,
|
|
420
|
-
gates: ['Gate 1 (Build + Quality)'],
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
name: 'phpstan',
|
|
424
|
-
checkCmd: 'php vendor/bin/phpstan --version',
|
|
425
|
-
install: {
|
|
426
|
-
darwin: 'composer require --dev phpstan/phpstan',
|
|
427
|
-
linux: 'composer require --dev phpstan/phpstan',
|
|
428
|
-
win32: 'composer require --dev phpstan/phpstan',
|
|
429
|
-
},
|
|
430
|
-
optional: false,
|
|
431
|
-
gates: ['Gate 1 (Build + Quality)'],
|
|
432
|
-
},
|
|
433
|
-
{
|
|
434
|
-
name: 'phpcs',
|
|
435
|
-
checkCmd: 'php vendor/bin/phpcs --version',
|
|
436
|
-
install: {
|
|
437
|
-
darwin: 'composer require --dev squizlabs/php_codesniffer',
|
|
438
|
-
linux: 'composer require --dev squizlabs/php_codesniffer',
|
|
439
|
-
win32: 'composer require --dev squizlabs/php_codesniffer',
|
|
440
|
-
},
|
|
441
|
-
optional: false,
|
|
442
|
-
gates: ['Gate 1 (Build + Quality)'],
|
|
443
|
-
},
|
|
264
|
+
tool('php', 'php --version', ['Gate 1 (Build + Quality)', 'Gate 5 (Coverage)'], { darwin: 'brew install php', linux: 'sudo apt install php-cli composer', win32: 'scoop install php composer' }, false),
|
|
265
|
+
tool('composer', 'composer --version', ['Gate 1 (Build + Quality)'], { darwin: 'brew install composer', linux: 'See https://getcomposer.org/download/', win32: 'scoop install composer' }, false),
|
|
266
|
+
tool('phpstan', 'php vendor/bin/phpstan --version', ['Gate 1 (Build + Quality)'], 'composer require --dev phpstan/phpstan', false),
|
|
267
|
+
tool('phpcs', 'php vendor/bin/phpcs --version', ['Gate 1 (Build + Quality)'], 'composer require --dev squizlabs/php_codesniffer', false),
|
|
444
268
|
{
|
|
445
269
|
name: 'pcov',
|
|
446
270
|
checkCmd: 'php -r "exit(extension_loaded(\'pcov\')?0:1);"',
|
|
@@ -462,17 +286,24 @@ const LANGUAGE_REGISTRY = {
|
|
|
462
286
|
extensions: ['dart'],
|
|
463
287
|
configFiles: ['pubspec.yaml'],
|
|
464
288
|
tools: [
|
|
465
|
-
{
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
289
|
+
tool('dart', 'dart --version', ['Gate 1 (Build + Quality)'], { darwin: 'brew tap dart-lang/dart && brew install dart', linux: 'See https://dart.dev/get-dart', win32: 'winget install Dart-Dart.dart' }, false),
|
|
290
|
+
],
|
|
291
|
+
},
|
|
292
|
+
|
|
293
|
+
rust: {
|
|
294
|
+
name: 'Rust',
|
|
295
|
+
extensions: ['rs'],
|
|
296
|
+
// Cargo.toml, not the extension: one .rs file is not a Rust project, and an
|
|
297
|
+
// extension match would classify generated Rust inside another ecosystem's
|
|
298
|
+
// tree as a project of its own -- the argument #468 made for IaC.
|
|
299
|
+
configFiles: ['Cargo.toml'],
|
|
300
|
+
tools: [
|
|
301
|
+
tool('cargo', 'cargo --version', ['Gate 1 (Code Quality)', 'Gate 5 (Tests + Coverage)'],
|
|
302
|
+
{ darwin: RUSTUP_INSTALL_UNIX, linux: RUSTUP_INSTALL_UNIX, win32: 'winget install Rustlang.Rustup' }, false),
|
|
303
|
+
// Optional at the TOOL level, but Gate 5 blocks when it is absent: the Rust
|
|
304
|
+
// adapter returns 2 rather than reporting "no tests". Declaring it here lets
|
|
305
|
+
// `doctor` and `install-tools` name the gap before a commit discovers it.
|
|
306
|
+
tool('cargo-llvm-cov', 'cargo llvm-cov --version', ['Gate 5 (Coverage)'], 'cargo install cargo-llvm-cov', true),
|
|
476
307
|
],
|
|
477
308
|
},
|
|
478
309
|
|
|
@@ -481,17 +312,7 @@ const LANGUAGE_REGISTRY = {
|
|
|
481
312
|
extensions: ['dart'],
|
|
482
313
|
configFiles: ['pubspec.yaml'],
|
|
483
314
|
tools: [
|
|
484
|
-
{
|
|
485
|
-
name: 'flutter',
|
|
486
|
-
checkCmd: 'flutter --version',
|
|
487
|
-
install: {
|
|
488
|
-
darwin: 'brew install --cask flutter',
|
|
489
|
-
linux: 'See https://flutter.dev/docs/get-started/install',
|
|
490
|
-
win32: 'winget install Flutter.Flutter',
|
|
491
|
-
},
|
|
492
|
-
optional: false,
|
|
493
|
-
gates: ['Gate 1 (Build + Quality)'],
|
|
494
|
-
},
|
|
315
|
+
tool('flutter', 'flutter --version', ['Gate 1 (Build + Quality)'], { darwin: 'brew install --cask flutter', linux: 'See https://flutter.dev/docs/get-started/install', win32: 'winget install Flutter.Flutter' }, false),
|
|
495
316
|
],
|
|
496
317
|
},
|
|
497
318
|
|
|
@@ -500,28 +321,8 @@ const LANGUAGE_REGISTRY = {
|
|
|
500
321
|
extensions: ['cpp', 'cxx', 'cc', 'c', 'hpp', 'h'],
|
|
501
322
|
configFiles: ['CMakeLists.txt', 'Makefile', 'conanfile.txt', 'vcpkg.json'],
|
|
502
323
|
tools: [
|
|
503
|
-
{
|
|
504
|
-
|
|
505
|
-
checkCmd: 'cmake --version',
|
|
506
|
-
install: {
|
|
507
|
-
darwin: 'brew install cmake',
|
|
508
|
-
linux: 'apt-get install cmake || yum install cmake',
|
|
509
|
-
win32: 'winget install Kitware.CMake',
|
|
510
|
-
},
|
|
511
|
-
optional: true,
|
|
512
|
-
gates: ['Gate 1 (Build)'],
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
name: 'clang-tidy',
|
|
516
|
-
checkCmd: 'clang-tidy --version',
|
|
517
|
-
install: {
|
|
518
|
-
darwin: 'brew install llvm',
|
|
519
|
-
linux: 'apt-get install clang-tidy',
|
|
520
|
-
win32: 'See LLVM installer',
|
|
521
|
-
},
|
|
522
|
-
optional: true,
|
|
523
|
-
gates: ['Gate 1 (Code Quality)'],
|
|
524
|
-
},
|
|
324
|
+
tool('cmake', 'cmake --version', ['Gate 1 (Build)'], { darwin: 'brew install cmake', linux: 'apt-get install cmake || yum install cmake', win32: 'winget install Kitware.CMake' }, true),
|
|
325
|
+
tool('clang-tidy', 'clang-tidy --version', ['Gate 1 (Code Quality)'], { darwin: 'brew install llvm', linux: 'apt-get install clang-tidy', win32: 'See LLVM installer' }, true),
|
|
525
326
|
],
|
|
526
327
|
},
|
|
527
328
|
|
|
@@ -530,17 +331,7 @@ const LANGUAGE_REGISTRY = {
|
|
|
530
331
|
extensions: ['sh', 'bash'],
|
|
531
332
|
configFiles: [],
|
|
532
333
|
tools: [
|
|
533
|
-
{
|
|
534
|
-
name: 'shellcheck',
|
|
535
|
-
checkCmd: 'shellcheck --version',
|
|
536
|
-
install: {
|
|
537
|
-
darwin: 'brew install shellcheck',
|
|
538
|
-
linux: 'apt-get install shellcheck || yum install shellcheck',
|
|
539
|
-
win32: 'winget install ShellCheck.ShellCheck',
|
|
540
|
-
},
|
|
541
|
-
optional: true,
|
|
542
|
-
gates: ['Gate 1 (Code Quality)'],
|
|
543
|
-
},
|
|
334
|
+
tool('shellcheck', 'shellcheck --version', ['Gate 1 (Code Quality)'], { darwin: 'brew install shellcheck', linux: 'apt-get install shellcheck || yum install shellcheck', win32: 'winget install ShellCheck.ShellCheck' }, true),
|
|
544
335
|
],
|
|
545
336
|
},
|
|
546
337
|
|
|
@@ -549,28 +340,8 @@ const LANGUAGE_REGISTRY = {
|
|
|
549
340
|
extensions: ['ps1', 'psm1', 'psd1'],
|
|
550
341
|
configFiles: [],
|
|
551
342
|
tools: [
|
|
552
|
-
{
|
|
553
|
-
|
|
554
|
-
checkCmd: 'pwsh --version',
|
|
555
|
-
install: {
|
|
556
|
-
darwin: 'brew install --cask powershell',
|
|
557
|
-
linux: 'apt-get install powershell || yum install powershell',
|
|
558
|
-
win32: 'winget install Microsoft.PowerShell',
|
|
559
|
-
},
|
|
560
|
-
optional: false,
|
|
561
|
-
gates: ['Gate 1 (Build + Quality)'],
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
name: 'psscriptanalyzer',
|
|
565
|
-
checkCmd: 'pwsh -Command "Get-Module -List PSScriptAnalyzer"',
|
|
566
|
-
install: {
|
|
567
|
-
darwin: 'pwsh -Command "Install-Module -Name PSScriptAnalyzer -Force"',
|
|
568
|
-
linux: 'pwsh -Command "Install-Module -Name PSScriptAnalyzer -Force"',
|
|
569
|
-
win32: 'pwsh -Command "Install-Module -Name PSScriptAnalyzer -Force"',
|
|
570
|
-
},
|
|
571
|
-
optional: true,
|
|
572
|
-
gates: ['Gate 1 (Code Quality)'],
|
|
573
|
-
},
|
|
343
|
+
tool('pwsh', 'pwsh --version', ['Gate 1 (Build + Quality)'], { darwin: 'brew install --cask powershell', linux: 'apt-get install powershell || yum install powershell', win32: 'winget install Microsoft.PowerShell' }, false),
|
|
344
|
+
tool('psscriptanalyzer', 'pwsh -Command "Get-Module -List PSScriptAnalyzer"', ['Gate 1 (Code Quality)'], 'pwsh -Command "Install-Module -Name PSScriptAnalyzer -Force"', true),
|
|
574
345
|
],
|
|
575
346
|
},
|
|
576
347
|
|
|
@@ -579,28 +350,8 @@ const LANGUAGE_REGISTRY = {
|
|
|
579
350
|
extensions: ['tf', 'tfvars', 'yaml', 'yml'],
|
|
580
351
|
configFiles: ['*.tf', 'docker-compose*.yaml', 'k8s/*.yaml'],
|
|
581
352
|
tools: [
|
|
582
|
-
{
|
|
583
|
-
|
|
584
|
-
checkCmd: 'terraform --version',
|
|
585
|
-
install: {
|
|
586
|
-
darwin: 'brew install terraform',
|
|
587
|
-
linux: 'See https://developer.hashicorp.com/terraform/downloads',
|
|
588
|
-
win32: 'winget install Hashicorp.Terraform',
|
|
589
|
-
},
|
|
590
|
-
optional: true,
|
|
591
|
-
gates: ['Gate 7 (IaC Security)'],
|
|
592
|
-
},
|
|
593
|
-
{
|
|
594
|
-
name: 'tflint',
|
|
595
|
-
checkCmd: 'tflint --version',
|
|
596
|
-
install: {
|
|
597
|
-
darwin: 'brew install tflint',
|
|
598
|
-
linux: 'See https://github.com/terraform-linters/tflint',
|
|
599
|
-
win32: 'See https://github.com/terraform-linters/tflint',
|
|
600
|
-
},
|
|
601
|
-
optional: true,
|
|
602
|
-
gates: ['Gate 7 (IaC Security)'],
|
|
603
|
-
},
|
|
353
|
+
tool('terraform', 'terraform --version', ['Gate 7 (IaC Security)'], { darwin: 'brew install terraform', linux: 'See https://developer.hashicorp.com/terraform/downloads', win32: 'winget install Hashicorp.Terraform' }, true),
|
|
354
|
+
tool('tflint', 'tflint --version', ['Gate 7 (IaC Security)'], { darwin: 'brew install tflint', linux: 'See https://github.com/terraform-linters/tflint', win32: 'See https://github.com/terraform-linters/tflint' }, true),
|
|
604
355
|
],
|
|
605
356
|
},
|
|
606
357
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boyingliu01/xp-gate",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.60",
|
|
4
4
|
"description": "Deterministic quality gates for AI-generated code: 15 gates, Delphi review, sprint flow. Works with Claude Code, OpenCode, Qoder.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"xp-gate": "bin/xp-gate.js"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xp-gate",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.60",
|
|
4
4
|
"displayName": "XP-Gate",
|
|
5
5
|
"description": "Extreme Programming quality gates + AI workflow skills for Claude Code. Includes 12 pre-commit gates (Gate 0-11), 8 pre-push gates, Sprint Flow (6 phases), and Delphi multi-expert review (>=90% consensus).",
|
|
6
6
|
"author": {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
**6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration; each REQ starts from a clean context instead of accumulating one across REQs). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
package/plugins/dsh/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boyingliu01/dsh-plugin-xp-gate",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.60",
|
|
4
4
|
"description": "XP-Gate deterministic quality gates + AI workflow skills as a DeepSeek Harness (DSH) native plugin: gate-check / gate-principles / gate-arch tools + 12 SKILL.md skills",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
**6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration; each REQ starts from a clean context instead of accumulating one across REQs). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
**6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration; each REQ starts from a clean context instead of accumulating one across REQs). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xp-gate",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.60",
|
|
4
4
|
"displayName": "XP-Gate",
|
|
5
5
|
"description": "Extreme Programming quality gates + AI workflow skills for Qoder. Includes 12 pre-commit gates (Gate 0-11), 8 pre-push gates, Sprint Flow (6 phases), and Delphi multi-expert review (>=90% consensus).",
|
|
6
6
|
"author": {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
**6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration; each REQ starts from a clean context instead of accumulating one across REQs). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Delphi Consensus Review — multi-round anonymous expert review (≥90% threshold, exactly 3 experts with distinct executable model IDs). Supports design, requirements, and code-walkthrough modes.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
**6-phase** development pipeline (v2.0 compact redesign, Issue #290): PREP → DESIGN → BUILD → VERIFY → SHIP → CLOSE. Phase 3/6 BUILD default build mode is **ralph-loop** (REQ-level iteration; each REQ starts from a clean context instead of accumulating one across REQs). HARD-GATE between DESIGN (2/6) and BUILD (3/6): design must pass Delphi review (≥90% consensus) before any coding.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Generated:** 2026-11-04
|
|
4
4
|
**Commit:** eb2097b0
|
|
5
5
|
**Branch:** sprint/2026-11-03-02
|
|
6
|
-
**Version:** 0.41.
|
|
6
|
+
**Version:** 0.41.60.0
|
|
7
7
|
|
|
8
8
|
## OVERVIEW
|
|
9
9
|
Test-Specification Alignment Engine — two-stage validation ensuring tests accurately reflect requirements and design specs.
|