mirror of
https://ghproxy.net/https://github.com/elementor/wp2static-addon-netlify.git
synced 2025-10-04 05:57:58 +08:00
wip adjust analysis
This commit is contained in:
parent
6ee1bf0498
commit
7472a0fff0
3 changed files with 9 additions and 7 deletions
|
@ -44,9 +44,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"platform": {
|
|
||||||
"php": "7.2.17"
|
|
||||||
},
|
|
||||||
"preferred-install": {
|
"preferred-install": {
|
||||||
"*": "dist"
|
"*": "dist"
|
||||||
},
|
},
|
||||||
|
@ -54,13 +51,16 @@
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"phpstan": "php -d memory_limit=-1 ./vendor/bin/phpstan analyse",
|
"phpstan": "php -d memory_limit=-1 ./vendor/bin/phpstan analyse",
|
||||||
"phpcs": "vendor/bin/phpcs --standard=./tools/phpcs.xml --ignore=*/tests/*,*/admin/*,**/coverage/*,*.js,*/vendor/*,*/views/*.php ./",
|
"phpcs": "vendor/bin/phpcs --standard=./tools/phpcs.xml --ignore='*/tests/*,*/vendor/*' .",
|
||||||
"phpcbf": "vendor/bin/phpcbf --standard=./tools/phpcs.xml --ignore=*/js/*,*/tests/*,*/admin/*,*/coverage/*,*.js,*/vendor/*,*/views/*.php ./",
|
"phpcbf": "vendor/bin/phpcbf --standard=./tools/phpcs.xml --ignore='*/tests/*,*/vendor/*' .",
|
||||||
"phpunit": "vendor/bin/phpunit ./tests/unit/",
|
"php73": "vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 7.3 --ignore='/tests/*,/vendor/*' ./",
|
||||||
|
"php74": "vendor/bin/phpcs --standard=PHPCompatibility --runtime-set testVersion 7.4 --ignore='/tests/*,/vendor/*' ./",
|
||||||
"lint": "vendor/bin/parallel-lint --exclude vendor .",
|
"lint": "vendor/bin/parallel-lint --exclude vendor .",
|
||||||
"test": [
|
"test": [
|
||||||
"@lint",
|
"@lint",
|
||||||
"@phpcs",
|
"@phpcs",
|
||||||
|
"@php73",
|
||||||
|
"@php74",
|
||||||
"@phpstan"
|
"@phpstan"
|
||||||
],
|
],
|
||||||
"build": "/bin/sh tools/build_release.sh"
|
"build": "/bin/sh tools/build_release.sh"
|
||||||
|
|
|
@ -4,9 +4,11 @@ includes:
|
||||||
- vendor/szepeviktor/phpstan-wordpress/extension.neon
|
- vendor/szepeviktor/phpstan-wordpress/extension.neon
|
||||||
parameters:
|
parameters:
|
||||||
level: max
|
level: max
|
||||||
|
phpVersion: 80000
|
||||||
inferPrivatePropertyTypeFromConstructor: true
|
inferPrivatePropertyTypeFromConstructor: true
|
||||||
paths:
|
paths:
|
||||||
- %currentWorkingDirectory%/src/
|
- %currentWorkingDirectory%/src/
|
||||||
|
- %currentWorkingDirectory%/views/
|
||||||
- %currentWorkingDirectory%/wp2static-addon-netlify.php
|
- %currentWorkingDirectory%/wp2static-addon-netlify.php
|
||||||
scanFiles:
|
scanFiles:
|
||||||
- %currentWorkingDirectory%/tests/phpstan/bootstrap.php
|
- %currentWorkingDirectory%/tests/phpstan/bootstrap.php
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<ruleset name="WP2Static">
|
<ruleset name="WP2Static">
|
||||||
<description>WP2Static Project Coding Standard</description>
|
<description>WP2Static Project Coding Standard</description>
|
||||||
<config name="testVersion" value="7.2-"/>
|
<config name="testVersion" value="7.3-"/>
|
||||||
<!--
|
<!--
|
||||||
Note: Applied WP standard override to allow tabs instead
|
Note: Applied WP standard override to allow tabs instead
|
||||||
of spaces, however, PHP CBF is using 4 spaces - Gray
|
of spaces, however, PHP CBF is using 4 spaces - Gray
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue