Skip to content

Commit 7beae59

Browse files
committed
note
1 parent 016d134 commit 7beae59

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,24 @@ composer require symplify/phpstan-rules --dev
1616

1717
<br>
1818

19-
## Register Rules you Need
2019

21-
Pick from 25+ rules:
20+
## Usage
21+
22+
Later, once you have most rules applied, it's best practice to include whole sets:
23+
24+
```yaml
25+
includes:
26+
- vendor/symplify/phpstan-rules/config/code-complexity-rules.neon
27+
- vendor/symplify/phpstan-rules/config/configurable-rules.neon
28+
- vendor/symplify/phpstan-rules/config/naming-rules.neon
29+
- vendor/symplify/phpstan-rules/config/regex-rules.neon
30+
- vendor/symplify/phpstan-rules/config/static-rules.neon
31+
- vendor/symplify/phpstan-rules/config/rector-rules.neon
32+
```
33+
34+
<br>
35+
36+
But at start, make baby steps with one rule at a time:
2237
2338
<br>
2439

0 commit comments

Comments
 (0)