blob: 0054e4cda0463bd7f69d1a48ebd0183bcd59e9ca (
plain) (
blame)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
<?xml version="1.0"?>
<ruleset
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="PHP_CodeSniffer"
xsi:noNamespaceSchemaLocation="phpcs.xsd"
>
<description>PHP CodeSniffer config for Hubzilla</description>
<file>app</file>
<file>boot.php</file>
<file>include</file>
<file>index.php</file>
<file>install</file>
<file>library</file>
<file>tests</file>
<file>util</file>
<file>view</file>
<file>Zotlabs</file>
<rule ref="Generic">
<exclude name="Generic.Arrays.ArrayIndent"/>
<exclude name="Generic.Arrays.DisallowLongArraySyntax"/>
<exclude name="Generic.Arrays.DisallowShortArraySyntax"/>
<exclude name="Generic.Files.EndFileNoNewline"/>
<exclude name="Generic.Files.LowercasedFilename"/>
<exclude name="Generic.Formatting.MultipleStatementAlignment"/>
<exclude name="Generic.Formatting.SpaceAfterNot"/>
<exclude name="Generic.Functions.FunctionCallArgumentSpacing"/>
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
<exclude name="Generic.NamingConventions.CamelCapsFunctionName"/>
<exclude name="Generic.PHP.ClosingPHPTag"/>
<exclude name="Generic.PHP.RequireStrictTypes"/>
<exclude name="Generic.PHP.UpperCaseConstant"/>
<exclude name="Generic.WhiteSpace.DisallowTabIndent"/>
<exclude name="Generic.WhiteSpace.ScopeIndent"/>
<exclude name="Generic.Commenting.DocComment.ContentAfterOpen"/>
<exclude name="Generic.Commenting.DocComment.ContentBeforeClose"/>
<exclude name="Generic.Commenting.DocComment.LongNotCapital"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<exclude name="Generic.Commenting.DocComment.NonParamGroup"/>
<exclude name="Generic.Commenting.DocComment.ParamNotFirst"/>
<exclude name="Generic.Commenting.DocComment.ShortNotCapital"/>
<exclude name="Generic.Commenting.DocComment.SpacingAfter"/>
<exclude name="Generic.Commenting.DocComment.SpacingBeforeShort"/>
<exclude name="Generic.Commenting.DocComment.TagValueIndent"/>
<exclude name="Generic.ControlStructures.InlineControlStructure.NotAllowed"/>
<exclude name="Generic.Files.OneClassPerFile.MultipleFound"/>
<exclude name="Generic.Files.OneObjectStructurePerFile.MultipleFound"/>
<exclude name="Generic.Formatting.SpaceAfterCast.NoSpace"/>
</rule>
<!--
Warn about lines longer than 100 columns, lines longer than 150
columns will flag an error.
-->
<rule ref="Generic.Files.LineLength">
<properties>
<property name="lineLimit" value="100" />
<property name="absoluteLineLimit" value="150" />
</properties>
</rule>
<!--
Mark deprecated functions.
-->
<rule ref="Generic.PHP.DeprecatedFunctions">
<properties>
<property name="forbiddenFunctions" type="array" extend="true">
<element key="load_config" value="Zotlabs\Lib\Config::Load" />
<element key="get_config" value="Zotlabs\Lib\Config::Get" />
<element key="set_config" value="Zotlabs\Lib\Config::Set" />
<element key="del_config" value="Zotlabs\Lib\Config::Delete" />
</property>
</properties>
</rule>
</ruleset>
|