mirror of
https://github.com/ysoftdevs/Theatrical-Players-Refactoring-Kata.git
synced 2026-03-24 18:32:14 +01:00
Added ECS and PHPStan
With helper batch files
This commit is contained in:
1
php/cc.bat
Normal file
1
php/cc.bat
Normal file
@@ -0,0 +1 @@
|
||||
composer check-cs
|
||||
12
php/ecs.yaml
Normal file
12
php/ecs.yaml
Normal 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
1
php/fc.bat
Normal file
@@ -0,0 +1 @@
|
||||
composer fix-cs
|
||||
26
php/phpstan.neon
Normal file
26
php/phpstan.neon
Normal 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
1
php/ps.bat
Normal file
@@ -0,0 +1 @@
|
||||
composer phpstan
|
||||
1
php/pu.bat
Normal file
1
php/pu.bat
Normal file
@@ -0,0 +1 @@
|
||||
composer test
|
||||
Reference in New Issue
Block a user