| 1 | <?xml version="1.0"?> |
|---|
| 2 | <ruleset name="WordPress Coding Standards"> |
|---|
| 3 | <description>Apply WordPress Coding Standards to all Core files</description> |
|---|
| 4 | |
|---|
| 5 | <rule ref="WordPress-Core" /> |
|---|
| 6 | |
|---|
| 7 | <arg name="extensions" value="php" /> |
|---|
| 8 | |
|---|
| 9 | <!-- Show sniff codes in all reports --> |
|---|
| 10 | <arg value="s" /> |
|---|
| 11 | |
|---|
| 12 | <file>.</file> |
|---|
| 13 | |
|---|
| 14 | <!-- Bug report: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/1017 --> |
|---|
| 15 | <rule ref="Squiz.PHP.EmbeddedPhp.SpacingBeforeClose"> |
|---|
| 16 | <exclude-pattern>/src/wp-content/themes/twentyeleven/comments.php</exclude-pattern> |
|---|
| 17 | <exclude-pattern>/src/wp-content/themes/twentyeleven/content-aside.php</exclude-pattern> |
|---|
| 18 | <exclude-pattern>/src/wp-content/themes/twentyeleven/content-gallery.php</exclude-pattern> |
|---|
| 19 | <exclude-pattern>/src/wp-content/themes/twentyeleven/content-image.php</exclude-pattern> |
|---|
| 20 | <exclude-pattern>/src/wp-content/themes/twentyeleven/content-link.php</exclude-pattern> |
|---|
| 21 | <exclude-pattern>/src/wp-content/themes/twentyeleven/content-quote.php</exclude-pattern> |
|---|
| 22 | <exclude-pattern>/src/wp-content/themes/twentyeleven/content-single.php</exclude-pattern> |
|---|
| 23 | <exclude-pattern>/src/wp-content/themes/twentyeleven/content-status.php</exclude-pattern> |
|---|
| 24 | <exclude-pattern>/src/wp-content/themes/twentyeleven/content.php</exclude-pattern> |
|---|
| 25 | <exclude-pattern>/src/wp-content/themes/twentyeleven/header.php</exclude-pattern> |
|---|
| 26 | <exclude-pattern>/src/wp-content/themes/twentyeleven/image.php</exclude-pattern> |
|---|
| 27 | <exclude-pattern>/src/wp-content/themes/twentyeleven/page.php</exclude-pattern> |
|---|
| 28 | <exclude-pattern>/src/wp-content/themes/twentyeleven/showcase.php</exclude-pattern> |
|---|
| 29 | <exclude-pattern>/src/wp-content/themes/twentyeleven/sidebar-page.php</exclude-pattern> |
|---|
| 30 | <exclude-pattern>/src/wp-content/themes/twentyeleven/sidebar.php</exclude-pattern> |
|---|
| 31 | <exclude-pattern>/src/wp-content/themes/twentyeleven/single.php</exclude-pattern> |
|---|
| 32 | <exclude-pattern>/src/wp-content/themes/twentyfifteen/comments.php</exclude-pattern> |
|---|
| 33 | <exclude-pattern>/src/wp-content/themes/twentyfourteen/comments.php</exclude-pattern> |
|---|
| 34 | <exclude-pattern>/src/wp-content/themes/twentyfourteen/image.php</exclude-pattern> |
|---|
| 35 | <exclude-pattern>/src/wp-content/themes/twentysixteen/comments.php</exclude-pattern> |
|---|
| 36 | <exclude-pattern>/src/wp-content/themes/twentysixteen/header.php</exclude-pattern> |
|---|
| 37 | <exclude-pattern>/src/wp-content/themes/twentyten/comments.php</exclude-pattern> |
|---|
| 38 | <exclude-pattern>/src/wp-content/themes/twentyten/loop-single.php</exclude-pattern> |
|---|
| 39 | <exclude-pattern>/src/wp-content/themes/twentyten/loop.php</exclude-pattern> |
|---|
| 40 | <exclude-pattern>/src/wp-content/themes/twentyten/sidebar.php</exclude-pattern> |
|---|
| 41 | <exclude-pattern>/src/wp-content/themes/twentythirteen/category.php</exclude-pattern> |
|---|
| 42 | <exclude-pattern>/src/wp-content/themes/twentythirteen/comments.php</exclude-pattern> |
|---|
| 43 | <exclude-pattern>/src/wp-content/themes/twentythirteen/content-aside.php</exclude-pattern> |
|---|
| 44 | <exclude-pattern>/src/wp-content/themes/twentythirteen/content-audio.php</exclude-pattern> |
|---|
| 45 | <exclude-pattern>/src/wp-content/themes/twentythirteen/content-chat.php</exclude-pattern> |
|---|
| 46 | <exclude-pattern>/src/wp-content/themes/twentythirteen/content-gallery.php</exclude-pattern> |
|---|
| 47 | <exclude-pattern>/src/wp-content/themes/twentythirteen/content-image.php</exclude-pattern> |
|---|
| 48 | <exclude-pattern>/src/wp-content/themes/twentythirteen/content-link.php</exclude-pattern> |
|---|
| 49 | <exclude-pattern>/src/wp-content/themes/twentythirteen/content-quote.php</exclude-pattern> |
|---|
| 50 | <exclude-pattern>/src/wp-content/themes/twentythirteen/content-video.php</exclude-pattern> |
|---|
| 51 | <exclude-pattern>/src/wp-content/themes/twentythirteen/content.php</exclude-pattern> |
|---|
| 52 | <exclude-pattern>/src/wp-content/themes/twentythirteen/image.php</exclude-pattern> |
|---|
| 53 | <exclude-pattern>/src/wp-content/themes/twentythirteen/tag.php</exclude-pattern> |
|---|
| 54 | <exclude-pattern>/src/wp-content/themes/twentytwelve/category.php</exclude-pattern> |
|---|
| 55 | <exclude-pattern>/src/wp-content/themes/twentytwelve/comments.php</exclude-pattern> |
|---|
| 56 | <exclude-pattern>/src/wp-content/themes/twentytwelve/content-aside.php</exclude-pattern> |
|---|
| 57 | <exclude-pattern>/src/wp-content/themes/twentytwelve/content-image.php</exclude-pattern> |
|---|
| 58 | <exclude-pattern>/src/wp-content/themes/twentytwelve/content-link.php</exclude-pattern> |
|---|
| 59 | <exclude-pattern>/src/wp-content/themes/twentytwelve/content-quote.php</exclude-pattern> |
|---|
| 60 | <exclude-pattern>/src/wp-content/themes/twentytwelve/content-status.php</exclude-pattern> |
|---|
| 61 | <exclude-pattern>/src/wp-content/themes/twentytwelve/content.php</exclude-pattern> |
|---|
| 62 | <exclude-pattern>/src/wp-content/themes/twentytwelve/image.php</exclude-pattern> |
|---|
| 63 | <exclude-pattern>/src/wp-content/themes/twentytwelve/index.php</exclude-pattern> |
|---|
| 64 | <exclude-pattern>/src/wp-content/themes/twentytwelve/page-templates/front-page.php</exclude-pattern> |
|---|
| 65 | <exclude-pattern>/src/wp-content/themes/twentytwelve/page-templates/full-width.php</exclude-pattern> |
|---|
| 66 | <exclude-pattern>/src/wp-content/themes/twentytwelve/page.php</exclude-pattern> |
|---|
| 67 | <exclude-pattern>/src/wp-content/themes/twentytwelve/single.php</exclude-pattern> |
|---|
| 68 | <exclude-pattern>/src/wp-content/themes/twentytwelve/tag.php</exclude-pattern> |
|---|
| 69 | <exclude-pattern>/src/wp-admin/custom-background.php</exclude-pattern> |
|---|
| 70 | <exclude-pattern>/src/wp-admin/edit-tag-form.php</exclude-pattern> |
|---|
| 71 | <exclude-pattern>/src/wp-admin/edit-tags.php</exclude-pattern> |
|---|
| 72 | <exclude-pattern>/src/wp-admin/includes/class-wp-posts-list-table.php</exclude-pattern> |
|---|
| 73 | <exclude-pattern>/src/wp-admin/includes/class-wp-press-this.php</exclude-pattern> |
|---|
| 74 | <exclude-pattern>/src/wp-admin/includes/dashboard.php</exclude-pattern> |
|---|
| 75 | <exclude-pattern>/src/wp-admin/includes/meta-boxes.php</exclude-pattern> |
|---|
| 76 | <exclude-pattern>/src/wp-admin/nav-menus.php</exclude-pattern> |
|---|
| 77 | <exclude-pattern>/src/wp-admin/network/site-new.php</exclude-pattern> |
|---|
| 78 | <exclude-pattern>/src/wp-admin/options-permalink.php</exclude-pattern> |
|---|
| 79 | <exclude-pattern>/src/wp-admin/options-writing.php</exclude-pattern> |
|---|
| 80 | <exclude-pattern>/src/wp-admin/user-new.php</exclude-pattern> |
|---|
| 81 | <exclude-pattern>/src/wp-admin/widgets.php</exclude-pattern> |
|---|
| 82 | <exclude-pattern>/src/wp-includes/feed-atom-comments.php</exclude-pattern> |
|---|
| 83 | <exclude-pattern>/src/wp-includes/feed-rss2-comments.php</exclude-pattern> |
|---|
| 84 | <exclude-pattern>/src/wp-includes/functions.php</exclude-pattern> |
|---|
| 85 | <exclude-pattern>/src/wp-includes/theme-compat/comments.php</exclude-pattern> |
|---|
| 86 | <exclude-pattern>/src/wp-includes/theme-compat/header.php</exclude-pattern> |
|---|
| 87 | <exclude-pattern>/src/wp-includes/theme.php</exclude-pattern> |
|---|
| 88 | <exclude-pattern>/src/wp-includes/widgets/class-wp-widget-media.php</exclude-pattern> |
|---|
| 89 | <exclude-pattern>/src/wp-signup.php</exclude-pattern> |
|---|
| 90 | </rule> |
|---|
| 91 | |
|---|
| 92 | <!-- Unknown bug --> |
|---|
| 93 | <exclude-pattern>/tests/phpunit/tests/functions/wpListUtil.php</exclude-pattern> |
|---|
| 94 | <exclude-pattern>/tests/phpunit/tests/walker.php</exclude-pattern> |
|---|
| 95 | |
|---|
| 96 | <rule ref="Squiz.Strings.DoubleQuoteUsage.NotRequired"> |
|---|
| 97 | <!-- Fixed in PHPCS 3.0: https://github.com/squizlabs/PHP_CodeSniffer/pull/1496 --> |
|---|
| 98 | <exclude-pattern>/tests/phpunit/tests/pomo/po.php</exclude-pattern> |
|---|
| 99 | </rule> |
|---|
| 100 | |
|---|
| 101 | <exclude-pattern>/build/*</exclude-pattern> |
|---|
| 102 | <exclude-pattern>/node_modules/*</exclude-pattern> |
|---|
| 103 | |
|---|
| 104 | <exclude-pattern>/src/wp-content/plugins/*</exclude-pattern> |
|---|
| 105 | |
|---|
| 106 | <exclude-pattern>/src/wp-admin/includes/class-ftp*</exclude-pattern> |
|---|
| 107 | <exclude-pattern>/src/wp-admin/includes/class-pclzip.php</exclude-pattern> |
|---|
| 108 | <exclude-pattern>/src/wp-admin/includes/deprecated.php</exclude-pattern> |
|---|
| 109 | <exclude-pattern>/src/wp-admin/includes/ms-deprecated.php</exclude-pattern> |
|---|
| 110 | |
|---|
| 111 | <exclude-pattern>/src/wp-includes/atomlib.php</exclude-pattern> |
|---|
| 112 | <exclude-pattern>/src/wp-includes/class-IXR.php</exclude-pattern> |
|---|
| 113 | <exclude-pattern>/src/wp-includes/class-json.php</exclude-pattern> |
|---|
| 114 | <exclude-pattern>/src/wp-includes/class-phpass.php</exclude-pattern> |
|---|
| 115 | <exclude-pattern>/src/wp-includes/class-phpmailer.php</exclude-pattern> |
|---|
| 116 | <exclude-pattern>/src/wp-includes/class-pop3.php</exclude-pattern> |
|---|
| 117 | <exclude-pattern>/src/wp-includes/class-requests.php</exclude-pattern> |
|---|
| 118 | <exclude-pattern>/src/wp-includes/class-simplepie.php</exclude-pattern> |
|---|
| 119 | <exclude-pattern>/src/wp-includes/class-smtp.php</exclude-pattern> |
|---|
| 120 | <exclude-pattern>/src/wp-includes/class-snoopy.php</exclude-pattern> |
|---|
| 121 | <exclude-pattern>/src/wp-includes/deprecated.php</exclude-pattern> |
|---|
| 122 | <exclude-pattern>/src/wp-includes/ms-deprecated.php</exclude-pattern> |
|---|
| 123 | <exclude-pattern>/src/wp-includes/pluggable-deprecated.php</exclude-pattern> |
|---|
| 124 | <exclude-pattern>/src/wp-includes/rss.php</exclude-pattern> |
|---|
| 125 | |
|---|
| 126 | <exclude-pattern>/src/wp-includes/ID3/*</exclude-pattern> |
|---|
| 127 | <exclude-pattern>/src/wp-includes/IXR/*</exclude-pattern> |
|---|
| 128 | <exclude-pattern>/src/wp-includes/random_compat/*</exclude-pattern> |
|---|
| 129 | <exclude-pattern>/src/wp-includes/Requests/*</exclude-pattern> |
|---|
| 130 | <exclude-pattern>/src/wp-includes/SimplePie/*</exclude-pattern> |
|---|
| 131 | <exclude-pattern>/src/wp-includes/Text/*</exclude-pattern> |
|---|
| 132 | |
|---|
| 133 | <exclude-pattern>/tests/phpunit/build*</exclude-pattern> |
|---|
| 134 | <exclude-pattern>/tests/phpunit/data/plugins/wordpress-importer*</exclude-pattern> |
|---|
| 135 | <exclude-pattern>/tests/phpunit/data/.trac-ticket-cache*</exclude-pattern> |
|---|
| 136 | </ruleset> |
|---|