Skip to content

Commit 2416e52

Browse files
committed
update
1 parent be786d3 commit 2416e52

File tree

2 files changed

+37
-44
lines changed

2 files changed

+37
-44
lines changed

phpci.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

phpcs.xml

Lines changed: 37 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,40 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--suppress XmlUnboundNsPrefix, XmlUnboundNsPrefix -->
33
<ruleset name="php-diff">
4-
<description>overview</description>
5-
<rule ref="Generic.Classes.DuplicateClassName"/>
6-
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
7-
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/>
8-
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/>
9-
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
10-
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/>
11-
<rule ref="Generic.Functions.CallTimePassByReference"/>
12-
<rule ref="Generic.Metrics.CyclomaticComplexity"/>
13-
<rule ref="Generic.PHP.DeprecatedFunctions"/>
14-
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
15-
<rule ref="Generic.PHP.LowerCaseConstant"/>
16-
<rule ref="Generic">
17-
<exclude name="Generic.WhiteSpace.DisallowTabIndent.TabsUsed"/>
18-
<exclude name="Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed"/>
19-
</rule>
20-
21-
<rule ref="Squiz.PHP.Eval"/>
22-
<rule ref="Squiz.PHP.LowercasePHPFunctions"/>
23-
<rule ref="Squiz.PHP.NonExecutableCode"/>
24-
25-
<rule ref="PSR1">
26-
<exclude name="PSR1.Files.SideEffects"/>
27-
</rule>
28-
</ruleset>
4+
<description>some rules</description>
5+
<rule ref="Generic.CodeAnalysis.EmptyStatement"/>
6+
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/>
7+
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
8+
<rule ref="Generic.Commenting.Todo"/>
9+
<rule ref="Generic.Commenting.Fixme"/>
10+
<rule ref="Generic.ControlStructures.InlineControlStructure">
11+
<properties>
12+
<property name="error" value="false"/>
13+
</properties>
14+
</rule>
15+
<rule ref="Generic.Files.ByteOrderMark"/>
16+
<rule ref="Generic.Formatting.DisallowMultipleStatements"/>
17+
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
18+
<rule ref="Generic.Metrics.CyclomaticComplexity"/>
19+
<rule ref="Generic.NamingConventions.ConstructorName"/>
20+
<rule ref="Generic.PHP.DeprecatedFunctions"/>
21+
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
22+
<rule ref="PSR2.ControlStructures.ControlStructureSpacing"/>
23+
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/>
24+
<rule ref="PSR2.Files.EndFileNewline"/>
25+
<rule ref="PSR2.Namespaces.NamespaceDeclaration"/>
26+
<rule ref="PSR2.Namespaces.UseDeclaration"/>
27+
<rule ref="Squiz.WhiteSpace.FunctionSpacing">
28+
<properties>
29+
<property name="spacing" value="1"/>
30+
</properties>
31+
</rule>
32+
<rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/>
33+
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
34+
<rule ref="Squiz.WhiteSpace.MemberVarSpacing"/>
35+
<rule ref="Squiz.WhiteSpace.ObjectOperatorSpacing"/>
36+
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/>
37+
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace"/>
38+
<rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing"/>
39+
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
40+
</ruleset>

0 commit comments

Comments
 (0)