Repository navigation
docs(review-rules): note that include also overrides the extension allowlist - #1913
lizhengfeng101 merged 4 commits into
Conversation
…lowlist The rule-file format documented include only as a bypass for the built-in default exclude patterns. In selection.go a matching include returns before the unsupported_ext gate, and preview_test.go already asserts that behavior (the fake .supportedext case). Say so in all five locales, with a Markdown example and a note that rules[].path selects rule text rather than files.
|
✅ OpenCodeReview: Review skipped: no items were selected. |
…erride The same include list already brings back an unsupported extension; say it where the page first tells readers how to recover an excluded file.
Walternater
left a comment
There was a problem hiding this comment.
Friendly ping — this has been open since Nov 12 (5 days) with all checks green (Pages CI, plugin-contract, CodeQL, translation-sync) and CLA signed. It's docs-only: five locale review-rules.md files noting that include also overrides the extension allowlist (which is what #1869 was actually asking for — the behavior already exists in selection.go), plus a Markdown example and a note that rules[].path selects rule text, not files.
@lizhengfeng101 any chance to take a look? Happy to adjust wording or split it if that makes review easier. No urgency beyond avoiding bitrot — the branch was rebased on Nov 14 and is still mergeable.
AI-assisted (DeepSeek Harness, deepseek-v4.1-flash).
Walternater
left a comment
There was a problem hiding this comment.
Friendly ping — open since Nov 12 (5 days), all checks green (Pages CI, plugin-contract, CodeQL, translation-sync) and CLA signed. Docs-only: five locale review-rules.md files noting that include also overrides the extension allowlist (what #1869 was asking for — the behavior already exists in selection.go), plus a Markdown example and a note that rules[].path selects rule text, not files. Happy to adjust wording or split it if that helps. Branch was rebased on Nov 14 and is still mergeable. AI-assisted (DeepSeek Harness, deepseek-v4.1-flash).
Walternater
left a comment
There was a problem hiding this comment.
Reviewing my own understanding of the current state to keep the record straight:
includealready overrides the extension allowlist today (internal/agent/selection.goreturnsExcludeNonefor user includes before theunsupported_extcheck), which is what #1869 reported as missing. This PR adds no behavior — it documents the existing path in all five locales, plus a Markdown example and the distinction betweeninclude(files) andrules[].path(rule text).- Rebased on Nov 14; still mergeable.
- All CI green, CLA signed.
@lizhengfeng101 whenever you have a minute. If you would rather fold this into a broader review-rules docs pass, say so and I will close it.
Description
includein.opencodereview/rule.jsonalready overrides the built-in extension allowlist for matching paths:internal/agent/selection.goreturns from the user-include gate before theunsupported_extcheck, andinternal/agent/preview_test.goasserts it (include check overrides extension exclusion, using a fake.supportedextfile). The docs describedincludeonly as a bypass for default exclude patterns, so #1869 reasonably concluded there was no way to review a Markdown contract.This documents the existing behavior in
en,zh,ja,ko, andru, with a Markdown example, and calls out thatrules[].pathselects rule text rather than files.Related issues
Refs #1869 — this documents the existing answer; it does not change behavior.
Type of Change
How Has This Been Tested?
Documentation only. Verified against
main(1d7cc44, darwin/arm64) with a scratch repo:crates/model/README.md→ excluded,exclude_reason: unsupported_ext.opencodereview/rule.json={"include": ["**/*.md"]}:reviewable: [".opencodereview/rule.json", "crates/model/README.md", "crates/model/lib.rs"],excluded: []Checklist
go fmt,go vet) — docs-only, no Go changeslicense/clapasses)AI disclosure
The wording was drafted with AI assistance (DeepSeek Harness,
deepseek-v4.1-flash). The behavior it documents and the reproduction above were executed againstmainat1d7cc44; no commit attributes the change to AI.