Skip to content

Commit cf9b70b

Browse files
committed
new set of rules
1 parent 264a083 commit cf9b70b

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

codeat.xml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,17 @@
161161
<property name="text_domain" type="array" value="glossary-by-codeat,woo-fiscalita-italiana,genesis" />
162162
</properties>
163163
</rule>
164-
</ruleset>
164+
<rule ref="SlevomatCodingStandard">
165+
<exclude name="SlevomatCodingStandard.TypeHints.DeclareStrictTypes" />
166+
<exclude name="SlevomatCodingStandard.Whitespaces.DuplicateSpaces" />
167+
<exclude name="SlevomatCodingStandard.Files.TypeNameMatchesFileName" />
168+
<exclude name="SlevomatCodingStandard.Files.LineLength.LineTooLong" />
169+
<exclude name="SlevomatCodingStandard.ControlStructures.DisallowEmpty.DisallowedEmpty" />
170+
<exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName" />
171+
<exclude name="SlevomatCodingStandard.Namespaces.UseOnlyWhitelistedNamespaces.NonFullyQualified" />
172+
<exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedGlobalConstants.NonFullyQualified" />
173+
<exclude name="SlevomatCodingStandard.Numbers.RequireNumericLiteralSeparator.RequiredNumericLiteralSeparator" />
174+
<exclude name="SlevomatCodingStandard.Commenting.DisallowCommentAfterCode.DisallowedCommentAfterCode" />
175+
<exclude name="SlevomatCodingStandard.ControlStructures.NewWithParentheses.MissingParentheses" />
176+
</rule>
177+
</ruleset>

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CodeatCS is a project with rulsetes used for the Codeat plugins/themes developm
66

77
Set of [PHP Code Sniffer](https://github.com/squizlabs/PHP_CodeSniffer) rules.
88

9-
Based on [WordPress Coding Standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) project, implementing official [WordPress PHP Coding Standards](https://make.wordpress.org/core/handbook/coding-standards/php/).
9+
Based on [WordPress Coding Standards](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) project, implementing official [WordPress PHP Coding Standards](https://make.wordpress.org/core/handbook/coding-standards/php/) and also [Slevomat Coding Standard}(https://github.com/slevomat/coding-standard).
1010

1111
### How to disable rules
1212

0 commit comments

Comments
 (0)