@boyingliu01/xp-gate 0.38.126 → 0.39.1
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/README.md +93 -0
- package/adapters/gate-3.sh +13 -2
- package/adapters/python.sh +36 -38
- package/bin/xp-gate.js +11 -0
- package/build-integrity/gate-10-lines.ts +98 -0
- package/build-integrity/gate-10.ts +98 -109
- package/build-integrity/quote-masker.ts +17 -3
- package/gate-3.sh +13 -2
- package/gates/common-process.ts +116 -34
- package/gates/common.ts +51 -15
- package/gates/gate-3.ts +166 -61
- package/gates/gate-8.ts +76 -24
- package/gates/gate-9.ts +276 -82
- package/gates/pbt-detect.ts +70 -39
- package/gates/python-health.ts +236 -98
- package/gates/test-layers.ts +103 -30
- package/hooks/gate-3.sh +13 -2
- package/hooks/gate-entries/gate-1-entry.sh +10 -1
- package/hooks/gate-entries/gate-5-entry.sh +5 -1
- package/hooks/lib/validate-code-walkthrough.cjs +324 -99
- package/hooks/pre-commit +52 -0
- package/hooks/pre-push +54 -3
- package/lib/agent-runtime-journal.js +104 -37
- package/lib/arch.js +6 -0
- package/lib/baseline.js +329 -201
- package/lib/check.js +38 -2
- package/lib/doctor-constants.js +43 -0
- package/lib/doctor.js +2008 -1001
- package/lib/flaky.js +178 -79
- package/lib/gate-runner.js +110 -63
- package/lib/init.js +6 -0
- package/lib/language-capability-surfaces.js +5 -2
- package/lib/language-registry.js +608 -0
- package/lib/language-tools.js +487 -1018
- package/lib/phase-transition.js +646 -446
- package/lib/prepush-evidence.js +174 -0
- package/lib/sprint-audit.js +52 -22
- package/lib/sprint-discovery.js +66 -35
- package/lib/sprint-format.js +114 -0
- package/lib/sprint-init.js +372 -118
- package/lib/sprint-status.js +134 -90
- package/lib/star-notice.js +346 -0
- package/lib/tool-display.js +52 -0
- package/lib/tool-install.js +179 -0
- package/lib/uninstall.js +331 -188
- package/mock-policy/gate-m3.ts +74 -23
- package/mock-policy/mock-decision-engine.ts +21 -7
- package/mock-policy/scope-scanner.ts +128 -69
- package/mutation/detect-ai-test.ts +20 -12
- package/mutation/gate-m.ts +6 -2
- package/mutation/init-baseline.ts +49 -13
- package/mutation/runners/go-mutant-runner.ts +7 -49
- package/mutation/runners/gremlins-runner.ts +53 -18
- package/mutation/runners/mutmut-runner.ts +455 -163
- package/mutation/runners/pitest-runner.ts +85 -131
- package/mutation/runners/spawn-with-capture.ts +304 -0
- package/mutation/runners/stryker-runner.ts +14 -55
- package/mutation/update-baseline.ts +25 -18
- package/package.json +20 -8
- package/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/bin/delphi-review-guard.sh +12 -61
- package/plugins/claude-code/skills/delphi-review/.delphi-config.json.example +6 -11
- 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/scripts/prepack.cjs +43 -18
- package/plugins/dsh/scripts/verify-skill-provider.mjs +39 -14
- package/plugins/dsh/skills/delphi-review/.delphi-config.json.example +6 -11
- 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/index.ts +337 -123
- package/plugins/opencode/package.json +1 -1
- package/plugins/opencode/scripts/prepack.cjs +41 -16
- package/plugins/opencode/skills/delphi-review/.delphi-config.json.example +6 -11
- 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/bin/sprint-flow-guard.sh +12 -60
- package/plugins/qoder/plugin.json +1 -1
- package/plugins/qoder/skills/delphi-review/.delphi-config.json.example +6 -11
- 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/plugins/shared/README.md +3 -0
- package/plugins/shared/bin/delphi-review-guard.sh +68 -0
- package/principles/adapters/control-nesting.ts +481 -168
- package/principles/adapters/cpp.ts +61 -22
- package/principles/adapters/csharp.ts +183 -66
- package/principles/adapters/dart.ts +11 -1
- package/principles/adapters/duplication.ts +49 -16
- package/principles/adapters/import-clause.ts +62 -15
- package/principles/adapters/java.ts +199 -70
- package/principles/adapters/line-comment.ts +18 -0
- package/principles/adapters/member-scan.ts +50 -8
- package/principles/adapters/php.ts +232 -103
- package/principles/adapters/python.ts +25 -18
- package/principles/adapters/quote-state.ts +21 -8
- package/principles/adapters/typescript-mask.ts +276 -0
- package/principles/adapters/typescript.ts +206 -200
- package/principles/analyzer.ts +16 -6
- package/principles/baseline-prune.ts +18 -8
- package/principles/baseline.ts +28 -11
- package/principles/boy-scout-usage.ts +26 -0
- package/principles/boy-scout.ts +261 -180
- package/principles/config.ts +183 -57
- package/principles/direct-execution.ts +24 -12
- package/principles/lint-baseline.ts +235 -122
- package/principles/rules/arch/dependency.ts +34 -25
- package/principles/rules/arch/shared.ts +24 -20
- package/principles/rules/clean-code/deep-nesting.ts +23 -13
- package/principles/rules/clean-code/god-class.ts +67 -41
- package/principles/rules/clean-code/large-file.ts +30 -23
- package/principles/rules/clean-code/long-function.ts +51 -37
- package/principles/rules/clean-code/magic-numbers.ts +51 -36
- package/principles/rules/clean-code/many-exports.ts +46 -29
- package/principles/rules/clean-code/missing-error-handling.ts +38 -20
- package/principles/rules/clean-code/too-many-params.ts +41 -22
- package/principles/rules/function-source.ts +62 -0
- package/principles/rules/solid/dip.ts +10 -6
- package/principles/rules/solid/isp.ts +64 -24
- package/principles/rules/solid/lsp.ts +66 -18
- package/principles/rules/solid/ocp.ts +29 -13
- package/principles/rules/solid/srp.ts +34 -18
- package/principles/warnings-count.ts +43 -0
- package/scripts/__tests__/prepush-source-classification.test.js +129 -0
- package/scripts/delphi-config-read.cjs +245 -0
- package/scripts/delphi-external-review.cjs +410 -585
- package/scripts/delphi-json-extract.cjs +108 -0
- package/scripts/delphi-model-validation.cjs +297 -0
- package/scripts/delphi-prompts.cjs +55 -0
- package/scripts/delphi-repo-tools.cjs +273 -0
- package/scripts/delphi-seat-calibration.cjs +204 -0
- package/scripts/run-bats-ci.cjs +240 -97
- package/scripts/sync-package-content.js +18 -2
- package/skills/delphi-review/.delphi-config.json.example +6 -11
- 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/lib/__tests__/agent-runtime-journal.test.js +0 -326
- package/lib/__tests__/arch-config-template.test.js +0 -190
- package/lib/__tests__/arch.test.js +0 -430
- package/lib/__tests__/assertion-debt.test.js +0 -99
- package/lib/__tests__/audit-cli-contract.test.ts +0 -117
- package/lib/__tests__/audit-log.test.ts +0 -107
- package/lib/__tests__/audit-skip-reasons.test.ts +0 -143
- package/lib/__tests__/baseline-completeness.test.js +0 -264
- package/lib/__tests__/baseline-shell-scope.test.js +0 -60
- package/lib/__tests__/baseline-unevaluated.test.js +0 -142
- package/lib/__tests__/baseline.test.js +0 -212
- package/lib/__tests__/bootstrap.test.js +0 -60
- package/lib/__tests__/check-alignment-cli.test.mjs +0 -94
- package/lib/__tests__/check-alignment-reasons.test.mjs +0 -101
- package/lib/__tests__/check-all-skip-accounting.test.js +0 -171
- package/lib/__tests__/check-changed-brief.test.js +0 -63
- package/lib/__tests__/check-normalize-exit.test.js +0 -24
- package/lib/__tests__/check-single-file.test.js +0 -114
- package/lib/__tests__/check-tools-list.test.js +0 -155
- package/lib/__tests__/check-version.test.js +0 -463
- package/lib/__tests__/coverage-scope.test.js +0 -140
- package/lib/__tests__/coverage-threshold.test.js +0 -80
- package/lib/__tests__/crap-cli.test.js +0 -87
- package/lib/__tests__/crap.test.js +0 -494
- package/lib/__tests__/debt-classify.test.js +0 -78
- package/lib/__tests__/delphi-channel-doctor.test.js +0 -116
- package/lib/__tests__/delphi-channel-uninstall.test.js +0 -128
- package/lib/__tests__/delphi-channel.test.js +0 -109
- package/lib/__tests__/delphi-setup.test.js +0 -203
- package/lib/__tests__/deploy-manifest-check-wired.test.js +0 -138
- package/lib/__tests__/deploy-manifest-completeness.test.js +0 -151
- package/lib/__tests__/deploy-manifest-consumers-adapter-uninstall.test.js +0 -40
- package/lib/__tests__/deploy-manifest-consumers-no-private-lists.test.js +0 -74
- package/lib/__tests__/deploy-manifest-projection.test.js +0 -66
- package/lib/__tests__/deploy-manifest-shell-parity.test.js +0 -108
- package/lib/__tests__/deploy-manifest.test.js +0 -97
- package/lib/__tests__/detect-deps-dsh-profile.test.js +0 -323
- package/lib/__tests__/detect-deps-gate-identity.test.js +0 -135
- package/lib/__tests__/detect-deps.test.js +0 -655
- package/lib/__tests__/doctor-469-hook-env.test.js +0 -211
- package/lib/__tests__/doctor-arch-tools.test.js +0 -169
- package/lib/__tests__/doctor-audit-ledger.test.js +0 -61
- package/lib/__tests__/doctor-brief.test.js +0 -59
- package/lib/__tests__/doctor-delphi.test.js +0 -628
- package/lib/__tests__/doctor-drift-direction.test.js +0 -104
- package/lib/__tests__/doctor-drift-round2.test.js +0 -215
- package/lib/__tests__/doctor-exec-retry.test.js +0 -162
- package/lib/__tests__/doctor-executed-surface.test.js +0 -230
- package/lib/__tests__/doctor-helpers.test.js +0 -139
- package/lib/__tests__/doctor-hook-drift.test.js +0 -329
- package/lib/__tests__/doctor-hook-signatures.test.js +0 -65
- package/lib/__tests__/doctor-machine-mutation.test.js +0 -116
- package/lib/__tests__/doctor-module-drift.test.js +0 -212
- package/lib/__tests__/doctor-module-resolution-parity.test.js +0 -463
- package/lib/__tests__/doctor-path-equivalence.test.js +0 -70
- package/lib/__tests__/doctor-repair-boundary.test.js +0 -52
- package/lib/__tests__/doctor-signature-stability.test.js +0 -55
- package/lib/__tests__/doctor-spawn-capability.test.js +0 -116
- package/lib/__tests__/doctor-timeout-partial.test.js +0 -79
- package/lib/__tests__/doctor-tool-delegation.test.js +0 -156
- package/lib/__tests__/doctor-tui-skill-freshness.test.js +0 -385
- package/lib/__tests__/doctor.test.js +0 -1320
- package/lib/__tests__/find-bash-wsl.test.js +0 -121
- package/lib/__tests__/flaky.test.js +0 -128
- package/lib/__tests__/foreign-hooks-global.test.js +0 -125
- package/lib/__tests__/gate-audit-skip.test.ts +0 -81
- package/lib/__tests__/gate-audit.test.ts +0 -440
- package/lib/__tests__/gate-coverage-hook-floor.test.js +0 -94
- package/lib/__tests__/gate-coverage.test.js +0 -204
- package/lib/__tests__/gate-entry-provenance.test.js +0 -71
- package/lib/__tests__/gate-numbering.test.js +0 -79
- package/lib/__tests__/gate-rules.test.js +0 -58
- package/lib/__tests__/gate-runner-tsx-invocation.test.js +0 -149
- package/lib/__tests__/gate-runner-verdict.test.js +0 -105
- package/lib/__tests__/gate-runner.test.js +0 -371
- package/lib/__tests__/gate2-verdict.test.js +0 -183
- package/lib/__tests__/helpers/lib-sandbox.cjs +0 -55
- package/lib/__tests__/hook-health-path.test.js +0 -109
- package/lib/__tests__/hook-health.test.js +0 -85
- package/lib/__tests__/init-gitignore.test.js +0 -204
- package/lib/__tests__/init-gitleaks-notice.test.js +0 -57
- package/lib/__tests__/init.test.js +0 -530
- package/lib/__tests__/install-cmd.test.js +0 -6
- package/lib/__tests__/install-sh-deploy-manifest.test.js +0 -80
- package/lib/__tests__/install-skill-full-dir.test.js +0 -194
- package/lib/__tests__/install-skill.test.js +0 -416
- package/lib/__tests__/install-tools-repair.test.js +0 -263
- package/lib/__tests__/issue-519-phase-transition-guard.test.js +0 -233
- package/lib/__tests__/issue-566-sync-hooks-backup.test.js +0 -228
- package/lib/__tests__/issue-583-hook-deploy-log.test.js +0 -121
- package/lib/__tests__/issue-586-principles-cmdline.test.js +0 -218
- package/lib/__tests__/issue-589-check-all-gate3.test.js +0 -190
- package/lib/__tests__/issue-590-archlint-vacuous-pass.test.js +0 -138
- package/lib/__tests__/issue-618-gate-not-run.test.js +0 -100
- package/lib/__tests__/jscpd-entry-resolution.test.js +0 -143
- package/lib/__tests__/language-capability.test.js +0 -318
- package/lib/__tests__/language-tools-build-file-install.test.js +0 -82
- package/lib/__tests__/language-tools-detect.test.js +0 -301
- package/lib/__tests__/migrate.test.js +0 -232
- package/lib/__tests__/mirror-manifest.test.js +0 -64
- package/lib/__tests__/mirror-sync.test.js +0 -803
- package/lib/__tests__/next-sprint.test.js +0 -231
- package/lib/__tests__/npm-package.test.js +0 -140
- package/lib/__tests__/phase-transition.test.js +0 -1136
- package/lib/__tests__/principles-csharp-coverage.test.js +0 -227
- package/lib/__tests__/principles-directory.test.js +0 -87
- package/lib/__tests__/qoder-delphi-agents.test.js +0 -316
- package/lib/__tests__/retro-gate-m.test.js +0 -144
- package/lib/__tests__/retro.test.js +0 -131
- package/lib/__tests__/rework.test.js +0 -127
- package/lib/__tests__/rollback.test.js +0 -183
- package/lib/__tests__/runtime-journal.test.js +0 -164
- package/lib/__tests__/sastd-client.test.js +0 -514
- package/lib/__tests__/shared-paths-lazy-home.test.js +0 -67
- package/lib/__tests__/shared-paths.test.js +0 -130
- package/lib/__tests__/shared-utils-copyHooks-manifest.test.js +0 -69
- package/lib/__tests__/shared-utils.test.js +0 -180
- package/lib/__tests__/skill-flags.test.js +0 -48
- package/lib/__tests__/slo.test.js +0 -89
- package/lib/__tests__/sprint-audit.test.js +0 -207
- package/lib/__tests__/sprint-discovery.test.ts +0 -366
- package/lib/__tests__/sprint-state-manager.test.js +0 -310
- package/lib/__tests__/sprint-status-rework-704.test.js +0 -149
- package/lib/__tests__/sprint-status-rework.test.js +0 -329
- package/lib/__tests__/sprint-status.test.js +0 -193
- package/lib/__tests__/sprint-status.test.ts +0 -213
- package/lib/__tests__/test-alignment-java-702.test.ts +0 -177
- package/lib/__tests__/test-alignment-range-guard.test.ts +0 -82
- package/lib/__tests__/test-alignment.test.ts +0 -853
- package/lib/__tests__/tool-audit-collect.test.js +0 -184
- package/lib/__tests__/tool-audit-fixtures.js +0 -87
- package/lib/__tests__/tool-audit-latest.test.js +0 -84
- package/lib/__tests__/tool-audit.test.js +0 -428
- package/lib/__tests__/tsconfig.json +0 -8
- package/lib/__tests__/tsx-resolution.test.js +0 -89
- package/lib/__tests__/ui-detector.test.ts +0 -459
- package/lib/__tests__/ui-review.test.ts +0 -132
- package/lib/__tests__/uninstall-global-residue.test.js +0 -545
- package/lib/__tests__/uninstall-skill.test.js +0 -189
- package/lib/__tests__/uninstall.test.js +0 -717
- package/lib/__tests__/update-hooks.test.js +0 -737
- package/lib/__tests__/update-skill-flags.test.js +0 -78
- package/lib/__tests__/update-skill.test.js +0 -644
- package/lib/__tests__/upgrade-exec.test.js +0 -273
- package/lib/__tests__/upgrade-skill-sync.test.js +0 -65
- package/lib/__tests__/upgrade.test.js +0 -78
- package/lib/__tests__/windows-bash-probe.test.js +0 -123
- package/lib/check-alignment-runner.cjs +0 -97
- package/lib/coverage-total.sh +0 -92
- package/lib/layer-baseline.cjs +0 -94
- package/lib/mattpocock-license-verdict.json +0 -7
|
@@ -0,0 +1,608 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* The language registry: which languages xp-gate knows, and how to recognise and
|
|
4
|
+
* check each one.
|
|
5
|
+
*
|
|
6
|
+
* Data only -- no filesystem access, no functions. It moved out of
|
|
7
|
+
* `language-tools.js` so that file fits its line ceiling; the shape is unchanged, so
|
|
8
|
+
* this is a move rather than a redesign.
|
|
9
|
+
*
|
|
10
|
+
* Each entry declares:
|
|
11
|
+
* name display name
|
|
12
|
+
* configFiles manifests that PROVE the language is present (glob `*` allowed)
|
|
13
|
+
* extensions file extensions, consulted ONLY when configFiles is empty --
|
|
14
|
+
* extension lists are broad (IaC lists yaml), so matching on them for
|
|
15
|
+
* a config-driven language would make every CI YAML an
|
|
16
|
+
* Infrastructure-as-Code project (#468)
|
|
17
|
+
* tools checkers, each with `gates`, an `install` map per platform, and
|
|
18
|
+
* `optional`
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
const LANGUAGE_REGISTRY = {
|
|
22
|
+
typescript: {
|
|
23
|
+
name: 'TypeScript/JavaScript',
|
|
24
|
+
extensions: ['ts', 'tsx', 'js', 'jsx', 'mjs'],
|
|
25
|
+
configFiles: ['package.json', 'tsconfig.json'],
|
|
26
|
+
tools: [
|
|
27
|
+
{
|
|
28
|
+
name: 'eslint',
|
|
29
|
+
checkCmd: 'eslint --version',
|
|
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
|
+
},
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
python: {
|
|
64
|
+
name: 'Python',
|
|
65
|
+
extensions: ['py'],
|
|
66
|
+
configFiles: ['pyproject.toml', 'setup.py', 'requirements.txt', 'Pipfile'],
|
|
67
|
+
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
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'ruff',
|
|
81
|
+
checkCmd: 'ruff --version',
|
|
82
|
+
install: {
|
|
83
|
+
darwin: 'pip install ruff',
|
|
84
|
+
linux: 'pip install ruff',
|
|
85
|
+
win32: 'pip install ruff',
|
|
86
|
+
},
|
|
87
|
+
optional: true, // fallback to flake8
|
|
88
|
+
gates: ['Gate 1 (Code Quality)'],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'flake8',
|
|
92
|
+
checkCmd: 'flake8 --version',
|
|
93
|
+
install: {
|
|
94
|
+
darwin: 'pip install flake8',
|
|
95
|
+
linux: 'pip install flake8',
|
|
96
|
+
win32: 'pip install flake8',
|
|
97
|
+
},
|
|
98
|
+
optional: true, // fallback if no ruff
|
|
99
|
+
gates: ['Gate 1 (Code Quality)'],
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'pytest',
|
|
103
|
+
checkCmd: 'pytest --version',
|
|
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
|
+
},
|
|
134
|
+
],
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
java: {
|
|
138
|
+
name: 'Java',
|
|
139
|
+
extensions: ['java'],
|
|
140
|
+
configFiles: ['pom.xml', 'build.gradle', 'build.gradle.kts'],
|
|
141
|
+
tools: [
|
|
142
|
+
{
|
|
143
|
+
name: 'mvn',
|
|
144
|
+
checkCmd: 'mvn --version',
|
|
145
|
+
install: {
|
|
146
|
+
darwin: 'brew install maven',
|
|
147
|
+
linux: 'apt-get install maven || yum install maven',
|
|
148
|
+
win32: 'winget install Apache.Maven',
|
|
149
|
+
},
|
|
150
|
+
optional: true, // only if Maven project
|
|
151
|
+
gates: ['Gate 1 (Build)'],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'gradle',
|
|
155
|
+
checkCmd: 'gradle --version',
|
|
156
|
+
install: {
|
|
157
|
+
darwin: 'brew install gradle',
|
|
158
|
+
linux: 'apt-get install gradle || yum install gradle',
|
|
159
|
+
win32: 'winget install Gradle.Gradle',
|
|
160
|
+
},
|
|
161
|
+
optional: true, // only if Gradle project
|
|
162
|
+
gates: ['Gate 1 (Build)'],
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'checkstyle',
|
|
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
|
+
},
|
|
186
|
+
{
|
|
187
|
+
// A BUILD dependency, not a CLI: there is no `archunit` binary to probe,
|
|
188
|
+
// so checkCmd cannot work here. Detected by scanning the build files.
|
|
189
|
+
name: 'archunit',
|
|
190
|
+
detectBy: 'build-file',
|
|
191
|
+
install: {
|
|
192
|
+
darwin: 'add "com.tngtech.archunit:archunit-junit5" to pom.xml / build.gradle',
|
|
193
|
+
linux: 'add "com.tngtech.archunit:archunit-junit5" to pom.xml / build.gradle',
|
|
194
|
+
win32: 'add "com.tngtech.archunit:archunit-junit5" to pom.xml / build.gradle',
|
|
195
|
+
},
|
|
196
|
+
optional: true,
|
|
197
|
+
gates: ['Gate 4 (Architecture)'],
|
|
198
|
+
},
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
|
|
202
|
+
go: {
|
|
203
|
+
name: 'Go',
|
|
204
|
+
extensions: ['go'],
|
|
205
|
+
configFiles: ['go.mod', 'go.sum'],
|
|
206
|
+
tools: [
|
|
207
|
+
{
|
|
208
|
+
name: 'go',
|
|
209
|
+
checkCmd: 'go version',
|
|
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
|
+
},
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
|
|
243
|
+
kotlin: {
|
|
244
|
+
name: 'Kotlin',
|
|
245
|
+
extensions: ['kt', 'kts'],
|
|
246
|
+
configFiles: ['build.gradle', 'build.gradle.kts', 'pom.xml'],
|
|
247
|
+
tools: [
|
|
248
|
+
{
|
|
249
|
+
name: 'gradle',
|
|
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
|
+
},
|
|
270
|
+
{
|
|
271
|
+
// Konsist is a build dependency too -- see the Java ArchUnit note above.
|
|
272
|
+
name: 'konsist',
|
|
273
|
+
detectBy: 'build-file',
|
|
274
|
+
install: {
|
|
275
|
+
darwin: 'add "com.lemonappdev:konsist" to build.gradle(.kts)',
|
|
276
|
+
linux: 'add "com.lemonappdev:konsist" to build.gradle(.kts)',
|
|
277
|
+
win32: 'add "com.lemonappdev:konsist" to build.gradle(.kts)',
|
|
278
|
+
},
|
|
279
|
+
optional: true,
|
|
280
|
+
gates: ['Gate 4 (Architecture)'],
|
|
281
|
+
},
|
|
282
|
+
],
|
|
283
|
+
},
|
|
284
|
+
|
|
285
|
+
// #730: C# was supported by every gate (adapter, principles engine, Gate 4/5/6/10/13
|
|
286
|
+
// arms) but absent here, so `detect-languages` produced a config WITHOUT csharp.
|
|
287
|
+
// A hook that reads the generated config trusts it and does not fall back to
|
|
288
|
+
// extension sniffing, so C# was never routed — the whole feature was invisible in
|
|
289
|
+
// exactly the mixed .NET+JS repos it targets (the dsh-aot-runner shape: .csproj plus
|
|
290
|
+
// ~900 lines of JS). Registry membership is what makes detection emit the entry.
|
|
291
|
+
csharp: {
|
|
292
|
+
name: 'C#/.NET',
|
|
293
|
+
extensions: ['cs', 'csx'],
|
|
294
|
+
// `.csproj`/`.sln` are SUFFIXES of project-specific filenames (Foo.csproj), so
|
|
295
|
+
// they must be written as globs — the matcher only globs entries containing '*'
|
|
296
|
+
// and otherwise stats the exact name, which would never find DshAotRunner.csproj.
|
|
297
|
+
// Directory.Build.props carries repo-wide MSBuild settings; global.json pins the
|
|
298
|
+
// SDK, so a repo with only that plus sources still deserves the C# arm.
|
|
299
|
+
configFiles: ['*.csproj', '*.sln', '*.csproj.user', 'Directory.Build.props', 'global.json'],
|
|
300
|
+
tools: [
|
|
301
|
+
{
|
|
302
|
+
// The adapter drives everything through the SDK: `dotnet format` for Gate 1,
|
|
303
|
+
// `dotnet build -warnaserror` for Gate 13, `dotnet test` for Gate 5.
|
|
304
|
+
name: 'dotnet',
|
|
305
|
+
checkCmd: 'dotnet --version',
|
|
306
|
+
install: {
|
|
307
|
+
darwin: 'brew install --cask dotnet-sdk',
|
|
308
|
+
linux: 'See https://learn.microsoft.com/dotnet/core/install/linux',
|
|
309
|
+
win32: 'winget install Microsoft.DotNet.SDK.8',
|
|
310
|
+
},
|
|
311
|
+
optional: false,
|
|
312
|
+
gates: ['Gate 1 (Code Quality)', 'Gate 5 (Tests + Coverage)', 'Gate 13 (Compiler Strictness)'],
|
|
313
|
+
},
|
|
314
|
+
// No second C# entry for coverage. `dotnet test --collect` supplies it, and
|
|
315
|
+
// the only project-provided detector this module implements is
|
|
316
|
+
// `detectBy: 'build-file'`, which reads ARCH_DEPENDENCY_COORDINATES — a table
|
|
317
|
+
// with no C# entry. Listing coverlet under a detectBy value nothing consumes
|
|
318
|
+
// would make check-tools probe a tool with no checkCmd and report a
|
|
319
|
+
// permanently-missing entry for a dependency that is already satisfied.
|
|
320
|
+
],
|
|
321
|
+
},
|
|
322
|
+
|
|
323
|
+
swift: {
|
|
324
|
+
name: 'Swift',
|
|
325
|
+
extensions: ['swift'],
|
|
326
|
+
configFiles: ['Package.swift', 'project.xcodeproj', 'project.pbxproj'],
|
|
327
|
+
tools: [
|
|
328
|
+
{
|
|
329
|
+
name: 'swift',
|
|
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
|
+
},
|
|
350
|
+
],
|
|
351
|
+
},
|
|
352
|
+
|
|
353
|
+
// #846: Objective-C had a full runtime (githooks/adapters/objectivec.sh) and
|
|
354
|
+
// was recognised by every GATE-layer list -- Gate 1's short-circuit, Gate 3's
|
|
355
|
+
// lizard population, Gate 4's PRINCIPLES_FILES, Gate 5's CODE_EXTENSIONS,
|
|
356
|
+
// Gate 10's SEMGREP_FILES, lib/docs-only.sh -- yet was absent HERE. That is
|
|
357
|
+
// #730's shape exactly: `detect-languages` writes a config without it, the
|
|
358
|
+
// hook trusts that config and does NOT fall back to extension sniffing, so an
|
|
359
|
+
// Objective-C repo was never routed. Registry membership, not gate support, is
|
|
360
|
+
// what makes a language reachable.
|
|
361
|
+
//
|
|
362
|
+
// Detection keys off Xcode manifests and NOT off the `.m`/`.mm` extension.
|
|
363
|
+
// `.m` is also MATLAB's, and `configFiles` is non-empty here on purpose:
|
|
364
|
+
// detectProjectLanguages only consults the extension fallback when
|
|
365
|
+
// `configFiles.length === 0`, so listing a manifest both enables detection and
|
|
366
|
+
// structurally prevents a MATLAB checkout from being reported as Objective-C.
|
|
367
|
+
// `*.pbxproj` is globbed because the project file lives inside
|
|
368
|
+
// `<name>.xcodeproj/`, not at the repo root.
|
|
369
|
+
objectivec: {
|
|
370
|
+
name: 'Objective-C',
|
|
371
|
+
extensions: ['m', 'mm'],
|
|
372
|
+
configFiles: ['Podfile', 'Package.swift', '*.xcodeproj', '*.pbxproj'],
|
|
373
|
+
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
|
+
},
|
|
385
|
+
],
|
|
386
|
+
},
|
|
387
|
+
|
|
388
|
+
// #731: PHP. `configFiles` is non-empty on purpose, for the same structural
|
|
389
|
+
// reason as objectivec below -- detectProjectLanguages only consults the
|
|
390
|
+
// extension fallback when `configFiles.length === 0`, so a manifest keeps the
|
|
391
|
+
// signal anchored to a real project rather than to a stray .php file.
|
|
392
|
+
// composer.json is listed first but is NOT treated as exclusive: unlike a
|
|
393
|
+
// .csproj, it coexists happily with package.json in JS repos that shell out for
|
|
394
|
+
// one build step. The Gate 0 detection arm keys off `.php` extensions instead.
|
|
395
|
+
php: {
|
|
396
|
+
name: 'PHP',
|
|
397
|
+
extensions: ['php', 'phtml'],
|
|
398
|
+
configFiles: ['composer.json', 'phpunit.xml', 'phpunit.xml.dist', 'phpstan.neon'],
|
|
399
|
+
tools: [
|
|
400
|
+
{
|
|
401
|
+
name: 'php',
|
|
402
|
+
checkCmd: 'php --version',
|
|
403
|
+
install: {
|
|
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
|
+
},
|
|
444
|
+
{
|
|
445
|
+
name: 'pcov',
|
|
446
|
+
checkCmd: 'php -r "exit(extension_loaded(\'pcov\')?0:1);"',
|
|
447
|
+
install: {
|
|
448
|
+
darwin: 'pecl install pcov',
|
|
449
|
+
linux: 'pecl install pcov',
|
|
450
|
+
win32: 'php_pcov.dll from https://windows.php.net/downloads/pecl/releases/pcov/ (must match the PHP build: ts vs nts)',
|
|
451
|
+
},
|
|
452
|
+
// Coverage is Gate 5's business; a missing driver makes coverage
|
|
453
|
+
// unmeasurable, which the adapter reports as BLOCK rather than 0%.
|
|
454
|
+
optional: true,
|
|
455
|
+
gates: ['Gate 5 (Coverage)'],
|
|
456
|
+
},
|
|
457
|
+
],
|
|
458
|
+
},
|
|
459
|
+
|
|
460
|
+
dart: {
|
|
461
|
+
name: 'Dart',
|
|
462
|
+
extensions: ['dart'],
|
|
463
|
+
configFiles: ['pubspec.yaml'],
|
|
464
|
+
tools: [
|
|
465
|
+
{
|
|
466
|
+
name: 'dart',
|
|
467
|
+
checkCmd: 'dart --version',
|
|
468
|
+
install: {
|
|
469
|
+
darwin: 'brew tap dart-lang/dart && brew install dart',
|
|
470
|
+
linux: 'See https://dart.dev/get-dart',
|
|
471
|
+
win32: 'winget install Dart-Dart.dart',
|
|
472
|
+
},
|
|
473
|
+
optional: false,
|
|
474
|
+
gates: ['Gate 1 (Build + Quality)'],
|
|
475
|
+
},
|
|
476
|
+
],
|
|
477
|
+
},
|
|
478
|
+
|
|
479
|
+
flutter: {
|
|
480
|
+
name: 'Flutter',
|
|
481
|
+
extensions: ['dart'],
|
|
482
|
+
configFiles: ['pubspec.yaml'],
|
|
483
|
+
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
|
+
},
|
|
495
|
+
],
|
|
496
|
+
},
|
|
497
|
+
|
|
498
|
+
cpp: {
|
|
499
|
+
name: 'C/C++',
|
|
500
|
+
extensions: ['cpp', 'cxx', 'cc', 'c', 'hpp', 'h'],
|
|
501
|
+
configFiles: ['CMakeLists.txt', 'Makefile', 'conanfile.txt', 'vcpkg.json'],
|
|
502
|
+
tools: [
|
|
503
|
+
{
|
|
504
|
+
name: 'cmake',
|
|
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
|
+
},
|
|
525
|
+
],
|
|
526
|
+
},
|
|
527
|
+
|
|
528
|
+
shell: {
|
|
529
|
+
name: 'Shell',
|
|
530
|
+
extensions: ['sh', 'bash'],
|
|
531
|
+
configFiles: [],
|
|
532
|
+
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
|
+
},
|
|
544
|
+
],
|
|
545
|
+
},
|
|
546
|
+
|
|
547
|
+
powershell: {
|
|
548
|
+
name: 'PowerShell',
|
|
549
|
+
extensions: ['ps1', 'psm1', 'psd1'],
|
|
550
|
+
configFiles: [],
|
|
551
|
+
tools: [
|
|
552
|
+
{
|
|
553
|
+
name: 'pwsh',
|
|
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
|
+
},
|
|
574
|
+
],
|
|
575
|
+
},
|
|
576
|
+
|
|
577
|
+
iac: {
|
|
578
|
+
name: 'Infrastructure as Code',
|
|
579
|
+
extensions: ['tf', 'tfvars', 'yaml', 'yml'],
|
|
580
|
+
configFiles: ['*.tf', 'docker-compose*.yaml', 'k8s/*.yaml'],
|
|
581
|
+
tools: [
|
|
582
|
+
{
|
|
583
|
+
name: 'terraform',
|
|
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
|
+
},
|
|
604
|
+
],
|
|
605
|
+
},
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
module.exports = { LANGUAGE_REGISTRY };
|