audit-invocation evidence: committed hooks, CI steps and `node dist/cli.js audit` are not recognised

Aperta
#434 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, node.js, typescript

Direzione di ricerca

Start by reading compliance-scripts.ts, continuous-compliance.ts, and pr-workflow-standards.ts, then inspect the existing audit checks and the mentioned .husky/ hooks and ci.yml workflow. Trace how each check identifies an audit invocation, including the package's own CLI and npx ruleofcode. Done means one shared probe recognizes the described script, hook, and CI forms and the three laws use it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Found in the 8.0.0 self-audit triage: RoC 7.29.1 (npm, 5fc54afe) on a clean clone of develop at 2d2fa9a, with typescript resolvable (verdict compliance, 0 failed / 46 warnings). The bucket method and per-law tables are kept by QA; counts are from that run.

What happens

Three laws ask "does this project run the audit?" and look only at one narrow place:

  • Constitutional Supremacy: package.json scripts matching /\b(?:ruleofcode|roc)\b[^&|]*\baudit\b/ (compliance-scripts.ts:25). RoC runs its audit from .husky/pre-commit, .husky/pre-push (npx ruleofcode audit), CI (ci.yml) and a constitutional-check script node dist/cli.js audit — none counted.
  • Continuous Compliance: requires ruleofcode as a dependency (continuous-compliance.ts:134-138); a project using npx ruleofcode fails the same way, and the ruleofcode package itself cannot depend on itself (isRuleOfCodePackageName exists).
  • Pull Request Workflow: wants npm scripts named precommit/prepush (pr-workflow-standards.ts:177-183) and ignores committed .husky/ hooks.

Suggested direction

One shared "audit is invoked" probe: package.json scripts (including a direct call of the package's own bin), committed hook files, CI workflow steps.

Lingua principale
TypeScript
Stelle
0
Fork
0
Merge medio
38m
PR unite (30g)
96

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Rule-Of-Code/RoC

Tutte le issue di Rule-Of-Code/RoC

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.