Skip to content

Commit 30e74da

Browse files
committed
chore: improve rector and phpstan configurations
1 parent ddf5b8a commit 30e74da

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

phpstan.neon

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ parameters:
55
level: 0
66
paths:
77
- app
8-
- public
8+
- public/index.php
9+
excludePaths:
10+
- app/cache
11+
- app/views
12+
- app/config/config.php

rector.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@
77
return RectorConfig::configure()
88
->withPaths([
99
__DIR__ . '/app',
10-
__DIR__ . '/public',
10+
__DIR__ . '/public/index.php',
1111
])
12-
->withPhpSets(php82: true);
12+
->withSkipPath(__DIR__ . '/vendor')
13+
->withSkipPath(__DIR__ . '/app/cache')
14+
->withSkipPath(__DIR__ . '/config/config.php')
15+
->withSkipPath(__DIR__ . '/app/views')
16+
->withPhpSets(php82: true)
17+
->withPhpLevel(0)
18+
->withDeadCodeLevel(0)
19+
->withCodeQualityLevel(0)
20+
->withCodingStyleLevel(0)
21+
->withTypeCoverageLevel(0);

0 commit comments

Comments
 (0)