Created
January 24, 2020 05:35
-
-
Save akiya64/b271c1bc8d6b3d834aa1a664cbea8925 to your computer and use it in GitHub Desktop.
WordPressテーマ用ルールセット
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ruleset name="WordPress" namespace="WordPress"> | |
<description>WordPress Coding Standards</description> | |
<autoload>./PHPCSAliases.php</autoload> | |
<rule ref="WordPress-Core"> | |
<exclude name="WordPress.Files.FileName"/> | |
</rule> | |
<rule ref="WordPress-Docs"/> | |
<rule ref="WordPress-Extra"/> | |
<rule ref="WordPress-VIP"> | |
<!-- wp_is_mobileがエラーになるため除外 jetpack_is_mobileが推奨 --> | |
<exclude name="WordPress.VIP.RestrictedFunctions.wp_is_mobile_wp_is_mobile"/> | |
<!-- get_page_by_titleがエラーになるため除外 wpcom_vip_get_page_by_titleが推奨 --> | |
<exclude name="WordPress.VIP.RestrictedFunctions.get_page_by_title_get_page_by_title"/> | |
</rule> | |
<rule ref="WordPress.PHP.DiscouragedPHPFunctions"> | |
<!-- From "Extra": The create_function group is excluded as WP core still supports PHP 5.2 and 5.2 does not support anonymous functions. --> | |
<!-- From "VIP": The obfuscation group is excluded as there are plenty of legitimate uses for the base64 functions. --> | |
<properties> | |
<property name="exclude" value="create_function,obfuscation"/> | |
</properties> | |
</rule> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment