Repository navigation
chore(rules): delete the never-registered content/article-toc rule #321 - #873
Merged
Merged
Conversation
nc9
force-pushed
the
chore/321-delete-article-toc
branch
3 times, most recently
from
October 16, 2026 14:00
3f9af1c to
e90b447
Compare
The rule file was never imported into the content index or the registry, so it never ran, had no docs page and was not counted; its test kept a dead rule looking maintained. Deleted with its test. The deployed /rules/content/article-toc redirect stays so old links work. Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
chore/321-delete-article-toc
branch
from
October 17, 2026 15:12
e90b447 to
2c1cd80
Compare
nc9
marked this pull request as ready for review
October 17, 2026 15:12
|
Reviewed the diff. No blocking findings. I grepped the tree. The only remaining
Test coverage: the deleted test covered only dead code, so nothing is lost. I did not run CI. I only checked references with grep. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #321.
What changes
content/article-tocwas never imported into the content category index or the rule registry, so it never loaded: it never ran, had no docs page and was not counted. Its test (added in #339) kept a dead rule looking maintained. The decision, recorded on #321, is to delete it rather than register it. Its advice (ItemList schema for a table of contents) has no search benefit, and registering would add a finding to every long article and change the rule counts.packages/rules/src/content/article-toc.tsandpackages/rules/tests/article-toc.test.ts./rules/content/article-toc→/rules/contentredirect indocs/_redirectsanddocs/docs.json, so old links still land somewhere.Tests
test-suites.ts --checkpasses.Docs and skill