|
| 1 | +<?php |
| 2 | + |
| 3 | +/** |
| 4 | + * This configuration will be read and overlaid on top of the |
| 5 | + * default configuration. Command-line arguments will be applied |
| 6 | + * after this file is read. |
| 7 | + * |
| 8 | + * @file |
| 9 | + */ |
| 10 | + |
| 11 | +declare(strict_types=1); |
| 12 | + |
| 13 | +return [ |
| 14 | + 'target_php_version' => null, |
| 15 | + |
| 16 | + // A list of directories that should be parsed for class and |
| 17 | + // method information. After excluding the directories |
| 18 | + // defined in exclude_analysis_directory_list, the remaining |
| 19 | + // files will be statically analyzed for errors. |
| 20 | + // |
| 21 | + // Thus, both first-party and third-party code being used by |
| 22 | + // your application should be included in this list. |
| 23 | + 'directory_list' => [ |
| 24 | + 'src/', |
| 25 | + 'vendor/', |
| 26 | + ], |
| 27 | + |
| 28 | + // A regex used to match every file name that you want to |
| 29 | + // exclude from parsing. Actual value will exclude every |
| 30 | + // "test", "tests", "Test" and "Tests" folders found in |
| 31 | + // "vendor/" directory. |
| 32 | + 'exclude_file_regex' => '@^vendor/.*/(tests?|Tests?)/@', |
| 33 | + |
| 34 | + // A directory list that defines files that will be excluded |
| 35 | + // from static analysis, but whose class and method |
| 36 | + // information should be included. |
| 37 | + // |
| 38 | + // Generally, you'll want to include the directories for |
| 39 | + // third-party code (such as "vendor/") in this list. |
| 40 | + // |
| 41 | + // n.b.: If you'd like to parse but not analyze 3rd |
| 42 | + // party code, directories containing that code |
| 43 | + // should be added to both the `directory_list` |
| 44 | + // and `exclude_analysis_directory_list` arrays. |
| 45 | + 'exclude_analysis_directory_list' => [ |
| 46 | + 'vendor/', |
| 47 | + ], |
| 48 | +]; |
0 commit comments