Skip to content

fix(sloplint): reject an unknown --tier instead of reporting clean - #93

Closed
techsaurabh-394 wants to merge 1 commit into
Nutlope:mainfrom
techsaurabh-394:fix/sloplint-validate-tier
Closed

techsaurabh-394 wants to merge 1 commit into
Nutlope:mainfrom
techsaurabh-394:fix/sloplint-validate-tier

Conversation

@techsaurabh-394

Copy link
Copy Markdown

Summary

sloplint.mjs --tier accepts any string. A typo or wrong case, such as --tier Floor or --tier flor, matches no finding, every finding is filtered out, and the run prints sloplint: clean. 0 FAIL, 0 REFLEX, 0 WARN with exit 0. A bare --tier with no value does the same. For a gate checker that is a false pass.

This validates --tier next to --stage, --genre and --scope: it must be floor, reflex, finish or ledger, otherwise it prints --tier must be floor, reflex, finish or ledger and exits 2.

Scope

One file, +1 line. Not included: the unreadable-input exit codes (#89), which touch other lines.

Verification

On scripts/fixtures/slopped.html:

  • --tier zzz, --tier Floor, --tier "" and --tier with no value: error message, exit 2 (before the change: "clean", exit 0).
  • --tier floor: 24 FAIL. --tier reflex: 15 REFLEX. --tier finish: 3 WARN. --tier ledger: clean. Same as before the change.
  • No --tier: 24 FAIL, 15 REFLEX, 4 WARN, unchanged.
  • node --check and node skills/hallmark/scripts/refcheck.mjs: clean across 99 reference files.

Not run: render tier, the theme CI steps (themes untouched), and Node 20 (tested on Node 22.19).

Risk / rollback

Low. Only invocations with an invalid --tier change, and they now fail loudly. Revert the single commit to undo.

--tier took any string. A typo or wrong case (--tier Floor, --tier flor)
matched no finding, so the run filtered everything out and printed
'sloplint: clean. 0 FAIL', a false pass from a gate checker. A bare
--tier did the same.

Validate it with the other options: floor, reflex, finish or ledger,
exit 2 otherwise, matching --stage, --genre and --scope.

Signed-off-by: Saurabh Pathak <saurabhpathak394@gmail.com>
@vercel

vercel Bot commented Oct 26, 2026

Copy link
Copy Markdown

@techsaurabh-394 is attempting to deploy a commit to the Together AI Team on Vercel.

A member of the Team first needs to authorize it.

@techsaurabh-394 techsaurabh-394 closed this by deleting the head repository Oct 27, 2026
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