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

Abierto
#434 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github-actions, node.js, typescript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
0
Merge medio
38 min
PR fusionados (30 d)
96

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Rule-Of-Code/RoC

Todos los issues de Rule-Of-Code/RoC

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.