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

Đang mở
#434 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, node.js, typescript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
38 phút
Pull request đã merge (30 ngày)
96

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Rule-Of-Code/RoC

Tất cả issue của Rule-Of-Code/RoC

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.