Skip to content

Commit

Permalink
[cs] Exclude some component assets from cs check
Browse files Browse the repository at this point in the history
Exclude assets which not follow PSR-0 standards
  • Loading branch information
Maks3w authored and ThaDafinser committed Mar 25, 2014
1 parent 98aed5b commit e300973
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion tests/.php_cs
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit e300973

Please sign in to comment.