26 false positive laravelhorizon classified as a development package#27
Conversation
Introduce an 'ignore_findings' config to allow suppressing accepted/context-specific findings via match rules (supports wildcard strings). WardenAuditCommand now filters findings before reporting/notifications (added filterIgnoredFindings and helper methods using Str::is). Updated config and readme with usage examples. Refine DebugModeAuditService to stop flagging laravel/horizon and its routes as development/testing artifacts. Added tests for ignore rules, JSON output behavior, cached-findings filtering, and debug-mode expectations.
Update composer.json version from 1.5.1 to 1.5.3 to reflect a new patch release. No other changes were made in this commit.
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis release introduces a configurable ignore-findings mechanism to suppress accepted audit results, refines debug-mode detection for specific packages and routes, and adds comprehensive test coverage. The version is bumped to 1.5.3. ChangesIgnore findings feature and debug mode audit refinements
Sequence Diagram(s)The diagram in the hidden review stack illustrates how the ignore-findings filtering integrates into the audit command's result processing pipeline, showing the sequential evaluation of ignore rules against each finding via pattern and equality matching. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 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 |
This PR fixes false positives around Laravel Horizon in the debug-mode audit and adds a general suppression mechanism for accepted findings.
Related issue: #26
Previously, Warden treated laravel/horizon as a development package and flagged any horizon/* route as an exposed testing route. That produced incorrect results for normal production Horizon setups. This change removes Horizon from both of those checks while keeping existing Telescope and Dusk behavior unchanged.
To make this more durable going forward, the PR also adds a new top-level ignore_findings configuration option. Findings can now be suppressed centrally before output formatting, notifications, and exit-code calculation. Rules match when all provided fields match, and string values support wildcard matching.
Summary by CodeRabbit
New Features
Documentation
Chores