mirror of
https://github.com/Respect/Validation.git
synced 2024-06-04 14:52:17 +02:00
Remove PHP-CS-Fixer
It is not the first time that after a PHP-CS-Fixer upgrade our build fails. Also, I've seemed a couple of files that have a wrong coding standard, but PHP-CS-Fixer does not indicate failure for them. This commit will remove the library as a dependency. I plan to introduce PHP_CodeSniffer as soon as possible. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
This commit is contained in:
parent
fbaf78fc39
commit
ffec95acda
|
@ -5,7 +5,6 @@ language: php
|
|||
cache:
|
||||
directories:
|
||||
- $HOME/.composer/cache
|
||||
- $HOME/.php-cs-fixer
|
||||
|
||||
matrix:
|
||||
include:
|
||||
|
@ -35,10 +34,6 @@ script:
|
|||
if [[ "${TRAVIS_PHP_VERSION}" == "7.2" ]]; then
|
||||
vendor/bin/docheader check library tests
|
||||
fi
|
||||
- |
|
||||
if [[ "${TRAVIS_PHP_VERSION}" == "7.2" ]]; then
|
||||
vendor/bin/php-cs-fixer --diff --dry-run --verbose fix
|
||||
fi
|
||||
- |
|
||||
if [[ "${TRAVIS_PHP_VERSION}" == "7.2" ]]; then
|
||||
vendor/bin/phpstan analyze
|
||||
|
|
|
@ -250,20 +250,6 @@ No test should fail.
|
|||
You can tweak the PHPUnit's settings by copying `phpunit.xml.dist` to `phpunit.xml`
|
||||
and changing it according to your needs.
|
||||
|
||||
## Coding style and standards
|
||||
|
||||
We follow the [PSR-2][] coding style and [PSR-4][] autoloading standard.
|
||||
|
||||
There are some preferences regarding code style which you can easily adhere to
|
||||
by using [php-cs-fixer][].
|
||||
|
||||
This will format all PHP files consistently using the preferences of this
|
||||
project.
|
||||
|
||||
```sh
|
||||
$ vendor/bin/php-cs-fixer fix
|
||||
```
|
||||
|
||||
***
|
||||
See also:
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
},
|
||||
"require-dev": {
|
||||
"egulias/email-validator": "^2.0",
|
||||
"friendsofphp/php-cs-fixer": "^2.8",
|
||||
"malukenho/docheader": "^0.1.4",
|
||||
"mikey179/vfsStream": "^1.6",
|
||||
"phpstan/phpstan": "^0.10.3",
|
||||
|
@ -32,8 +31,7 @@
|
|||
"ext-mbstring": "Multibyte String Functions",
|
||||
"egulias/email-validator": "Strict (RFC compliant) email validation",
|
||||
"symfony/validator": "Use Symfony validator through Respect\\Validation",
|
||||
"zendframework/zend-validator": "Use Zend Framework validator through Respect\\Validation",
|
||||
"friendsofphp/php-cs-fixer": "Fix PSR2 and other coding style issues"
|
||||
"zendframework/zend-validator": "Use Zend Framework validator through Respect\\Validation"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
@ -53,14 +51,12 @@
|
|||
},
|
||||
"scripts": {
|
||||
"docheader": "docheader check library/ tests/",
|
||||
"php-cs-fixer": "php-cs-fixer fix",
|
||||
"phpstan": "phpstan analyze",
|
||||
"phpunit": "phpunit",
|
||||
"phpunit-integration": "phpunit --testsuite=integration",
|
||||
"phpunit-unit": "phpunit --testsuite=unit",
|
||||
"qa": [
|
||||
"@docheader",
|
||||
"@php-cs-fixer",
|
||||
"@phpstan",
|
||||
"@phpunit"
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue