-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphpcs.xml
More file actions
48 lines (43 loc) · 1.92 KB
/
Copy pathphpcs.xml
File metadata and controls
48 lines (43 loc) · 1.92 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="Braintacle">
<arg name="extensions" value="php" />
<arg name="parallel" value="4" />
<arg value="s" />
<file>development/</file>
<file>module/</file>
<file>public/</file>
<file>src/</file>
<file>tests/</file>
<file>migrations-db.php</file>
<!--
New code is formatted as PER-CS 2.0 which supersedes, but is partially
backward incompatible with PSR-12. PHPCS does not incorporate the new
standard yet. Apply PSR-12 and add extra rules where necessary.
-->
<rule ref="PSR12">
<!--
Standards do not require uppercase constant names, and new code does not
declare constants uppercase.
-->
<exclude name="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase" />
<exclude name="Generic.NamingConventions.UpperCaseConstantName.ConstantNotUpperCase" />
<!-- New standard does not use space before anonymous class constructor arguments. -->
<exclude name="PSR12.Classes.AnonClassDeclaration.SpaceAfterKeyword" />
<!--
"Closing brace must be on a line by itself" and "Opening brace of a
class must be on the line after the definition" no longer apply to empty
class and method bodies, but cannot be applied selectively.
https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/566
-->
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" />
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore" />
<exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine" />
</rule>
<!-- Relax some rules for legacy code. -->
<rule ref="PSR12.Properties.ConstantVisibility.NotFound">
<exclude-pattern>/module/</exclude-pattern>
</rule>
<rule ref="PSR2.Classes.PropertyDeclaration.Underscore">
<exclude-pattern>/module/</exclude-pattern>
</rule>
</ruleset>