Skip to content

feat: integrate PHPStan, Rector and Pint code quality tools#13

Merged
Grazulex merged 2 commits intomainfrom
feat/code-quality-tools
Jan 20, 2026
Merged

feat: integrate PHPStan, Rector and Pint code quality tools#13
Grazulex merged 2 commits intomainfrom
feat/code-quality-tools

Conversation

@Grazulex
Copy link
Owner

Summary

  • Add PHPStan (level max) with Larastan extension for static analysis
  • Add Rector with Laravel sets for automated refactoring
  • Add Pint with strict rules (final_class, strict_types, etc.)
  • Add composer scripts: lint, test:lint, test:types, test:unit, test
  • Add GitHub Actions workflow for CI on push/PR to main
  • Apply code style fixes across all files
  • Update README with Code Quality documentation

Configuration files added

File Description
phpstan.neon PHPStan config at max level
rector.php Rector with 10 Laravel sets + code quality
pint.json Pint with strict rules
.github/workflows/tests.yml CI workflow

Scripts available

composer lint        # Apply Rector + Pint fixes
composer test:lint   # Check without fixing
composer test:types  # PHPStan analysis
composer test:unit   # Pest tests
composer test        # Full suite

Test plan

  • composer test:lint passes
  • composer test:types passes (PHPStan level max, 0 errors)
  • composer test:unit passes (11 tests, 39 assertions)
  • composer test runs full suite successfully

- Add larastan, rector, and rector-laravel dev dependencies
- Configure PHPStan at max level with Larastan extension
- Configure Rector with Laravel sets and code quality rules
- Configure Pint with strict rules (final_class, strict_types)
- Add composer scripts: lint, test:lint, test:types, test:unit
- Add GitHub Actions workflow for CI on push/PR
- Apply code style fixes across all files
@Grazulex Grazulex merged commit f417ec2 into main Jan 20, 2026
1 check passed
@Grazulex Grazulex deleted the feat/code-quality-tools branch January 20, 2026 20:03
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.

1 participant