-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathphpmd.xml
More file actions
46 lines (37 loc) · 1.79 KB
/
Copy pathphpmd.xml
File metadata and controls
46 lines (37 loc) · 1.79 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
44
45
46
<?xml version="1.0"?>
<ruleset name="Simple JWT Login"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
Full PHPMD ruleset for simple-jwt-login source and tests.
</description>
<!-- Design rules with raised thresholds for fluent-builder patterns -->
<rule ref="rulesets/design.xml">
<exclude name="CouplingBetweenObjects"/>
<exclude name="NumberOfChildren"/>
</rule>
<rule ref="rulesets/design.xml/CouplingBetweenObjects">
<properties>
<property name="maximum" value="22"/>
</properties>
</rule>
<!-- Clean code rules; StaticAccess excluded for genuinely stateless utility calls -->
<rule ref="rulesets/cleancode.xml">
<exclude name="StaticAccess"/>
</rule>
<!-- Unused code and naming rules -->
<rule ref="rulesets/unusedcode.xml"/>
<rule ref="rulesets/naming.xml"/>
<!-- Controversial rules; Superglobals excluded because SessionService legitimately needs
session_start() and tests must write to $_REQUEST/$_SERVER for WordPress HTTP simulation. -->
<rule ref="rulesets/controversial.xml">
<exclude name="Superglobals"/>
</rule>
<!-- Exclude WordPress wpdb adapter - intentionally uses snake_case to mirror the wpdb interface. -->
<exclude-pattern>tests/Feature/MysqliWpdb.php</exclude-pattern>
<!-- Exclude Two Factor plugin test doubles - intentionally mirror the external plugin's
snake_case static API. -->
<exclude-pattern>tests/Unit/Stubs/TwoFactorStubs.php</exclude-pattern>
</ruleset>