forked from NeoRazorX/facturascripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
48 lines (40 loc) · 1.7 KB
/
phpcs.xml
File metadata and controls
48 lines (40 loc) · 1.7 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0"?>
<ruleset name="FacturaScripts">
<description>FacturaScripts coding standard based on PSR-12.</description>
<file>Core</file>
<file>Test</file>
<exclude-pattern>Core/Assets/*/*\.(inc|css|js)</exclude-pattern>
<!-- PSR-12 (supersedes PSR-1 and PSR-2) -->
<rule ref="PSR12">
<!-- Allow else if alongside elseif -->
<exclude name="PSR2.ControlStructures.ElseIfDeclaration.NotAllowed"/>
<!-- Allow multiple function arguments on a single line -->
<exclude name="PSR2.Methods.FunctionCallSignature.MultipleArguments"/>
<!-- Allow <?php immediately followed by docblock without blank line -->
<exclude name="PSR12.Files.FileHeader.SpacingAfterBlock"/>
</rule>
<!-- Disable line length checks -->
<rule ref="Generic.Files.LineLength.TooLong">
<severity>0</severity>
</rule>
<rule ref="Generic.Files.LineLength.MaxExceeded">
<severity>0</severity>
</rule>
<!-- Constant visibility: disable until all constants have explicit visibility -->
<rule ref="PSR12.Properties.ConstantVisibility">
<severity>0</severity>
</rule>
<!-- Concatenation: require spaces around the dot operator -->
<rule ref="Squiz.Strings.ConcatenationSpacing">
<properties>
<property name="spacing" value="1"/>
<property name="ignoreNewlines" value="true"/>
</properties>
</rule>
<!-- Inline comments must end with proper punctuation -->
<rule ref="PEAR.Commenting.InlineComment"/>
<!-- Test files can mix declarations and side effects -->
<rule ref="PSR1.Files.SideEffects">
<exclude-pattern>Test/*.php</exclude-pattern>
</rule>
</ruleset>