Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit 7bda13d

Browse files
committed
Improve PHPStan and PHPCS performance
1 parent b7f13e9 commit 7bda13d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
],
6363
"phpstan": "phpstan analyse --memory-limit=512M",
6464
"test": "echo 'No test specified' && exit 0",
65-
"phpcs": "phpcs -s --colors --extensions=php --standard=./phpcs.xml"
65+
"phpcs": "phpcs --cache -p -s --colors --extensions=php --standard=./phpcs.xml"
6666
},
6767
"config": {
6868
"optimize-autoloader": true,

phpstan.neon

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ includes:
88
- vendor/szepeviktor/phpstan-wordpress/extension.neon
99
parameters:
1010
level: max
11+
cache:
12+
nodesByStringCountMax: 512
1113
inferPrivatePropertyTypeFromConstructor: true
1214
checkMissingIterableValueType: false
1315
reportUnmatchedIgnoredErrors: false

0 commit comments

Comments
 (0)