-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpcs.xml
More file actions
43 lines (36 loc) · 1.85 KB
/
phpcs.xml
File metadata and controls
43 lines (36 loc) · 1.85 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
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<rule ref="PSR12"/>
<!-- ignore line length warnings -->
<rule ref="Generic.Files.LineLength.TooLong">
<exclude-pattern>*</exclude-pattern>
</rule>
<rule ref="PSR1.Methods.CamelCapsMethodName.NotCamelCaps">
<exclude-pattern>tests</exclude-pattern>
</rule>
<!-- whitelist some awkward class names, as else they would become very long and hard to read -->
<rule ref="Squiz.Classes.ValidClassName.NotCamelCaps">
<exclude-pattern>MG_ED_Math</exclude-pattern>
<exclude-pattern>MG_TwED_Math</exclude-pattern>
<exclude-pattern>TwED_ANeg1_Math</exclude-pattern>
<exclude-pattern>ED_ANeg1_Math</exclude-pattern>
<exclude-pattern>SW_ANeg3_Calculator</exclude-pattern>
<exclude-pattern>SW_QT_ANeg3_Calculator</exclude-pattern>
<exclude-pattern>SW_ANeg3_Math</exclude-pattern>
<exclude-pattern>SW_QT_ANeg3_Math</exclude-pattern>
<exclude-pattern>SW_ANeg3_Jacobi_Adder</exclude-pattern>
<exclude-pattern>ED_ANeg1_Calculator</exclude-pattern>
<exclude-pattern>ED_ANeg1_Extended_Adder</exclude-pattern>
<exclude-pattern>TwED_ANeg1_Calculator</exclude-pattern>
<exclude-pattern>TwED_ANeg1_Extended_Adder</exclude-pattern>
</rule>
<arg name="colors"/> <!-- use colors in output -->
<arg value="s"/> <!-- show name that is broken -->
<arg name="cache" value=".phpcs-cache"/> <!-- cache executions -->
<arg value="p"/> <!-- show progress -->
<file>src</file>
<file>tests</file>
<exclude-pattern>tests/integration/Rooterberg/fixtures</exclude-pattern>
<exclude-pattern>tests/integration/WycheProof/fixtures</exclude-pattern>
</ruleset>