2 $finder = Symfony\CS\Finder\DefaultFinder::create()
3 ->notPath('Zend/View/Stream.php')
4 ->notPath('ZendTest/Code/Generator/TestAsset')
5 ->notPath('ZendTest/Code/Reflection/FunctionReflectionTest.php')
6 ->notPath('ZendTest/Code/Reflection/MethodReflectionTest.php')
7 ->notPath('ZendTest/Code/Reflection/TestAsset')
8 ->notPath('ZendTest/Code/TestAsset')
9 ->notPath('ZendTest/Validator/_files')
10 ->notPath('ZendTest/Loader/_files')
11 ->notPath('ZendTest/Loader/TestAsset')
13 ->notPath('resources')
14 // Following are necessary when you use `parallel` or specify a path
15 // from the project root.
16 ->notPath('Stream.php')
17 ->notPath('Generator/TestAsset')
18 ->notPath('Reflection/FunctionReflectionTest.php')
19 ->notPath('Reflection/MethodReflectionTest.php')
20 ->notPath('Reflection/TestAsset')
21 ->notPath('TestAsset')
23 ->filter(function (SplFileInfo $file) {
24 if (strstr($file->getPath(), 'compatibility')) {
28 $config = Symfony\CS\Config\Config::create();
33 'duplicate_semicolon',
38 'function_call_space',
39 'function_declaration',
42 'line_after_namespace',
44 'lowercase_constants',
48 'method_argument_space',
52 'remove_lines_between_uses',
53 'single_line_after_imports',
55 'standardize_not_equal',
62 $config->finder($finder);