chore: add Laravel Pint code style tooling#6
Merged
Conversation
- Add laravel/pint dev dependency and pint.json (laravel preset). - Add composer scripts: `lint` (fix) and `lint:test` (check). - Add a Pint job to the CI workflow running `composer lint:test`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
One-time formatting pass over the existing codebase to conform to the laravel preset (import ordering, brace position, spacing, new X() parens). Mechanical only; 119 tests pass and PHPStan level 9 stays clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Keep Pint as local-only tooling (pint.json + composer lint/lint:test); it no longer gates CI. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Brings the standalone .github/workflows/pint.yml (auto-runs Pint and opens a bot fix-PR) over from the main-branch setup. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Laravel Pint for code style, and applies a one-time formatting pass so the codebase conforms.
Two commits, kept separate for easy review:
chore(ci): add Laravel Pint code style tooling—laravel/pintdev dependency,pint.json(laravel preset), composer scripts, and a CI job.style: apply Pint formatting (laravel preset)— the mechanical reformat of the existing 28 files (import ordering, brace position, spacing,new X()parens). No logic changes.Tooling
pint.json—{ "preset": "laravel" }composer lint→pint(apply fixes)composer lint:test→pint --test(check only; used by CI)pintjob in.github/workflows/tests.ymlrunningcomposer lint:teston PHP 8.4.Verification
composer test— 119 passing (506 assertions)composer stan— clean at level 9composer lint:test— passes