Skip to content

Conversation

@noelsaw1
Copy link
Contributor

@noelsaw1 noelsaw1 commented Jan 6, 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 cla@hypercart.com


Additional Notes

βœ… Portable timeout wrapper (Perl-based, macOS compatible)
βœ… Timeout protection actually works (exit code properly detected)
βœ… All aggregation loops bounded (no infinite loops possible)
βœ… File count limits on both pattern types
βœ… Graceful degradation with clear warnings
βœ… Zero regressions, all tests pass
  - Added `MAX_CLONE_FILES` environment variable (default: 100) to limit files processed in clone detection
  - Added `--skip-clone-detection` flag to skip clone detection entirely for faster scans
  - Added file count warning when approaching clone detection limit (80% threshold)
  - **Impact:** Prevents timeouts on large codebases (500+ files), 90%+ faster scans when skipped
Section names appear as each section starts
Elapsed time updates every 10 seconds during clone detection
Progress counters show file/hash processing status
@noelsaw1 noelsaw1 merged commit 944e4cf into development Jan 6, 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