Repository navigation
fix(rules): measure keyword density in main copy - #1190
Conversation
|
Thank you @WilliamK112, the main-copy measurement is the right fix for #1182, and the tokenizer keeping umlauts and ß whole is a good catch. The rules suite, the canonical golden test and the time-budget test all pass on this head. Before merging, four things to look at:
Smaller notes: |
09017e6 to
503ec5d
Compare
|
Thanks for the careful review — I pushed 503ec5d addressing all four points:
I also added regression coverage for each case. Validation is green locally: 36 focused tests, full rules suite (7,759 pass), rules typecheck/lint, docs checks/build, and the secret scan. |
503ec5d to
b9bfe7a
Compare
cf5fcd1 to
34f921c
Compare
|
Reviewed head: 34f921c Thanks @WilliamK112. All four points from the first review are addressed:
CI is green. One fix before merge, then a few optional ones.
Once 1 is in, this is good to merge. |
34f921c to
7c39463
Compare
|
Thanks for flagging the nested-landmark performance issue. I capped main landmark measurement at the first 8 eligible candidates and added a regression with 5,000 nested main elements. On my machine, the regression took about 1.76 seconds without the cap and about 14 ms with it. Validation completed: focused keyword-stuffing tests (37 passed), full rules suite (8,057 passed, 25 todo, 0 failed), rules typecheck, targeted oxlint, and git diff check. The update is rebased onto current main and pushed in 57ea6de. |
7c39463 to
081414a
Compare
|
Reviewed head: 081414a Thanks @WilliamK112, that closes the medium finding. I read the delta since 34f921c, which is just the cap and its test once main's rebase is set aside.
Verdict: good to merge once the remaining CI job (CLI tests) is green. |
081414a to
ddc279d
Compare
Signed-off-by: Ching-Wei Kang <[email protected]>
ddc279d to
57ea6de
Compare
Summary
Closes #1182
Validation
bun run scripts/test-suites.ts --run rules(7,753 passed, 25 todo)bun run --cwd packages/rules typecheckoxlinton the changed rule and testbun run docs:checkbun run docs:builddetect-secrets 1.5.0Docs: Updated the keyword-stuffing rule reference. Skill: none.