Repository navigation
fix(rules): gate keyword density by language - #1238
Conversation
Signed-off-by: Ching-Wei Kang <[email protected]>
|
Reviewed head: ab68221 Verdict: changes requested, one blocking item. Thanks for picking up #1232. Logic, tests and docs are in good shape, CI is green and the DCO sign-off is present. Medium (blocking)
Low
Checked and fine
|
d7bbe5e to
e5acf91
Compare
|
Addressed the review in e5acf91:
The targeted rule test now passes 42 cases, and the rules package typecheck, targeted lint, changelog extraction check, and diff check pass locally. |
Signed-off-by: Ching-Wei Kang <[email protected]>
e5acf91 to
23da114
Compare
|
Reviewed head: 23da114 Verdict: looks good. Thanks for the updates. The CHANGELOG bullet now sits under Low
|
|
Reviewed head: 23da114 Thanks @WilliamK112, quick turnaround again. The
Verdict: needs changes (1 and 2). The rest is small. |
|
Sorry for the mixed signals, @WilliamK112. The earlier "looks good" came from an automated review pass that ran before we made a design call on this PR. The latest review stands: please switch to the script-aware gate, so an unsupported |
Signed-off-by: Ching-Wei Kang <[email protected]>
|
Addressed the latest review in f72c002.
Validation:
|
|
Reviewed head: f72c002 Thanks @WilliamK112, this is exactly what we asked for.
One small thing before merge:
Notes, no change needed:
Verdict: good to merge once the description is updated. A description-only edit doesn't need another review round. |
Signed-off-by: Ching-Wei Kang <[email protected]>
|
Reviewed head: 34f5c72 Thanks @WilliamK112. Verdict: the code is unchanged since the last review; one item from that review is still open (the PR description), so this is not ready yet. The only new commit is a merge of main ( Still open from the last review:
CI on this head: every finished check is green; CLI tests were still running when I looked. Verdict: good to merge once the description is updated, pending maintainer review. |
|
Updated the PR description to match the script-aware final implementation and reran the requested suite on final head 34f5c72:
No code changes were needed for this follow-up. |
|
Reviewed head: 75c5a16 Thanks @WilliamK112. Verdict: no code change since the last review, ready for a maintainer merge decision. The only new commit is a merge of main ( Conventions: DCO is present, no new runtime dependency, rule docs and CHANGELOG are updated. CI on this head: all checks green. |
|
@WilliamK112 this is approved and ready to merge, but v0.0.140 just shipped and the PR now conflicts with |
df033f6 to
b2f48cc
Compare
Signed-off-by: Nik Cubrilovic <[email protected]>
b2f48cc to
45ae98e
Compare
|
Update-branch (merge of main, no rebase): head 45ae98e = merge commit, parents 75c5a16 (approved) and 660dcfc (main tip). Non-CHANGELOG patch unchanged: git patch-id --stable 44b330096f62edf14ffde2fa4f472729c1faec6c for both, same file list. CHANGELOG: the PR's own bullet is under [Unreleased] (Fixed); released sections equal their tags. Pin for merge once checks are green: 45ae98e. |
|
Merged. Thank you @WilliamK112, the language gate keeps keyword density honest for pages written in languages the stop-word lists do not cover. (Nik) |
Summary
langattributeinclandvatas English-only price-note terms so repeated use remains detectable on non-English pageslang=ru, natural Russian copy, and German body-fallback price termsCloses #1232.
Verification
bun run scripts/test-suites.ts --run rules— 8,138 passed, 25 todo, 0 failedbun test ./packages/rules/tests/keyword-stuffing.test.ts— 59 passed, 0 failedrestsuite — 1,900 passed, 1 skipped, 0 failedbun run typecheck— all workspaces passedbun run docs:check— 62 passed, 0 failedbunx oxfmt --checkandbunx oxlintdetect-secrets==1.5.0scangit diff --checkChecklist
Signed-off-byline.Docs: docs/rules/content/keyword-stuffing.mdx. Skill: none.