-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathphpcs.xml
33 lines (25 loc) · 944 Bytes
/
phpcs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0"?>
<ruleset name="Phantoman Standard">
<!-- @see https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset -->
<arg name="colors"/>
<arg value="sp"/>
<rule ref="PSR1" />
<rule ref="PSR12" />
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
<properties>
<property name="ignoreBlankLines" value="false"/>
</properties>
</rule>
<rule ref="Squiz.WhiteSpace.FunctionOpeningBraceSpace" />
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
<property name="spacing" value="1" />
<property name="ignoreNewlines" value="true" />
</properties>
</rule>
<!-- Dissallow assignments in conditions -->
<rule ref="Generic.CodeAnalysis.AssignmentInCondition">
<exclude name="Generic.CodeAnalysis.AssignmentInCondition.FoundInWhileCondition"/>
</rule>
<file>src</file>
</ruleset>