-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmoodle.xml
40 lines (30 loc) · 1.32 KB
/
moodle.xml
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
<?xml version="1.0"?>
<ruleset name="DELTA-Custom-Development-Moodle">
<description>A custom set of rules based on Moodle</description>
<!-- Only scan PHP files. -->
<arg name="extensions" value="php"/>
<!-- Check up to 8 files simultanously. -->
<arg name="parallel" value="8"/>
<!-- Load additional standards. -->
<config name="installed_paths" value="/misc/temp/phpcs/moodle-cs,/misc/temp/phpcs/PHPCompatibility,/misc/temp/phpcs/PHPCSUtils,/misc/temp/phpcs/PHPCSExtra" />
<!-- Exclude the Composer Vendor directory. -->
<exclude-pattern>/vendor/*</exclude-pattern>
<!-- Exclude the Node Modules directory. -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<!-- Exclude minified Javascript files. -->
<exclude-pattern>*.min.js</exclude-pattern>
<!-- Include the moodle standard. -->
<rule ref="moodle-extra">
<!--
We can run `phpcs` with the '-s' flag, which allows us to see the names
of the sniffs reporting errors. Once we know the sniff names, we can opt
to exclude sniffs which don't suit our project.
-->
</rule>
<!-- Check PHP syntax. -->
<rule ref="Generic.PHP.Syntax"/>
<!-- We require PHP >= 7.1 which allows constant visibility -->
<rule ref="PSR12.Properties.ConstantVisibility"/>
<!-- Check for PHP cross-version compatibility. -->
<config name="testVersion" value="7.1-99.0"/>
</ruleset>