-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathphpcs.xml
More file actions
30 lines (25 loc) · 1.25 KB
/
phpcs.xml
File metadata and controls
30 lines (25 loc) · 1.25 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset>
<description>The coding rules for Level Up Quest Availability.</description>
<exclude-pattern>*/db/upgrade.php</exclude-pattern>
<rule ref="moodle">
<!-- Keep extra spacing for code readability. -->
<exclude name="PSR12.Classes.OpeningBraceSpace.Found" />
<exclude name="PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine" />
<exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody" />
<exclude name="PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket" />
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingAfterOpen" />
<exclude name="Squiz.WhiteSpace.ControlStructureSpacing.SpacingBeforeClose" />
</rule>
<rule ref="moodle.Files">
<exclude name="moodle.Files.BoilerplateComment" />
</rule>
<rule ref="moodle.Commenting">
<exclude name="moodle.Commenting.Package.Missing" />
<exclude name="moodle.Commenting.MissingDocblock" />
<exclude name="moodle.Commenting.TodoComment" />
<exclude name="moodle.Commenting.VariableComment" />
<exclude name="moodle.Commenting.InlineComment" />
</rule>
<config name="testVersion" value="8.2-" />
</ruleset>