|
2 | 2 |
|
3 | 3 | $ignoreErrors = []; |
4 | 4 | $ignoreErrors[] = [ |
5 | | - // identifier: return.missing |
6 | 5 | 'message' => '#^Method WP_Filesystem_SSH2\\:\\:touch\\(\\) should return bool but return statement is missing\\.$#', |
| 6 | + 'identifier' => 'return.missing', |
7 | 7 | 'count' => 1, |
8 | 8 | 'path' => __DIR__ . '/../../../src/wp-admin/includes/class-wp-filesystem-ssh2.php', |
9 | 9 | ]; |
10 | 10 | $ignoreErrors[] = [ |
11 | | - // identifier: class.notFound |
12 | 11 | 'message' => '#^Instantiated class WP_Press_This_Plugin not found\\.$#', |
| 12 | + 'identifier' => 'class.notFound', |
| 13 | + 'count' => 1, |
| 14 | + 'path' => __DIR__ . '/../../../src/wp-admin/press-this.php', |
| 15 | +]; |
| 16 | +$ignoreErrors[] = [ |
| 17 | + 'message' => '#^Path in include\\(\\) "/press\\-this/class\\-wp\\-press\\-this\\-plugin\\.php" is not a file or it does not exist\\.$#', |
| 18 | + 'identifier' => 'include.fileNotFound', |
13 | 19 | 'count' => 1, |
14 | 20 | 'path' => __DIR__ . '/../../../src/wp-admin/press-this.php', |
15 | 21 | ]; |
16 | 22 | $ignoreErrors[] = [ |
17 | | - // identifier: return.missing |
18 | 23 | 'message' => '#^Method WP_Customize_Background_Image_Setting\\:\\:update\\(\\) should return bool but return statement is missing\\.$#', |
| 24 | + 'identifier' => 'return.missing', |
19 | 25 | 'count' => 1, |
20 | 26 | 'path' => __DIR__ . '/../../../src/wp-includes/customize/class-wp-customize-background-image-setting.php', |
21 | 27 | ]; |
22 | 28 | $ignoreErrors[] = [ |
23 | | - // identifier: return.missing |
24 | 29 | 'message' => '#^Method WP_Customize_Filter_Setting\\:\\:update\\(\\) should return bool but return statement is missing\\.$#', |
| 30 | + 'identifier' => 'return.missing', |
25 | 31 | 'count' => 1, |
26 | 32 | 'path' => __DIR__ . '/../../../src/wp-includes/customize/class-wp-customize-filter-setting.php', |
27 | 33 | ]; |
28 | 34 | $ignoreErrors[] = [ |
29 | | - // identifier: return.missing |
30 | 35 | 'message' => '#^Method WP_Customize_Header_Image_Setting\\:\\:update\\(\\) should return bool but return statement is missing\\.$#', |
31 | | - 'count' => 1, |
| 36 | + 'identifier' => 'return.missing', |
| 37 | + 'count' => 2, |
32 | 38 | 'path' => __DIR__ . '/../../../src/wp-includes/customize/class-wp-customize-header-image-setting.php', |
33 | 39 | ]; |
34 | 40 | $ignoreErrors[] = [ |
35 | | - // identifier: class.notFound |
36 | 41 | 'message' => '#^Class GdImage not found\\.$#', |
| 42 | + 'identifier' => 'class.notFound', |
37 | 43 | 'count' => 1, |
38 | 44 | 'path' => __DIR__ . '/../../../src/wp-includes/media.php', |
39 | 45 | ]; |
40 | 46 | $ignoreErrors[] = [ |
41 | | - // identifier: new.static |
42 | 47 | 'message' => '#^Unsafe usage of new static\\(\\)\\.$#', |
| 48 | + 'identifier' => 'new.static', |
43 | 49 | 'count' => 1, |
44 | 50 | 'path' => __DIR__ . '/../../../src/wp-includes/style-engine/class-wp-style-engine-css-rules-store.php', |
45 | 51 | ]; |
46 | 52 | $ignoreErrors[] = [ |
47 | | - // identifier: variable.undefined |
48 | 53 | 'message' => '#^Undefined variable\\: \\$s$#', |
| 54 | + 'identifier' => 'variable.undefined', |
49 | 55 | 'count' => 1, |
50 | 56 | 'path' => __DIR__ . '/../../../src/wp-includes/template.php', |
51 | 57 | ]; |
|
0 commit comments