Added ECS and PHPStan

With helper batch files
This commit is contained in:
Pen-y-Fan
2020-05-18 22:42:07 +01:00
parent 182f8f4354
commit 1b405f33c9
6 changed files with 42 additions and 0 deletions

1
php/cc.bat Normal file
View File

@@ -0,0 +1 @@
composer check-cs

12
php/ecs.yaml Normal file
View File

@@ -0,0 +1,12 @@
parameters:
sets:
- 'psr12'
- 'php71'
- 'symplify'
- 'common'
- 'clean-code'
line_ending: "\n"
# 4 spaces
indentation: " "

1
php/fc.bat Normal file
View File

@@ -0,0 +1 @@
composer fix-cs

26
php/phpstan.neon Normal file
View File

@@ -0,0 +1,26 @@
includes:
- vendor/symplify/phpstan-extensions/config/config.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
parameters:
paths:
- src
- tests
# The level 8 is the highest level
level: 8
# Larstan recommendation:
checkMissingIterableValueType: false
ignoreErrors:
# buggy
# mixed
# cache buggy
# tests
# iterable

1
php/ps.bat Normal file
View File

@@ -0,0 +1 @@
composer phpstan

1
php/pu.bat Normal file
View File

@@ -0,0 +1 @@
composer test