Skip to content

Commit f804cd7

Browse files
committed
Remove no longer used files
Remove scripts on composer.json Documentation updated
1 parent 53844b4 commit f804cd7

6 files changed

+15
-670
lines changed

.php-cs-fixer.dist.php

-87
This file was deleted.

composer.json

-13
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,6 @@
4545
"prefer-stable": true,
4646
"minimum-stability": "dev",
4747
"scripts": {
48-
"check-quality-code": [
49-
"php-cs-fixer fix --dry-run --config=.php-cs-fixer.dist.php --allow-risky=yes -vvv",
50-
"phpcs --standard=phpcs.xml.dist -s",
51-
"phpmd lib text ./phpmd.lib.xml",
52-
"phpmd tests text ./phpmd.test.xml"
53-
],
54-
"phpcs": "phpcs --standard=phpcs.xml.dist -s",
55-
"phpcsfixer": "php-cs-fixer --config=.php-cs-fixer.dist.php fix --allow-risky=yes -vvv",
56-
"phpmd": [
57-
"phpmd lib text ./phpmd.lib.xml",
58-
"phpmd tests text ./phpmd.test.xml"
59-
],
6048
"test": [
6149
"phpunit --configuration phpunit.mysql5.7.xml",
6250
"phpunit --configuration phpunit.mysql8.0.xml",
@@ -68,7 +56,6 @@
6856
"phpunit --configuration phpunit.pgsql.xml --coverage-php .phpunit.cache/code-coverage/pgsql.cov",
6957
"phpcov merge --clover .phpunit.cache/code-coverage/clover.xml .phpunit.cache/code-coverage/"
7058
],
71-
"test-deprecation": "phpunit --configuration phpunit.deprecation.xml",
7259
"test-mysql5.7": "phpunit --configuration phpunit.mysql5.7.xml",
7360
"test-mysql8.0": "phpunit --configuration phpunit.mysql8.0.xml",
7461
"test-pgsql": "phpunit --configuration phpunit.pgsql.xml"

docs/Contributing.rst

+15-12
Original file line numberDiff line numberDiff line change
@@ -200,28 +200,31 @@ Quality of your code
200200

201201
Quality of code is auto-verified by php-cs-fixer, php code sniffer and php mess detector.
202202

203-
Before a commit, launch the quality script:
203+
Before a commit, install the quality scripts:
204204

205205
.. code-block:: bash
206+
docker exec spatial-php8 composer update --working-dir=quality/php-cs-fixer
207+
docker exec spatial-php8 composer update --working-dir=quality/php-code-sniffer
208+
docker exec spatial-php8 composer update --working-dir=quality/php-mess-detector
209+
docker exec spatial-php8 composer update --working-dir=quality/php-stan
206210
207-
docker spatial-php8 composer check-quality-code
208-
209-
You can launch PHPCS-FIXER to fix errors with:
211+
Then, you can check the quality of your code with:
210212

211213
.. code-block:: bash
212214
213-
docker spatial-php8 composer phpcsfixer
214-
215-
You can launch PHP Code Sniffer only with:
216-
.. code-block:: bash
215+
docker exec spatial-php8 quality/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=quality/php-cs-fixer/.php-cs-fixer.php --dry-run --allow-risky=yes
216+
docker exec spatial-php8 quality/php-stan/vendor/bin/phpstan analyse --configuration=quality/php-stan/php-stan.neon lib tests --error-format=table --no-progress --no-interaction --no-ansi --level=9 --memory-limit=256M
217+
docker exec spatial-php8 quality/php-mess-detector/vendor/bin/phpmd lib text quality/php-mess-detector/ruleset.xml
218+
docker exec spatial-php8 quality/php-mess-detector/vendor/bin/phpmd tests text quality/php-mess-detector/test-ruleset.xml
219+
docker exec spatial-php8 quality/php-code-sniffer/vendor/bin/phpcs --standard=quality/php-code-sniffer/phpcs.xml -s
217220
218-
docker spatial-php8 composer phpcs
219-
220-
You can launch PHP Mess Detector only with:
221+
You can launch PHPCS-FIXER to fix errors with:
221222

222223
.. code-block:: bash
223224
224-
docker spatial-php8 composer phpmd
225+
docker exec spatial-php8 quality/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=quality/php-cs-fixer/.php-cs-fixer.php --allow-risky=yes
226+
227+
Fix all errors, then commit your code.
225228

226229
.. _Common directory: https://github.com/longitude-one/doctrine-spatial/tree/master/lib/LongitudeOne/Spatial/ORM/Query/AST/Functions/Common
227230
.. _MySql directory: https://github.com/longitude-one/doctrine-spatial/tree/master/lib/LongitudeOne/Spatial/ORM/Query/AST/Functions/MySql

0 commit comments

Comments
 (0)