Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
Ignore some files/paths when running CS checks
Browse files Browse the repository at this point in the history
- Recent changes to php-cs-fixer (see
  https://github.com/fabpot/PHP-CS-Fixer/issues/422) have led to errors being
  raised that should not. This change to the php-cs-fixer configuration places
  several new paths into the "do not test" list. They will be re-instated when
  the issues are fixed.
  • Loading branch information
weierophinney committed Aug 4, 2014
1 parent 062656e commit adae579
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .php_cs
@@ -1,5 +1,6 @@
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->notPath('Zend/View/Stream.php')
->notPath('ZendTest/Code/Generator/TestAsset')
->notPath('ZendTest/Code/Reflection/FunctionReflectionTest.php')
->notPath('ZendTest/Code/Reflection/MethodReflectionTest.php')
Expand All @@ -8,6 +9,8 @@ $finder = Symfony\CS\Finder\DefaultFinder::create()
->notPath('ZendTest/Validator/_files')
->notPath('ZendTest/Loader/_files')
->notPath('ZendTest/Loader/TestAsset')
->notPath('demos')
->notPath('resources')
->filter(function (SplFileInfo $file) {
if (strstr($file->getPath(), 'compatibility')) {
return false;
Expand Down

0 comments on commit adae579

Please sign in to comment.