mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-09 07:58:40 +00:00
improve code inspection
This commit is contained in:
parent
d58d81c788
commit
264cb4384e
|
|
@ -5,6 +5,7 @@ parameters:
|
||||||
fileExtensions:
|
fileExtensions:
|
||||||
- php
|
- php
|
||||||
reportUnmatchedIgnoredErrors: false
|
reportUnmatchedIgnoredErrors: false
|
||||||
|
inferPrivatePropertyTypeFromConstructor: true
|
||||||
excludes_analyse:
|
excludes_analyse:
|
||||||
- *.tpl.php
|
- *.tpl.php
|
||||||
- */tests/*
|
- */tests/*
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
php phpcs.phar ./ --standard="Build/Config/phpcs.xml" -s --report-junit=Build/test/junit_phpcs.xml
|
php phpcs.phar ./ --standard="Build/Config/phpcs.xml" -s --report-junit=Build/test/junit_phpcs.xml
|
||||||
|
php phpcs.phar ./ --standard="Build/Config/phpcs.xml"
|
||||||
|
|
||||||
php phpstan.phar analyse --autoload-file=phpOMS/Autoloader.php -l 7 -c Build/Config/phpstan.neon --error-format=prettyJson ./ > Build/test/phpstan.json
|
php phpstan.phar analyse --autoload-file=phpOMS/Autoloader.php -l 7 -c Build/Config/phpstan.neon --error-format=prettyJson ./ > Build/test/phpstan.json
|
||||||
|
php phpstan.phar analyse --autoload-file=phpOMS/Autoloader.php -l 7 -c Build/Config/phpstan.neon ./
|
||||||
|
|
||||||
# Remove empty lines and lines with warnings which corrupt the json format
|
# Remove empty lines and lines with warnings which corrupt the json format
|
||||||
sed -i '/^$/d' Build/test/phpstan.json
|
sed -i '/^$/d' Build/test/phpstan.json
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user