Adapt PHPCS ruleset

This commit is contained in:
Alain Schlesser 2021-04-19 12:46:47 +01:00
parent f76e2809de
commit ff8fd8bb84
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
"name": "wp-cli/profile-command", "name": "wp-cli/profile-command",
"type": "wp-cli-package", "type": "wp-cli-package",
"description": "Quickly identify what's slow with WordPress.", "description": "Quickly identify what's slow with WordPress.",
"homepage": "https://runcommand.io/wp/profile/", "homepage": "https://github.com/wp-cli/profile-command/",
"license": "MIT", "license": "MIT",
"authors": [], "authors": [],
"require": { "require": {

View file

@ -1,5 +1,5 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset name="WP-CLI-find"> <ruleset name="WP-CLI-profile">
<description>Custom ruleset for WP-CLI profile-command</description> <description>Custom ruleset for WP-CLI profile-command</description>
<!-- <!--
@ -51,11 +51,11 @@
</property> </property>
</properties> </properties>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" /> <exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
<exclude-pattern>*/inc/*.php$</exclude-pattern> <exclude-pattern>*/src/*.php$</exclude-pattern>
</rule> </rule>
<rule ref="WordPress.PHP.NoSilencedErrors.Discouraged"> <rule ref="WordPress.PHP.NoSilencedErrors.Discouraged">
<exclude-pattern>*/inc/class-profiler.php$</exclude-pattern> <exclude-pattern>*/src/class-profiler.php$</exclude-pattern>
</rule> </rule>
</ruleset> </ruleset>