Skip to content

chore: add Laravel Pint code style tooling#6

Merged
jure-knezovic merged 4 commits into
mainfrom
chore/add-pint
Jun 19, 2026
Merged

chore: add Laravel Pint code style tooling#6
jure-knezovic merged 4 commits into
mainfrom
chore/add-pint

Conversation

@jure-knezovic

@jure-knezovic jure-knezovic commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

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:

  1. chore(ci): add Laravel Pint code style toolinglaravel/pint dev dependency, pint.json (laravel preset), composer scripts, and a CI job.
  2. 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 scripts
    • composer lintpint (apply fixes)
    • composer lint:testpint --test (check only; used by CI)
  • CI — new pint job in .github/workflows/tests.yml running composer lint:test on PHP 8.4.

Verification

  • composer test119 passing (506 assertions)
  • composer stan — clean at level 9
  • composer lint:testpasses

jure-knezovic and others added 4 commits June 19, 2026 14:01
- 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>
@jure-knezovic jure-knezovic merged commit 57d8fd2 into main Jun 19, 2026
29 checks passed
@jure-knezovic jure-knezovic deleted the chore/add-pint branch June 19, 2026 12:21
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