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:
parent
bc35f88859
commit
07bab52aca
9
.editorconfig
Normal file
9
.editorconfig
Normal 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
|
@ -3,7 +3,7 @@ $finder = array_reduce(
|
||||
[
|
||||
__DIR__ . '/src/',
|
||||
__DIR__ . '/bin/',
|
||||
__DIR__ . '/tests/'
|
||||
__DIR__ . '/tests/',
|
||||
],
|
||||
function (PhpCsFixer\Finder $finder, $dir) {
|
||||
return $finder->in($dir);
|
||||
|
@ -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"
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user