-
Notifications
You must be signed in to change notification settings - Fork 398
feat: per-module scoring via diagnose({ projects }), CLI --project paths, and config projects
#771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8363661
feat(api): ship diagnoseProjects publicly with additive config merging
devin-ai-integration[bot] 0010e2a
chore: format changeset and merge config test
devin-ai-integration[bot] df13fe7
chore: remove changeset
devin-ai-integration[bot] f5564a5
fix(api): preserve config source directory and use true worker-pool c…
devin-ai-integration[bot] 3c684d2
refactor(api): fold multi-project scoring into diagnose() overload
devin-ai-integration[bot] f6e6e33
feat(cli): --project accepts directory paths for per-module scoring
devin-ai-integration[bot] b2d9c2b
feat(cli): support per-module project selection via config `projects`…
devin-ai-integration[bot] b45727d
Merge origin/main (regenerate config schema)
devin-ai-integration[bot] 7abd79a
refactor: deslop per-module scoring — reuse mapWithConcurrency, slim …
rayhanadev 517f977
fix(cli): resolve each project's scan target like diagnose({ projects })
devin-ai-integration[bot] 6637087
chore: retrigger CI (sentry-tracer clock flake on node 20)
devin-ai-integration[bot] a9eadd2
fix(api): bound diagnose({ projects }) batch concurrency by default
rayhanadev 464e547
fix: resolve merged relative plugins against the config that supplied…
rayhanadev a1ec050
perf(cli): run multi-project scans through a bounded concurrent pool;…
devin-ai-integration[bot] 10f28bb
fix(cli): keep concurrent multi-project scans out of the global Sentr…
rayhanadev 8af01e6
fix(cli): silence spinners once around the multi-project pool instead…
devin-ai-integration[bot] 46d3a21
fix(cli): filter multi-project diagnostics with each scan's merged co…
devin-ai-integration[bot] dc04cf2
Merge remote-tracking branch 'origin/main' into devin/1781083136-diag…
rayhanadev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚩 Semantic change: per-project config now merges instead of replacing
Before this PR, a
ProjectDefinition.configfully replaced the on-diskdoctor.config.*for that project's scan. Now it merges additively viamergeReactDoctorConfigs(packages/api/src/diagnose.ts:163-166). This is an intentional behavioral change documented in the changeset and types, but worth noting as a potential breaking change for any existing callers that relied on the replacement semantics — e.g., a caller passingconfig: { rules: { "react-doctor/no-prop-drilling": "off" } }previously got ONLY that rule config, but now gets the on-disk rules merged with that override.Was this helpful? React with 👍 or 👎 to provide feedback.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, and intentional: replace semantics was the bug from the user's perspective — Akshay's use case (same base rules across the repo + small per-module overrides) is broken by full replacement, since a one-rule override silently dropped the entire base config. The change ships before
diagnoseProjectsis ever publicly exported (it was only reachable via the private, unpublished@react-doctor/api), so there are no external callers relying on the old semantics; the changeset and JSDoc document the new layering. Verified end-to-end in this comment (test 3).