From 7c616b600b63b04a31baeb0ba1718cb33bb53b2e Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Fri, 26 Oct 2018 09:24:55 +0200 Subject: [PATCH] use pretty-ci instead of style-ci --- .gitignore | 1 + .php_cs.dist | 17 +++++++++++------ .styleci.yml | 14 -------------- 3 files changed, 12 insertions(+), 20 deletions(-) delete mode 100644 .styleci.yml diff --git a/.gitignore b/.gitignore index f0fabb7..8ce13f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /.php_cs +/.php_cs.cache /behat.yml /build/ /composer.lock diff --git a/.php_cs.dist b/.php_cs.dist index 23ba165..3879e77 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -1,13 +1,18 @@ in('src') + ->in('tests') +; +return PhpCsFixer\Config::create() + ->setRules([ + '@Symfony' => true, + 'array_syntax' => ['syntax' => 'short'], + ]) + ->setFinder($finder); diff --git a/.styleci.yml b/.styleci.yml deleted file mode 100644 index 5328b61..0000000 --- a/.styleci.yml +++ /dev/null @@ -1,14 +0,0 @@ -preset: symfony - -finder: - exclude: - - "spec" - path: - - "src" - - "tests" - -enabled: - - short_array_syntax - -disabled: - - phpdoc_annotation_without_dot # This is still buggy: https://github.com/symfony/symfony/pull/19198