1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00

adding editorconfig that seems to match the php files (#163)

* adding editorconfig that seems to match the php files

* adding additional check covered by travis

* trailing line
This commit is contained in:
SignpostMarv 2017-06-26 05:22:05 +01:00 committed by Matthew Brown
parent bc35f88859
commit 07bab52aca
3 changed files with 11 additions and 1 deletions

9
.editorconfig Normal file
View File

@ -0,0 +1,9 @@
root = true
[*.php]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

View File

@ -3,7 +3,7 @@ $finder = array_reduce(
[
__DIR__ . '/src/',
__DIR__ . '/bin/',
__DIR__ . '/tests/'
__DIR__ . '/tests/',
],
function (PhpCsFixer\Finder $finder, $dir) {
return $finder->in($dir);

View File

@ -35,6 +35,7 @@
"standards": "php ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes",
"tests": [
"php ./vendor/squizlabs/php_codesniffer/bin/phpcs",
"php ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes --dry-run .php_cs.dist",
"php ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --verbose --allow-risky=yes --dry-run",
"phpunit"
]