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

オープン
#434 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, node.js, typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
0
フォーク
0
平均マージ
38分
マージ済み PR(30日)
96

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Rule-Of-Code/RoC のほかの issue

Rule-Of-Code/RoC の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。