File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 28
28
<rule ref =" WordPress-Core" >
29
29
<exclude name =" WordPress.Files.FileName.NotHyphenatedLowercase" />
30
30
<exclude name =" WordPress.Files.FileName.InvalidClassFileName" />
31
- <exclude name =" Generic.Arrays.DisallowShortArraySyntax" />
32
- <exclude name =" WordPress.PHP.DisallowShortTernary" />
31
+ <exclude name =" Universal.Arrays.DisallowShortArraySyntax" />
32
+ <exclude name =" Universal.Operators.DisallowShortTernary" />
33
+ <exclude name =" Universal.Operators.DisallowStandalonePostIncrementDecrement" />
33
34
</rule >
34
35
35
36
<rule ref =" WordPress-Docs" >
90
91
<property name =" exclude" type =" array" >
91
92
<!-- Allow the use of filesystem functions. -->
92
93
<element value =" file_get_contents" />
93
- <element value =" file_system_read" />
94
+ <element value =" file_system_operations" />
95
+ <element value =" unlink" />
96
+ <element value =" rename" />
94
97
<!-- wp_json_encode() is nowadays only a simple wrapper for json_encode(). -->
95
98
<element value =" json_encode" />
96
99
</property >
Original file line number Diff line number Diff line change 16
16
"phpcompatibility/phpcompatibility-wp" : " 2.1.4" ,
17
17
"sirbrillig/phpcs-variable-analysis" : " 2.11.17" ,
18
18
"slevomat/coding-standard" : " 8.13.4" ,
19
- "wp-coding-standards/wpcs" : " 2. 3.0"
19
+ "wp-coding-standards/wpcs" : " 3.0.1 "
20
20
},
21
21
"suggest" : {
22
22
"dealerdirect/phpcodesniffer-composer-installer" : " Automatically adds this package's ruleset to the installed_paths option of PHP_CodeSniffer"
You can’t perform that action at this time.
0 commit comments