Repository navigation
Conversation
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can reply 'qodo' on any finding to push back, ask questions, or dig deeper |
PR Summary by QodoFix stale Go formatter names in the README
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
lgriffin
force-pushed
the
fix/format-readme-go-names
branch
from
October 23, 2026 18:13
5eb3e78 to
e2f3b8b
Compare
lgriffin
force-pushed
the
fix/format-readme-go-names
branch
from
October 23, 2026 18:27
395cc5a to
ad1c799
Compare
The formatter README linked rules.ts and said processPair requests rules via createRulesMap. Neither exists in the Go port: the rules are in rules.go, and processPair calls getRules, which reads the map buildRulesMap builds once. Found with CSH (https://github.com/lgriffin/CSH).
The test fails if README.md links to a file that does not exist, or mentions a backticked identifier that the package neither declares nor uses. Against the old README it reports the two stale TypeScript 6 names fixed in the previous commit.
lgriffin
force-pushed
the
fix/format-readme-go-names
branch
from
October 23, 2026 18:29
ad1c799 to
7df966e
Compare
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.
Requested by Leigh · project thread
Fixes microsoft#64939
AI disclosure: this change was written by Claude Code (an AI coding agent) at the request of @lgriffin, who chose this fix and will review it. The problem was found by running CSH on the repository, and then checked by hand.
Problem
tsc/internal/format/README.mdstill describes the formatter as it was in the TypeScript 6 code base:tsc/internal/format/rules.go.processPairrequests rules "viacreateRulesMap". The Go port has no such function.processPaircallsgetRules(span.go), which reads the map thatbuildRulesMapbuilds once (rulesmap.go).The other functions the README names (
FormatSpan,processNode,processPair) still exist inapi.goandspan.go.Implementation
tsc/internal/format/README.md. The link now points atrules.go, and the sentence namesgetRulesandbuildRulesMap. The file's CRLF line endings are kept.tsc/internal/format/readme_test.go(TestReadmeMatchesCode), keeps the README from drifting again. It fails if the README links to a relative file that does not exist. It also fails if the README names a backticked identifier that the package neither declares nor uses. Names used from other packages, such asast.SourceFile, count, and a trailing*, as inFormat*, matches a prefix.buildRulesMapto match the old README was rejected. It would not fix therules.tslink, and it would break from the Go port's naming.Tests
go test ./internal/format/passes.a91e938restored,TestReadmeMatchesCodefails with exactly the two findings above: the./rules.tslink andcreateRulesMap.go vetandgofmt -lare clean for the package.npx hereby test,lintandcheck:formathave not been run yet.🤖 Generated with Claude Code
https://claude.ai/code/session_012ndbBRjC5MKTRJzMUr4KAy