Repository navigation
fix(review): include TypeScript module extensions - #1962
Conversation
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 3 selected item(s). |
wu21-web
left a comment
There was a problem hiding this comment.
Your previous edits does not address issues. If coverage tests are passing, you don't need an external test.
wu21-web
left a comment
There was a problem hiding this comment.
Yes, that looks better. Can you rebase main and squash your commits?
1e16c7e to
3b82170
Compare
|
Rebased onto current main (445ad9d) and squashed the three commits into one: 3b82170. The eight-file patch is byte-for-byte unchanged, and the removed agent-level tests/imports remain absent. Revalidated the rebased tree: make check and make build pass; full make coverage is 91.8%; the four related packages pass 360 top-level tests with race detection (two existing platform skips). Independent diff review and git diff --check pass. The branch update used a lease against the previous head. |
3b82170 to
6e54d27
Compare
|
Addressed in the single-commit head Verified all five cell widths, unchanged non-whitespace content, LF line endings, and |
Description
TypeScript supports
.mtsand.ctssource modules (and.d.mts/.d.ctsdeclarations), but the default file allowlist currently rejects these extensions asunsupported_ext. Bothocr reviewandocr scantherefore skip these files before review starts. The TypeScript rule mapping also omits them.Add both extensions to the allowlist and route them to the existing TypeScript rules. Extend the existing test/spec exclusions to cover these extensions, preserving the same default selection policy as
.tsfiles. Update the five localized rule tables together.The extensions are documented in the TypeScript 4.7 release notes.
Type of Change
Documentation review follow-up — 2026-11-19
Current single-commit head:
6e54d2764928bbad4ef38601d3d124625c74e347.Adjusted the TypeScript glob row in all five localized
review-rules.mdfiles (en, ja, ko, ru, zh) from 18 to 10 padding spaces. Each pattern cell is now 49 characters wide. This is a five-line whitespace-only correction folded into the existing single commit; the implementation, configuration and all other files remain byte-for-byte identical to the previously reviewed3b821705c7120041402bf341b0ee4b09bd86fb17tree.Verified all five exact cell widths and padding lengths, unchanged non-whitespace content, LF line endings, and
git diff --check. The implementation test results below belong to the earlier validated tree; the full Go suites were not rerun for this whitespace-only correction. The requiredocr review --audience agent --background "..."command was invoked again and still reported no configured LLM endpoint.Implementation verification
For the implementation validation below, rebased onto
mainat445ad9dea3057346986197385858a1a281253cc9and squashed the three commits into3b821705c7120041402bf341b0ee4b09bd86fb17, as requested. The final eight-file patch is byte-for-byte identical to the previously reviewed patch.internal/agent/preview_run_test.goremains identical to upstream, andtypescript_module_test.goremains absent.Validation on the rebased tree, with Go 1.26.10 on Linux:
make check— passed with no additional formatting or dependency changes.make coverage— passed with 91.8% overall coverage, above the 90% threshold.make test PACKAGES="./internal/config/allowlist ./internal/config/rules ./internal/agent ./internal/scan"— passed with the race detector: 360 top-level tests passed, with two existing platform-dependent tests skipped on Linux.make build— passed.git diff --check— passed; the published tree matches the locally validated tree.The telemetry sampler was explicitly set to
always_onfor the test suites. The requiredocr review --audience agent --background "..."command was invoked and reported no configured LLM endpoint.Checklist
Primary contributor: Afloat16.
AI/LLM disclosure: OpenAI ChatGPT (GPT-6 Astra Pro).