Repository navigation
feat: add --ignore flag to suppress validate warning kinds - #20
Conversation
Bundles nested in a repo subdirectory (e.g. docs/) need relative links for IDE navigation, which tripped prefer-absolute-links on every file. --ignore <kind> is repeatable, rejects unknown/error kinds, and excluded warnings do not count under --strict. Library: validate(root, { ignore }) with exported WARNING_KINDS/WarningKind.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (9)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe validation library and CLI now support repeatable suppression of selected warning kinds. Ignored warnings do not appear in validation results or counts. Errors cannot be ignored, and the package exports the warning-kind definitions and validation options. ChangesValidation warning suppression
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
actor User
participant CLI as bin/okph.ts
participant Validation as validate
User->>CLI: Run validate with --ignore kind
CLI->>Validation: Call validate with ignored kinds
Validation-->>CLI: Return filtered diagnostics and counts
CLI-->>User: Print validation result
Merge Risk: ⚪ Minimal · up to The warning-suppression change has no identified issue requiring resolution before merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Bundles nested in a repo subdirectory (e.g. docs/) need relative links for IDE navigation, which tripped prefer-absolute-links on every file. --ignore is repeatable, rejects unknown/error kinds, and excluded warnings do not count under --strict. Library: validate(root, { ignore }) with exported WARNING_KINDS/WarningKind.
Summary by CodeRabbit
validate --ignore <kind>options to suppress selected warnings from output and strict-mode checks. Errors cannot be ignored, and unsupported kinds are rejected.