diff --git a/.php_cs b/.php_cs index 57086e104e997b1bd8986881492a2b6873aaad4c..c656cb8203dca88edaa1234a6c6dca8d6a87481a 100644 --- a/.php_cs +++ b/.php_cs @@ -1,4 +1,6 @@ -<?php +<?php declare(strict_types=1); + +require __DIR__ . '/vendor/autoload.php'; $finder = PhpCsFixer\Finder::create() ->files() diff --git a/composer.json b/composer.json index 5c056aaf14044a52e0b54624f54f15df8a4e6be4..49c24359d0cb5c87164af0205b95eba0bc3a2c52 100644 --- a/composer.json +++ b/composer.json @@ -38,16 +38,19 @@ "require-dev": { "doctrine/doctrine-bundle": "^1.11", "doctrine/orm": "^2.6", + "irstea/composer-require-checker-shim": "^2.0", "irstea/php-cs-fixer-config": "^1.0", + "irstea/php-cs-fixer-shim": "^2.15", + "irstea/phpcpd-shim": "^4.1", + "irstea/phploc-shim": "^5.0", "irstea/phpmd-config": "^1.0.0", + "irstea/phpmd-shim": "^2.7", "irstea/phpstan-config": "^1.0", "jakub-onderka/php-parallel-lint": "^1.0", - "maglnet/composer-require-checker": "^1.0", - "phploc/phploc": "^4.0", + "phpstan/phpstan-shim": "^0.11.15", "phpunit/phpunit": "^7.3", "ramsey/uuid": "^3.8", "ramsey/uuid-doctrine": "^1.5", - "sebastian/phpcpd": "^4.0", "symfony/framework-bundle": "^4.3", "symfony/yaml": "^4.3" }, diff --git a/phpmd-ruleset.xml b/phpmd-ruleset.xml index 64d0686a2f73501f5d2141e3d8f6a9ed7685ca80..ef57fba4fbad6ebb4f1f2bababa136caf83281da 100644 --- a/phpmd-ruleset.xml +++ b/phpmd-ruleset.xml @@ -6,4 +6,6 @@ <rule ref="vendor/irstea/phpmd-config/loose.xml"/> + <exclude-pattern>tests/Fixtures/var/**</exclude-pattern> + </ruleset> diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 306b084559dbf57b74ee7c67e529dfc8283dddd1..fc29aecf2e048a8fa11a0eca8cc045e8e7127786 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -9,6 +9,7 @@ <testsuites> <testsuite name="Project Test Suite"> <directory>tests</directory> + <exclude>tests/Fixtures</exclude> </testsuite> </testsuites>