Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[cs] Exclude some component assets from cs check

Exclude assets which not follow PSR-0 standards
  • Loading branch information...
commit 487715296da3e2899ff5172115883ffc4f94bd58 1 parent e530990
Maks3w Maks3w authored
Showing with 8 additions and 2 deletions.
  1. +4 −1 .php_cs
  2. +4 −1 tests/.php_cs
5 .php_cs
View
@@ -3,7 +3,10 @@ $finder = Symfony\CS\Finder\DefaultFinder::create()
->notName('TestSampleClass10.php')
->exclude('demos')
->exclude('resources')
- ->exclude('Class.php')
+ ->notPath('tests/ZendTest/Code/TestAsset')
+ ->notPath('tests/ZendTest/Validator/_files')
+ ->notPath('tests/ZendTest/Loader/_files')
+ ->notPath('tests/ZendTest/Loader/TestAsset')
->filter(function (SplFileInfo $file) {
if (strstr($file->getPath(), 'compatibility')) {
return false;
5 tests/.php_cs
View
@@ -1,7 +1,10 @@
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->notName('TestSampleClass10.php')
- ->notName('Class.php')
+ ->notPath('ZendTest/Code/TestAsset')
+ ->notPath('ZendTest/Validator/_files')
+ ->notPath('ZendTest/Loader/_files')
+ ->notPath('ZendTest/Loader/TestAsset')
->in(__DIR__);
return Symfony\CS\Config\Config::create()
->finder($finder);
Please sign in to comment.
Something went wrong with that request. Please try again.