Revert "Revert " feat: add support for configuration error severities in analysis_options.yaml""#376
Conversation
… in `analysis_options.yaml`""
|
To view this pull requests documentation preview, visit the following URL: docs.page/invertase/dart_custom_lint~376 Documentation is deployed and generated using docs.page. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Code Quality ReviewChangesThis is a revert-of-a-revert, effectively re-landing the original PR #326: "feat: add support for configuration error severities in Quality AssessmentArchitecture & Design (strong):
Code quality observations:
VerdictAPPROVE -- This is a well-implemented feature with solid test coverage. The re-landing via revert-of-revert preserves the original commit cleanly. The only minor nits are the missing trailing newline in the example analysis_options.yaml and the case-sensitivity of severity string matching (which is a design choice, not a bug). Ready to merge after confirming CI passes. |
Fork Maintainer Review (dart_custom_lint)Reviewing on behalf of SummaryThis is a "revert of a revert" by @rrousselGit (Remi Rousselet, the primary maintainer). The history:
The feature adds an custom_lint:
errors:
my_lint_rule: error # override to error
another_rule: ignore # suppress entirelySupported severity levels: Code Changes (322 additions, 8 deletions)
AssessmentWell-designed feature with good test coverage. This was authored and is being re-applied by the project maintainer (rrousselGit). Key observations:
The quick revert-then-revert-of-revert pattern suggests the initial merge may have been premature, but Remi clearly intends to land this feature. RecommendationSYNC_FROM_UPSTREAM (once merged) -- This is a significant feature addition by the maintainer with proper test coverage. We want this in our fork for configuration flexibility. Wait for upstream to merge and stabilize before syncing. |
Compatibility Review (Monorepo Impact)Reviewer context: We maintain the open-runtime/dart_custom_lint fork, consumed as a workspace member in our Dart monorepo ( Monorepo ImpactLOW RISK, BENEFICIAL. This PR re-introduces the error severities configuration feature (originally PR #326, reverted in #375, now un-reverted here). The changes touch 3 runtime packages and add tests:
The feature allows custom_lint:
errors:
my_rule: error # or warning, info, ignoreThis is purely opt-in. Without the Dependency Concerns
RecommendationMERGE -- This is a useful feature that is fully backward-compatible (opt-in via |
Reverts #375
Cf #326