Skip to content

Commit

Permalink
Docs: Mention PhpUnitAttributesFixer in README
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed May 14, 2024
1 parent 4be6d5c commit 1f5454b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ return ECSConfig::configure()
__DIR__ . '/vendor/lmc/coding-standard/ecs.php',
]
)
->withRules(
[
// PHPUnit attributes must be used over their respective PHPDoc-based annotations. (Use with PHPUnit 10+.)
PhpUnitAttributesFixer::class,
]
)
// Enforce line-length to 120 characters
->withConfiguredRule(LineLengthSniff::class, ['absoluteLineLimit' => 120])
// Tests must have @test annotation
Expand Down

0 comments on commit 1f5454b

Please sign in to comment.