feat(no-extraneous-dependencies): add transitiveDependencies option for metapackages #628
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 174 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.309
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #628"
general
weight: 0.35
thekhegay
Closes #158
Adds
transitiveDependenciesoption, shape from the issue:Listed packages count as declared only while the metapackage is in
package.json, and in the same field as it, so metapackage indevDependenciesgives dev deps anddevDependencies: falsestill reports them. That is the conditional partwhitelistcant doThe allowed-status check was spelled out twice already, third use made me pull it into
isAllowed, no behavior change there. New specs fail without the change, full suite 4030 pass<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
New Features
The
no-extraneous-dependenciesrule now supports atransitiveDependenciesoption. Configure provider packages and the packages they supply to allow imports when the provider is declared in an applicable dependency field. Existing dependency-field settings, including whether development dependencies are checked, continue to apply.Bug Fixes
Inherited properties no longer count as declared dependencies.
Documentation
Added configuration guidance and an example for the new option.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->