laraveldaily/filacheck
FilaCheck brings static analysis to Filament v4/v5 projects. Scan your Filament code to detect deprecated patterns and common issues, with optional auto-fix (beta), dirty-file scanning, detailed output, and configurable rules—ideal for CI or after AI-generated code.
reactive() → live(), form() → schema()) to enforce consistency and reduce technical debt.vendor/bin/filacheck), requiring no framework-level changes. Works alongside existing tools like Pint, Pest, or Laravel’s built-in testing.Filament\Schemas\Components\Tabs\Tab), so integration is limited to Filament projects. Non-Filament Laravel apps will see no benefit.0/1 for pass/fail), with GitHub Actions example provided. Can run in parallel with other checks (e.g., tests, linting).--fix) may introduce edge cases. Rule deprecated-test-methods is marked "Partial," suggesting incomplete coverage.--dirty flag mitigates this for uncommitted changes.php artisan vendor:publish), adding minor setup friction.--fix feature is beta, should it be enabled in CI (risk of unintended changes) or reserved for local dev?php-cs-fixer/pint for Filament-specific checks.vendor/bin/filacheck) or via IDE hooks (e.g., PHPStorm’s "Before Commit" scripts).--dirty checks before commits.composer require laraveldaily/filacheck --dev
composer.json under require-dev to exclude from production.php artisan vendor:publish --tag=filacheck-config
deprecated-reactive if migrating incrementally..github/workflows/ci.yml (example provided in README).--dirty mode to avoid scanning the entire codebase initially.package.json scripts (if using npm):
"scripts": {
"check:filament": "php vendor/bin/filacheck --dirty"
}
check-filament:
php vendor/bin/filacheck --dirty
app/Filament/Resources). Useful for large codebases with multiple Filament instances.--dirty to identify issues in uncommitted changes.--dry-run to preview fixes before enabling --fix.1 but not failing CI).--fix locally first, then in CI after validating safety (e.g., via backup files --backup).app/Filament or use --dirty.--backup for safety.app/Http).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| CI pipeline fails on warnings | Blocks PR merges | Start with non-blocking mode; address issues incrementally. |
| Auto-fix introduces bugs | Broken Filament functionality | Use --dry-run first; enable --backup in CI. |
| Outdated rules miss new deprecations | Technical debt accumulates | Subscribe to Filament/FilaCheck release notes. |
| False positives overwhelm devs | Tool ignored or disabled | Tune rules via config; educate team on value. |
| Pro rules reveal critical issues | Unexpected refactoring needed | Pilot Pro rules in a subset of the codebase. |
vendor/bin/filacheck --detailed locally to understand warnings. Pair with Filament docs for context.How can I help you explore Laravel packages today?