Server : LiteSpeed System : Linux in-mum-web1333.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u141265441 ( 141265441) PHP Version : 8.4.3 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail Directory : /proc/self/root/opt/.wp-cli/packages/vendor/wp-cli/extension-command/ |
<?xml version="1.0"?> <ruleset name="WP-CLI-extension"> <description>Custom ruleset for WP-CLI extension-command</description> <!-- ############################################################################# COMMAND LINE ARGUMENTS For help understanding this file: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml For help using PHPCS: https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage ############################################################################# --> <!-- What to scan. --> <file>.</file> <!-- Show progress. --> <arg value="p"/> <!-- Strip the filepaths down to the relevant bit. --> <arg name="basepath" value="./"/> <!-- Check up to 8 files simultaneously. --> <arg name="parallel" value="8"/> <!-- ############################################################################# USE THE WP_CLI_CS RULESET ############################################################################# --> <rule ref="WP_CLI_CS"/> <!-- ############################################################################# PROJECT SPECIFIC CONFIGURATION FOR SNIFFS ############################################################################# --> <!-- For help understanding the `testVersion` configuration setting: https://github.com/PHPCompatibility/PHPCompatibility#sniffing-your-code-for-compatibility-with-specific-php-versions --> <config name="testVersion" value="5.6-"/> <!-- Verify that everything in the global namespace is either namespaced or prefixed. See: https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#naming-conventions-prefix-everything-in-the-global-namespace --> <rule ref="WordPress.NamingConventions.PrefixAllGlobals"> <properties> <property name="prefixes" type="array"> <element value="WP_CLI\Extension"/><!-- Namespaces. --> <element value="wpcli_extension"/><!-- Global variables and such. --> </property> </properties> </rule> <!-- Exclude existing classes from the prefix rule as it would break BC to prefix them now. --> <rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound"> <exclude-pattern>*/src/(Plugin_(AutoUpdates_)?|Theme_(Mod_|AutoUpdates_)?)Command\.php$</exclude-pattern> </rule> <rule ref="WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedNamespaceFound"> <exclude-pattern>*/src/WP_CLI/Fetchers/(Plugin|Theme)\.php$</exclude-pattern> <exclude-pattern>*/src/WP_CLI/CommandWithUpgrade\.php$</exclude-pattern> <exclude-pattern>*/src/WP_CLI/(CommandWith|DestructivePlugin|DestructiveTheme)Upgrader\.php$</exclude-pattern> <exclude-pattern>*/src/WP_CLI/Parse(Plugin|Theme)NameInput\.php$</exclude-pattern> </rule> <!-- Exclude classes from UselessOverridingMethod sniff as the method is used for generating docs. --> <rule ref="Generic.CodeAnalysis.UselessOverridingMethod.Found"> <exclude-pattern>*/src/(Plugin_|Theme_(Mod_)?)Command\.php$</exclude-pattern> </rule> </ruleset>