This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pmd.xml
99 lines (99 loc) · 10.2 KB
/
pmd.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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="UTF-8" ?>
<pmd version="@project.version@" timestamp="2015-05-14T23:35:27+02:00">
<file name="/www-data/git/ricardo/src/Diglin/Ricardo/Api.php">
<violation beginline="85" endline="148" rule="CyclomaticComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo" externalInfoUrl="http://phpmd.org/rules/codesize.html#cyclomaticcomplexity" class="Api" method="connect" priority="3">
The method connect() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
</violation>
<violation beginline="286" endline="314" rule="CyclomaticComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo" externalInfoUrl="http://phpmd.org/rules/codesize.html#cyclomaticcomplexity" class="Api" method="jsonEncode" priority="3">
The method jsonEncode() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10.
</violation>
<violation beginline="286" endline="314" rule="NPathComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo" externalInfoUrl="http://phpmd.org/rules/codesize.html#npathcomplexity" class="Api" method="jsonEncode" priority="3">
The method jsonEncode() has an NPath complexity of 5760. The configured NPath complexity threshold is 200.
</violation>
</file>
<file name="/www-data/git/ricardo/src/Diglin/Ricardo/Enums/ArticleErrors.php">
<violation beginline="168" endline="307" rule="ExcessiveMethodLength" ruleset="Code Size Rules" package="Diglin\Ricardo\Enums" externalInfoUrl="http://phpmd.org/rules/codesize.html#excessivemethodlength" class="ArticleErrors" method="getEnums" priority="3">
The method getEnums() has 140 lines of code. Current threshold is set to 100. Avoid really long methods.
</violation>
</file>
<file name="/www-data/git/ricardo/src/Diglin/Ricardo/Managers/ParameterAbstract.php">
<violation beginline="65" endline="105" rule="CyclomaticComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo\Managers" externalInfoUrl="http://phpmd.org/rules/codesize.html#cyclomaticcomplexity" class="ParameterAbstract" method="getDataProperties" priority="3">
The method getDataProperties() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
</violation>
</file>
<file name="/www-data/git/ricardo/src/Diglin/Ricardo/Managers/Security.php">
<violation beginline="37" endline="618" rule="ExcessiveClassComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo\Managers" externalInfoUrl="http://phpmd.org/rules/codesize.html#excessiveclasscomplexity" class="Security" priority="3">
The class Security has an overall complexity of 78 which is very high. The configured complexity threshold is 50.
</violation>
<violation beginline="200" endline="228" rule="CyclomaticComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo\Managers" externalInfoUrl="http://phpmd.org/rules/codesize.html#cyclomaticcomplexity" class="Security" method="parseValidationUrl" priority="3">
The method parseValidationUrl() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10.
</violation>
<violation beginline="200" endline="228" rule="NPathComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo\Managers" externalInfoUrl="http://phpmd.org/rules/codesize.html#npathcomplexity" class="Security" method="parseValidationUrl" priority="3">
The method parseValidationUrl() has an NPath complexity of 7812500. The configured NPath complexity threshold is 200.
</violation>
<violation beginline="330" endline="400" rule="CyclomaticComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo\Managers" externalInfoUrl="http://phpmd.org/rules/codesize.html#cyclomaticcomplexity" class="Security" method="simulateValidationUrl" priority="3">
The method simulateValidationUrl() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
</violation>
<violation beginline="330" endline="400" rule="NPathComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo\Managers" externalInfoUrl="http://phpmd.org/rules/codesize.html#npathcomplexity" class="Security" method="simulateValidationUrl" priority="3">
The method simulateValidationUrl() has an NPath complexity of 6000. The configured NPath complexity threshold is 200.
</violation>
</file>
<file name="/www-data/git/ricardo/src/Diglin/Ricardo/Managers/Sell.php">
<violation beginline="40" endline="178" rule="TooManyMethods" ruleset="Code Size Rules" package="Diglin\Ricardo\Managers" externalInfoUrl="http://phpmd.org/rules/codesize.html#toomanymethods" class="Sell" priority="3">
The class Sell has 11 methods. Consider refactoring Sell to keep number of methods under 10.
</violation>
</file>
<file name="/www-data/git/ricardo/src/Diglin/Ricardo/Managers/Sell/Parameter/ArticleInformationParameter.php">
<violation beginline="29" endline="528" rule="TooManyFields" ruleset="Code Size Rules" package="Diglin\Ricardo\Managers\Sell\Parameter" externalInfoUrl="http://phpmd.org/rules/codesize.html#toomanyfields" class="ArticleInformationParameter" priority="3">
The class ArticleInformationParameter has 22 fields. Consider to redesign ArticleInformationParameter to keep the number of fields under 15.
</violation>
</file>
<file name="/www-data/git/ricardo/src/Diglin/Ricardo/Managers/SellerAccount/Parameter/SoldArticlesParameter.php">
<violation beginline="36" endline="524" rule="TooManyFields" ruleset="Code Size Rules" package="Diglin\Ricardo\Managers\SellerAccount\Parameter" externalInfoUrl="http://phpmd.org/rules/codesize.html#toomanyfields" class="SoldArticlesParameter" priority="3">
The class SoldArticlesParameter has 20 fields. Consider to redesign SoldArticlesParameter to keep the number of fields under 15.
</violation>
</file>
<file name="/www-data/git/ricardo/src/Diglin/Ricardo/Managers/System.php">
<violation beginline="29" endline="615" rule="TooManyFields" ruleset="Code Size Rules" package="Diglin\Ricardo\Managers" externalInfoUrl="http://phpmd.org/rules/codesize.html#toomanyfields" class="System" priority="3">
The class System has 22 fields. Consider to redesign System to keep the number of fields under 15.
</violation>
<violation beginline="29" endline="615" rule="ExcessiveClassComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo\Managers" externalInfoUrl="http://phpmd.org/rules/codesize.html#excessiveclasscomplexity" class="System" priority="3">
The class System has an overall complexity of 64 which is very high. The configured complexity threshold is 50.
</violation>
</file>
<file name="/www-data/git/ricardo/src/Diglin/Ricardo/Service.php">
<violation beginline="195" endline="270" rule="CyclomaticComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo" externalInfoUrl="http://phpmd.org/rules/codesize.html#cyclomaticcomplexity" class="Service" method="proceed" priority="3">
The method proceed() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10.
</violation>
<violation beginline="195" endline="270" rule="NPathComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo" externalInfoUrl="http://phpmd.org/rules/codesize.html#npathcomplexity" class="Service" method="proceed" priority="3">
The method proceed() has an NPath complexity of 301. The configured NPath complexity threshold is 200.
</violation>
</file>
<file name="/www-data/git/ricardo/src/Diglin/Ricardo/Services/Sell.php">
<violation beginline="43" endline="722" rule="ExcessivePublicCount" ruleset="Code Size Rules" package="Diglin\Ricardo\Services" externalInfoUrl="http://phpmd.org/rules/codesize.html#excessivepubliccount" class="Sell" priority="3">
The class Sell has 48 public methods and attributes. Consider to reduce the number of public items under 45.
</violation>
<violation beginline="43" endline="722" rule="TooManyMethods" ruleset="Code Size Rules" package="Diglin\Ricardo\Services" externalInfoUrl="http://phpmd.org/rules/codesize.html#toomanymethods" class="Sell" priority="3">
The class Sell has 42 methods. Consider refactoring Sell to keep number of methods under 10.
</violation>
<violation beginline="43" endline="722" rule="ExcessiveClassComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo\Services" externalInfoUrl="http://phpmd.org/rules/codesize.html#excessiveclasscomplexity" class="Sell" priority="3">
The class Sell has an overall complexity of 61 which is very high. The configured complexity threshold is 50.
</violation>
</file>
<file name="/www-data/git/ricardo/src/Diglin/Ricardo/Services/SellerAccount.php">
<violation beginline="41" endline="606" rule="ExcessiveClassComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo\Services" externalInfoUrl="http://phpmd.org/rules/codesize.html#excessiveclasscomplexity" class="SellerAccount" priority="3">
The class SellerAccount has an overall complexity of 64 which is very high. The configured complexity threshold is 50.
</violation>
</file>
<file name="/www-data/git/ricardo/src/Diglin/Ricardo/Services/System.php">
<violation beginline="31" endline="1228" rule="ExcessiveClassLength" ruleset="Code Size Rules" package="Diglin\Ricardo\Services" externalInfoUrl="http://phpmd.org/rules/codesize.html#excessiveclasslength" class="System" priority="3">
The class System has 1198 lines of code. Current threshold is 1000. Avoid really long classes.
</violation>
<violation beginline="31" endline="1228" rule="ExcessiveClassComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo\Services" externalInfoUrl="http://phpmd.org/rules/codesize.html#excessiveclasscomplexity" class="System" priority="3">
The class System has an overall complexity of 108 which is very high. The configured complexity threshold is 50.
</violation>
<violation beginline="981" endline="1006" rule="NPathComplexity" ruleset="Code Size Rules" package="Diglin\Ricardo\Services" externalInfoUrl="http://phpmd.org/rules/codesize.html#npathcomplexity" class="System" method="getPromotions" priority="3">
The method getPromotions() has an NPath complexity of 627. The configured NPath complexity threshold is 200.
</violation>
</file>
</pmd>