docs: update Claude docs from PR review analysis#380
Open
claude[bot] wants to merge 1 commit intomainfrom
Open
docs: update Claude docs from PR review analysis#380claude[bot] wants to merge 1 commit intomainfrom
claude[bot] wants to merge 1 commit intomainfrom
Conversation
…04-20) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
ninja-shreyash
approved these changes
Apr 23, 2026
maninder-uipath
approved these changes
Apr 23, 2026
Sarath1018
approved these changes
Apr 23, 2026
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.



Summary
Weekly analysis of PR comments (2026-04-13 -> 2026-04-20).
Analyzed 14 PRs with ~130 review comments. Found 4 actionable insights.
Changes
agent_docs/conventions.md
Extend "static lookup tables" hygiene rule to cover inline regex literals
Source: PR feat(auth): add acr_values to OAuth authorization URL #364 — reviewer identified an inline GUID regex inside
getAuthorizationUrl()that was recreated on every call. The existing rule only mentioned lookup tables; regex literals have the same issue.Header constant naming: no
_HEADERsuffix inheaders.tsSource: PR fix: add external user id header to http requests for cas #344 — reviewer noted that
EXTERNAL_USER_ID_HEADERwas inconsistent with all other constants inheaders.ts(FOLDER_ID,FOLDER_KEY,USER_AGENTetc.) which don't have the suffix. Generalizes the existing endpoint-group naming rule ("context provides the prefix") to header constants.agent_docs/rules.md
Never access private methods via
as anyin testsSource: PR feat(auth): add acr_values to OAuth authorization URL #364 — a test block used
(service as any)._getAccessToken(...)to reach a private method. This violates both the no-anyrule and creates brittle tests tied to implementation internals. Correct approach: test via public API or extract to a pure function.Use
let variable!: Type(definite assignment) forbeforeAll-initialized test variablesSource: PR fix: isolate attachment integration tests with per-run record creation [PLT-101734] #368 — reviewer preferred
let recordId!: stringoverlet recordId: string | undefined. The!signals TypeScript that the value is guaranteed before tests run, eliminating null-checks throughout test bodies while keeping theafterAllguard working at runtime.No changes
CLAUDE.md— no relevant insights foundAgents.md— no relevant insights foundagent_docs/architecture.md— no relevant insights foundPRs Analyzed
🤖 Generated with Claude Code