diff --git a/.github/sig-floor.json b/.github/sig-floor.json new file mode 100644 index 000000000..c6a9012e2 --- /dev/null +++ b/.github/sig-floor.json @@ -0,0 +1,35 @@ +{ + "about": "SIG 4-star checks this app meets and must keep meeting (gate 123, sig-floor). Generated by check_sig_floor.py write; raised by the workflow, never lowered by hand.", + "schema": 1, + "profile": "four-star", + "tools": { + "lizard": "1.24.3" + }, + "measured_at": "b8b01542219e94f910f85711bcea97747570d7ce", + "checks": [ + "javascript duplication", + "javascript unit_complexity >10", + "javascript unit_complexity >25", + "javascript unit_interfacing >2", + "javascript unit_interfacing >4", + "javascript unit_interfacing >6", + "javascript unit_size >15", + "javascript unit_size >30", + "javascript unit_size >60", + "php module_coupling >10", + "php module_coupling >20", + "php module_coupling >50", + "php unit_complexity >10", + "php unit_complexity >25", + "php unit_size >60", + "vue unit_complexity >10", + "vue unit_complexity >25", + "vue unit_complexity >5", + "vue unit_interfacing >2", + "vue unit_interfacing >4", + "vue unit_interfacing >6", + "vue unit_size >15", + "vue unit_size >30", + "vue unit_size >60" + ] +} diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index f2dc96bdc..296613df0 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -357,6 +357,11 @@ jobs: # deliberate). Floating both halves keeps caller and callee in step, # which is the only configuration in which a pinned path cannot expire. enable-hydra-gates: true + # Gate 122 (SIG unit ratchet) blocks: a unit this change adds or makes + # worse must stay at NLOC 60, McCabe 10 and at most 4 parameters, and a + # new duplicated fragment of 6+ lines fails. Units the change does not + # touch, or touches without making worse, are inherited and do not count. + hydra-gates-sig-blocking: true # ── Cost controls (see ConductionNL/.github#596, #599) ─────────────── # Run PHPUnit and Playwright only when the diff could change their # verdict. Fails safe TOWARDS running: an unreadable diff, a force-push,