Skip to content

Document laravel prepared set and add coverage - #77

Merged
TomasVotruba merged 3 commits into
mainfrom
laravel-preset-docs-test
Sep 9, 2026
Merged

Document laravel prepared set and add coverage#77
TomasVotruba merged 3 commits into
mainfrom
laravel-preset-docs-test

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

The Laravel Pint preset (config/set/laravel.php, SetList::LARAVEL, withPreparedSets(laravel: true)) already exists in the codebase but was undocumented and untested.

  • Add README example for ->withPreparedSets(laravel: true) with a link to the source Pint preset
  • Add LaravelTest set test with a fixture, mirroring the PER-CS and PSR-12 set tests

composer lint and the new test pass.

https://claude.ai/code/session_01Gmzc2bKAUjQHrSKVQsPruQ

Add README example for withPreparedSets(laravel: true) and a set test
covering the Laravel Pint ruleset.

Claude-Session: https://claude.ai/code/session_01Gmzc2bKAUjQHrSKVQsPruQ
The laravel set is the first prepared set to use withSkip(). Its skip
entries leaked across tests because SimpleParameterProvider is static
and never reset, breaking Psr12 and SkippedPathsResolver tests. Reset
the static parameters at the start of each container build.

Claude-Session: https://claude.ai/code/session_01Gmzc2bKAUjQHrSKVQsPruQ
Update renamed fixers (braces_position, modifier_keywords,
spaces_inside_parentheses, type_declaration_spaces, native_type_declaration_casing,
compact_nullable_type_declaration, no_unneeded_braces, blank_lines_before_namespace),
add missing rules (yoda_style, ordered_interfaces/traits, phpunit casing and
visibility, nullable type declarations, single line comment style, phpdoc_align,
fully_qualified_strict_types config, ordered_imports grouping, and more), enable
statement_indentation, and drop project-level path excludes that are not part of
the preset.

Claude-Session: https://claude.ai/code/session_01Gmzc2bKAUjQHrSKVQsPruQ
@TomasVotruba
TomasVotruba merged commit acd4a4c into main Sep 9, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the laravel-preset-docs-test branch September 9, 2026 10:39
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