Skip to content

Commit 61314ba

Browse files
authored
Fix documentation level, it start from 0 (#2784)
1 parent c2fd996 commit 61314ba

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

resources/docs/levels.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ We took the liberty of sorting the rules from the easy-pick to more complex ones
4242
return RectorConfig::configure()
4343
->withPaths([__DIR__ . '/src', __DIR__ . '/tests'])
4444
- ->withPreparedSets(typeDeclaration: true);
45-
+ ->withTypeCoverageLevel(1);
45+
+ ->withTypeCoverageLevel(0);
4646
```
4747

4848
Now run Rector to see the changed files:
@@ -51,7 +51,7 @@ Now run Rector to see the changed files:
5151
vendor/bin/rector
5252
```
5353

54-
Only five files? We can do that in a day. We create a pull request, get a review, and merge. The next day, we can continue with level 2. You get the idea.
54+
Only five files? We can do that in a day. We create a pull request, get a review, and merge. The next day, we can continue with level 1. You get the idea.
5555

5656
## Dead Code and Code Quality Level
5757

@@ -66,9 +66,9 @@ use Rector\Config\RectorConfig;
6666

6767
return RectorConfig::configure()
6868
->withPaths([__DIR__ . '/src', __DIR__ . '/tests'])
69-
->withTypeCoverageLevel(1)
70-
->withDeadCodeLevel(1)
71-
->withCodeQualityLevel(1);
69+
->withTypeCoverageLevel(0)
70+
->withDeadCodeLevel(0)
71+
->withCodeQualityLevel(0);
7272
```
7373

7474
We increase it by 1, run Rector, create a pull request, get a review, and merge.

0 commit comments

Comments
 (0)