Skip to content

Develop - #5

Merged
ruleofcodedev merged 2 commits into
masterfrom
develop
Aug 7, 2026
Merged

Develop#5
ruleofcodedev merged 2 commits into
masterfrom
develop

Conversation

@ruleofcodedev

Copy link
Copy Markdown
Contributor

What this changes

Verdict impact

  • No verdict change (docs, tests, refactor, internal)
  • Changes verdicts — a detector now catches more, or fewer, real cases
  • BREAKING — a default severity, threshold, or config shape changed
    (then: state the before/after values and what a consumer must do)

Evidence

  • Proven red: it flags the violation it claims to flag
  • Proven green: it passes correct code (no false positive)
  • Regression test added under tests/
  • detectionLimits updated if what the detector cannot see has changed

Gate

  • npm run lint — 0 errors
  • npx jest — full suite green
  • npm run canary — red/green proven across stacks
  • node dist/cli.js audit — RuleOfCode still passes its own law

Notes for the reviewer

ruleofcode.dev team and others added 2 commits August 7, 2026 17:07
The tarball probe looked for the installed CLI at a hard-coded
`node_modules/@ruleofcode/core/dist/cli.js`. RoC now also ships unscoped
as `ruleofcode`, which npm installs at `node_modules/ruleofcode`, so the
probe found nothing and reported all three stacks as "the audited CLI
did not run" — the release gate calling a perfectly good package broken.

The path is now derived from the name in package.json, which handles a
scoped name (two path segments) and an unscoped one alike, and a missing
binary now fails with the path it looked for instead of a module-loader
stack trace.

Verified against the real 7.17.3 tarball: green exit 0, red exit 1,
zero-laws refused, on python, angular and node.

This script is not part of the published package; nothing shipped
changes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ge-path

Bugfix/canary hardcoded package path
@ruleofcodedev
ruleofcodedev merged commit c1ebf88 into master Aug 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant