harden: restore gate baseline, split dev/prod PHP profile, atomic module runtime build
Phase A — Gate Reliability: - Fix typography token violations in app-breadcrumb.css - Switch QG-006 from composer cs:check to direct php-cs-fixer - Align all docs/skills with new gate command Phase B — Production Profile: - Multi-stage Dockerfile: dev (xdebug) / prod (no xdebug) - Compose files target explicit build stages Phase C — Module Runtime Hardening: - Atomic staging+swap build in ModuleRuntimePageBuilder - SHA-256 fingerprint from manifest content + page entries - 11 new regression tests for build safety and fingerprint drift Task: STARTERKIT-HARDENING-ONPREM-001 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
"id": "QG-006",
|
||||
"type": "fast",
|
||||
"name": "PHP Style Check",
|
||||
"command": "docker compose exec php composer cs:check"
|
||||
"command": "docker compose exec php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff --verbose"
|
||||
},
|
||||
{
|
||||
"id": "QG-007",
|
||||
|
||||
@@ -17,7 +17,7 @@ Coding-Style pruefbar, reproduzierbar und regressionsarm machen.
|
||||
|
||||
## Verbindliche Regeln
|
||||
|
||||
1. MUST `composer cs:check` fuer nicht-mutierende Pruefung nutzen.
|
||||
1. MUST `vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff --verbose` fuer nicht-mutierende Pruefung nutzen (Convenience-Alias: `composer cs:check`).
|
||||
2. MUST `composer cs:fix` nur bewusst und mit Diff-Kontrolle ausfuehren.
|
||||
3. MUST Style-Check vor Merge gruen halten (lokal und optional CI).
|
||||
4. MUST nach groesseren Fixes mindestens `phpunit` und `phpstan` laufen lassen.
|
||||
@@ -25,7 +25,7 @@ Coding-Style pruefbar, reproduzierbar und regressionsarm machen.
|
||||
|
||||
## Workflow
|
||||
|
||||
1. Baseline erfassen: `composer cs:check`.
|
||||
1. Baseline erfassen: `vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff --verbose`.
|
||||
2. Falls noetig fixen: `composer cs:fix`.
|
||||
3. Diff fokussiert pruefen (Imports, Braces, Nebenwirkungen).
|
||||
4. Qualitaetsgates laufen lassen.
|
||||
|
||||
@@ -7,7 +7,7 @@ CI soll nur pruefen, nicht formatieren.
|
||||
## Minimaler Check
|
||||
|
||||
```bash
|
||||
composer cs:check
|
||||
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff --verbose
|
||||
```
|
||||
|
||||
## Erwartung
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
## Commands
|
||||
|
||||
```bash
|
||||
composer cs:check
|
||||
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff --verbose
|
||||
composer cs:fix
|
||||
```
|
||||
|
||||
## Praktikabler Ablauf
|
||||
|
||||
1. Erst `cs:check` laufen lassen.
|
||||
1. Erst Style-Check laufen lassen (`vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php --dry-run --diff --verbose`).
|
||||
2. Danach `cs:fix`.
|
||||
3. Nur relevante Diffs uebernehmen, grosse Misch-Diffs vermeiden.
|
||||
4. Anschliessend:
|
||||
|
||||
Reference in New Issue
Block a user