Changeset 56666
- Timestamp:
- 09/23/2023 10:56:24 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpcompat.xml.dist
r56475 r56666 3 3 <description>Apply PHP compatibility checks to all WordPress Core files</description> 4 4 5 <rule ref="PHPCompatibilityWP"/> 6 7 <!-- WordPress Core currently supports PHP 7.0+. --> 8 <config name="testVersion" value="7.0-"/> 5 <!-- 6 ############################################################################# 7 COMMAND LINE ARGUMENTS 8 https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset 9 ############################################################################# 10 --> 9 11 10 12 <!-- Only scan PHP files. --> … … 29 31 <arg value="ps"/> 30 32 33 <!-- 34 ############################################################################# 35 FILE SELECTION 36 Set which files will be subject to the scans executed using this ruleset. 37 ############################################################################# 38 --> 39 31 40 <!-- For now, only the files in src are scanned. --> 32 41 <file>./src/</file> … … 41 50 <exclude-pattern>/vendor/*</exclude-pattern> 42 51 43 <!-- Must-Use plugins. -->52 <!-- Exclude Must-Use plugins. --> 44 53 <exclude-pattern>/src/wp-content/mu-plugins/*</exclude-pattern> 45 54 46 <!-- Plugins. -->55 <!-- Exclude plugins. --> 47 56 <exclude-pattern>/src/wp-content/plugins/*</exclude-pattern> 48 57 49 <!-- Themes except the twenty* themes. -->58 <!-- Exclude themes except the twenty* themes. --> 50 59 <exclude-pattern>/src/wp-content/themes/(?!twenty)*</exclude-pattern> 51 60 … … 55 64 --> 56 65 <exclude-pattern>src/wp-includes/sodium_compat/lib/php72compat_const\.php$</exclude-pattern> 66 67 <!-- 68 ############################################################################# 69 SET UP THE RULESET 70 ############################################################################# 71 --> 72 73 <rule ref="PHPCompatibilityWP"/> 74 75 <!-- WordPress Core currently supports PHP 7.0+. --> 76 <config name="testVersion" value="7.0-"/> 77 78 <!-- 79 ############################################################################# 80 SELECTIVE EXCLUSIONS 81 Exclude specific files for specific sniffs and/or exclude sub-groups in sniffs. 82 ############################################################################# 83 --> 57 84 58 85 <rule ref="PHPCompatibility.FunctionUse.NewFunctions.sodium_crypto_sign_keypair_from_secretkey_and_publickeyFound"> … … 82 109 <exclude-pattern>/random_compat/random_bytes_mcrypt\.php$</exclude-pattern> 83 110 </rule> 111 84 112 </ruleset>
Note: See TracChangeset
for help on using the changeset viewer.