mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-18 06:11:48 +08:00
Adapt PHPCS ruleset
This commit is contained in:
parent
f76e2809de
commit
ff8fd8bb84
2 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
"name": "wp-cli/profile-command",
|
||||
"type": "wp-cli-package",
|
||||
"description": "Quickly identify what's slow with WordPress.",
|
||||
"homepage": "https://runcommand.io/wp/profile/",
|
||||
"homepage": "https://github.com/wp-cli/profile-command/",
|
||||
"license": "MIT",
|
||||
"authors": [],
|
||||
"require": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0"?>
|
||||
<ruleset name="WP-CLI-find">
|
||||
<ruleset name="WP-CLI-profile">
|
||||
<description>Custom ruleset for WP-CLI profile-command</description>
|
||||
|
||||
<!--
|
||||
|
@ -51,11 +51,11 @@
|
|||
</property>
|
||||
</properties>
|
||||
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase" />
|
||||
<exclude-pattern>*/inc/*.php$</exclude-pattern>
|
||||
<exclude-pattern>*/src/*.php$</exclude-pattern>
|
||||
</rule>
|
||||
|
||||
<rule ref="WordPress.PHP.NoSilencedErrors.Discouraged">
|
||||
<exclude-pattern>*/inc/class-profiler.php$</exclude-pattern>
|
||||
<exclude-pattern>*/src/class-profiler.php$</exclude-pattern>
|
||||
</rule>
|
||||
|
||||
</ruleset>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue