mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2026-10-30 09:12:09 +00:00
Excluded checking of directory var from codesniffer
This commit is contained in:
1 parent
edc8a941af
commit
4a09ff55a8
2 files changed
+5
-2
No files matched your search
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1
|
cd "$(dirname "$(readlink -f "${0}")")/../docker-symfony/" || exit 1
|
||||||
docker-compose exec php php vendor/bin/php-cs-fixer fix .
|
docker-compose exec php php vendor/bin/php-cs-fixer fix
|
||||||
@@ -1,8 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
$finder = PhpCsFixer\Finder::create()
|
||||||
|
->exclude('var')
|
||||||
|
->in(__DIR__);
|
||||||
|
|
||||||
return PhpCsFixer\Config::create()
|
return PhpCsFixer\Config::create()
|
||||||
->setRules([
|
->setRules([
|
||||||
'@Symfony' => true,
|
'@Symfony' => true,
|
||||||
'array_syntax' => ['syntax' => 'short'],
|
'array_syntax' => ['syntax' => 'short'],
|
||||||
])
|
])->setFinder($finder)
|
||||||
;
|
;
|
||||||
Reference in new issue
Block a user