Releases: crealoz/easyaudit-cli
Releases · crealoz/easyaudit-cli
Progress & Polish
Added
- Colorful scan output with severity indicators (red for errors, yellow for warnings, blue for info)
- Visual header with processor names in cyan for better readability
- Class hierarchy detection in SpecificClassInjection processor
- New rules for classes with children requiring manual fix:
collectionWithChildrenMustUseFactoryrepositoryWithChildrenMustUseInterface
- ExternalToolMapping for issues fixable by external tools (php-cs-fixer suggestions)
- Progress bar in FixApply command
- Echo output for all processor rules showing issue counts
- New
PreparerInterfacewithGeneralPreparerandDiPreparerfor payload preparation - Dedicated
Loggerservice for error and debug logging Filenamesutility class for path sanitization- Multi-file fix support via
Api::requestMultiFilefix()for cross-file issues
Changed
- Scanner output now displays processor names instead of identifiers
- Improved FixApply command with file-by-file processing
- Refactored
FixApplyto use class properties for better state management - Extracted payload preparation logic into dedicated preparer classes
- Simplified progress bar rendering using class properties
Fixed
- Helpers processor echo statements moved from getReport() to process() for consistency
Processors Update
Added
New Processors (12)
Dependency Injection & Architecture:
- Preferences - Multiple preferences detection
- ProxyForHeavyClasses - Heavy class proxy validation
Code Quality:
- HardWrittenSQL - Raw SQL detection
- SpecificClassInjection - Concrete class injection detection
- UseOfRegistry - Deprecated Registry usage
- UseOfObjectManager - Direct ObjectManager usage
- PaymentInterfaceUseAudit - Deprecated payment method detection
Template & View Layer:
- Cacheable - Non-cacheable block detection
- AdvancedBlockVsViewModel - Template anti-patterns
- Helpers - Deprecated Helper patterns
Architecture:
- BlockViewModelRatio - Block vs ViewModel analysis
- UnusedModules - Disabled modules detection
Documentation
- Complete processor documentation in
tests/fixtures/README.md - Updated README with full processor list
- Release notes and changelog
- Migration documentation
Testing
- 50+ test fixtures covering all processors
- Good and bad examples for each processor
- Ready-to-run test suite
Changed
- README now lists all 16 available processors with descriptions
- box.json now includes all new processor files
- Updated project documentation to reflect completion status
Technical Details
- All processors use static analysis only (no runtime required)
- SARIF-compatible output for GitHub Code Scanning
- Zero breaking changes from 1.x
- 42 files total in PHAR (165KB)
Improve verbosity, add git to container and patch name
v0.0.6 add patch name as option
API Connector
Full Changelog: v0.0.4...v0.0.5
Update SARIF reporter
v0.0.4 consolidate sarif results
add severity on sarif reports
v0.0.3 update sarif severity
CI/CD compatibility
v0.0.2 update sarif reporter and paths