Skip to content

Commit

Permalink
update phpcs config
Browse files Browse the repository at this point in the history
  • Loading branch information
5t111111 committed Jan 7, 2024
1 parent ca504ea commit 7c94b42
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<ruleset name="Kodansha">
<description>Kodansha Coding Standards</description>
<ruleset name="WPStandard">
<description>WP Standard Coding Standards</description>

<!-- Scan all files in directory -->
<file>.</file>
Expand All @@ -17,6 +17,9 @@
<!-- Show sniff codes in all reports -->
<arg value="ns"/>

<!-- Use PSR-2 as a base -->
<rule ref="PSR2"/>
<!-- Use PSR-12 as a base -->
<rule ref="PSR12"/>

<!-- Custom Rules -->
<rule ref="Generic.Arrays.DisallowLongArraySyntax.Found"/>
</ruleset>

0 comments on commit 7c94b42

Please sign in to comment.