This repository was archived by the owner on May 25, 2023. It is now read-only.
File tree 1 file changed +5
-36
lines changed
1 file changed +5
-36
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
- <ruleset name =" PHP_CodeSniffer" >
2
+ <ruleset xmlns : xsi = " http://www.w3.org/2001/XMLSchema-instance " name =" PHP_CodeSniffer" >
3
3
<description >The coding standard for posthog-php project.</description >
4
4
5
- <file >./ lib/ </file >
6
- <file >./ test/ </file >
5
+ <file >lib</file >
6
+ <file >test</file >
7
7
8
- <arg name =" tab-width" value =" 2" />
9
- <rule ref =" PSR2" >
10
- <exclude name =" Generic.WhiteSpace.DisallowTabIndent" />
11
- <exclude name =" PSR1.Files.SideEffects" />
12
- <exclude name =" PSR1.Classes.ClassDeclaration.MissingNamespace" />
13
- <exclude name =" PSR1.Classes.ClassDeclaration.MultipleClasses" />
14
- <!-- Enable opening braces can be placed at the same line of class definition -->
15
- <exclude name =" PSR2.Classes.ClassDeclaration.OpenBraceNewLine" />
16
- <!-- Disable camel caps classname -->
17
- <exclude name =" Squiz.Classes.ValidClassName.NotCamelCaps" />
18
- <!-- Enable opening braces can be placed at the same line of function definition -->
19
- <exclude name =" Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine" />
20
- </rule >
21
-
22
- <!-- Set indent size to 2 -->
23
- <rule ref =" Generic.WhiteSpace.ScopeIndent" >
24
- <properties >
25
- <property name =" indent" value =" 2" />
26
- <property name =" tabIndent" value =" false" />
27
- </properties >
28
- </rule >
29
- <!-- Set indent size for multi-line function -->
30
- <rule ref =" PSR2.Methods.FunctionCallSignature" >
31
- <properties >
32
- <property name =" indent" value =" 2" />
33
- </properties >
34
- </rule >
35
-
36
- <rule ref =" PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket" >
37
- <severity phpcs-only =" true" >0</severity >
38
- </rule >
39
-
40
- </ruleset >
8
+ <rule ref =" PSR12" />
9
+ </ruleset >
You can’t perform that action at this time.
0 commit comments