⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@noelsaw1
Copy link
Contributor

@noelsaw1 noelsaw1 commented Jan 13, 2026

Description

Type of Change

  • πŸ› Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • πŸ’₯ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • πŸ“ Documentation update
  • πŸ§ͺ Test update
  • ♻️ Refactoring (no functional changes)

Related Issue

Fixes #(issue number)

Changes Made

Testing

  • Ran dist/tests/run-fixture-tests.sh - All tests pass
  • Tested against real WordPress plugin/theme
  • Added new test fixtures (if applicable)
  • Verified no new issues in dist/tests/fixtures/clean-code.php

Checklist

  • My code follows the project's coding standards
  • I have updated the documentation (README.md, CHANGELOG.md)
  • I have added tests that prove my fix/feature works
  • All new and existing tests pass
  • I have updated CHANGELOG.md with my changes
  • I have read and agree to the Contributor License Agreement (CLA)

CLA Signature

For first-time contributors: Please comment below with:

I have read and agree to the CLA

This is a one-time requirement. Once signed, you can contribute to all future PRs without re-signing.

Questions about the CLA? See CLA.md or email [email protected]


Additional Notes

noelsaw1 and others added 30 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."
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
…sitive-2026-01-11

Rules/reduce false positive and shared library to Development
βœ… Guard heuristics (nearby checks)
βœ… Sanitizer/caster detection on superglobal reads
βœ… Refine $wpdb->prepare() finding severity
βœ… JSON output augmented with guard/sanitizer hints
βœ… Severity downgrade rules for "guarded" findings
βœ… Regression fixtures for guarded vs unguarded superglobal reads
Phase 2.1 significantly improves accuracy and reduces false confidence. The scanner is now ready for production use with documented limitations. All critical quality issues have been addressed.
@noelsaw1 noelsaw1 merged commit 70814a6 into main Jan 13, 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