Skip to content

Conversation

@noelsaw1
Copy link
Contributor

Moved to Shared Library
Created: dist/bin/lib/false-positive-filters.sh

Benefits:

✅ Centralized location for all false positive detection
✅ Versioned library (v1.0.0) for future scanner scripts
✅ Documented API and known limitations
✅ Removed 140+ lines of duplicate code from main script
✅ Ready for Phase 2 and future enhancements

noelsaw1 and others added 20 commits January 9, 2026 20:11
git add .
git commit -m "Fix CI test failures: Add jq dependency and TTY availability check

- Install jq in GitHub Actions workflow
- Add TTY availability check to prevent /dev/tty errors in CI
- Improve test suite with trace mode and error handling
- Add CI environment emulator for local testing
- Remove dead text parsing fallback
- Fix indentation inconsistencies

Tests now pass 10/10 in both local and CI environments."
Co-authored-by: noelsaw1 <56978803+noelsaw1@users.noreply.github.com>
Co-authored-by: noelsaw1 <56978803+noelsaw1@users.noreply.github.com>
Fix Required
Change: Add quotes around $PATHS → "$PATHS" in 3 locations

Lines to modify:

Line 4164: $PATHS → "$PATHS"
Line 4940: $PATHS → "$PATHS"
Line 4945: $PATHS → "$PATHS"
Line 5009: $PATHS → "$PATHS"
Total changes: 4 lines (literally adding 2 characters per line)
Phase 1: Comment/docblock filtering
Phase 1: HTML/REST config exclusions
Test on Health Check plugin (should drop from 75 → 61 findings)

Scanner no longer flags PHPDoc/comment-only matches
Avoids POST-method false positives in HTML/REST config
Test fixtures created for regression testing
Documentation updated with results

Moved to Shared Library
Created:  dist/bin/lib/false-positive-filters.sh

Benefits:

✅ Centralized location for all false positive detection
✅ Versioned library (v1.0.0) for future scanner scripts
✅ Documented API and known limitations
✅ Removed 140+ lines of duplicate code from main script
✅ Ready for Phase 2 and future enhancements
@noelsaw1 noelsaw1 merged commit a67aee8 into development Jan 12, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants