-
Notifications
You must be signed in to change notification settings - Fork 2
/
json.json
152 lines (152 loc) · 7.85 KB
/
json.json
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"version" : "@project.version@",
"package" : "phpmd",
"timestamp" : "2020-07-19T21:40:40+03:00",
"files" : [
{
"file" : "\/Users\/smetdenis\/Work\/projects\/jbzoo-ci-report-converter\/vendor\/povils\/phpmnd\/src\/Console\/Application.php",
"violations" : [
{
"beginLine" : 26,
"endLine" : 26,
"package" : null,
"function" : null,
"class" : null,
"method" : null,
"description" : "Avoid unused parameters such as \u0027$input\u0027.",
"rule" : "UnusedFormalParameter",
"ruleSet" : "Unused Code Rules",
"externalInfoUrl" : "https:\/\/phpmd.org\/rules\/unusedcode.html#unusedformalparameter",
"priority" : 3
},
{
"beginLine" : 26,
"endLine" : 26,
"package" : null,
"function" : null,
"class" : null,
"method" : null,
"description" : "Avoid unused parameters such as \u0027$input\u0027.",
"rule" : "UnusedFormalParameter",
"ruleSet" : "Unused Code Rules",
"externalInfoUrl" : "https:\/\/phpmd.org\/rules\/unusedcode.html#unusedformalparameter",
"priority" : 3
}
]
},
{
"file" : "\/Users\/smetdenis\/Work\/projects\/jbzoo-ci-report-converter\/vendor\/povils\/phpmnd\/src\/Console\/Command.php",
"violations" : [
{
"beginLine" : 24,
"endLine" : 284,
"package" : "Povils\\PHPMND\\Console",
"function" : null,
"class" : "Command",
"method" : null,
"description" : "The class Command has a coupling between objects value of 16. Consider to reduce the number of dependencies under 13.",
"rule" : "CouplingBetweenObjects",
"ruleSet" : "Design Rules",
"externalInfoUrl" : "https:\/\/phpmd.org\/rules\/design.html#couplingbetweenobjects",
"priority" : 2
},
{
"beginLine" : 29,
"endLine" : 142,
"package" : "Povils\\PHPMND\\Console",
"function" : null,
"class" : "Command",
"method" : "configure",
"description" : "The method configure() has 114 lines of code. Current threshold is set to 100. Avoid really long methods.",
"rule" : "ExcessiveMethodLength",
"ruleSet" : "Code Size Rules",
"externalInfoUrl" : "https:\/\/phpmd.org\/rules\/codesize.html#excessivemethodlength",
"priority" : 3
},
{
"beginLine" : 144,
"endLine" : 207,
"package" : "Povils\\PHPMND\\Console",
"function" : null,
"class" : "Command",
"method" : "execute",
"description" : "The method execute() has a Cyclomatic Complexity of 15. The configured cyclomatic complexity threshold is 10.",
"rule" : "CyclomaticComplexity",
"ruleSet" : "Code Size Rules",
"externalInfoUrl" : "https:\/\/phpmd.org\/rules\/codesize.html#cyclomaticcomplexity",
"priority" : 3
},
{
"beginLine" : 144,
"endLine" : 207,
"package" : "Povils\\PHPMND\\Console",
"function" : null,
"class" : "Command",
"method" : "execute",
"description" : "The method execute() has an NPath complexity of 2736. The configured NPath complexity threshold is 200.",
"rule" : "NPathComplexity",
"ruleSet" : "Code Size Rules",
"externalInfoUrl" : "https:\/\/phpmd.org\/rules\/codesize.html#npathcomplexity",
"priority" : 3
},
{
"beginLine" : 256,
"endLine" : 263,
"package" : "Povils\\PHPMND\\Console",
"function" : null,
"class" : "Command",
"method" : "castToNumber",
"description" : "Avoid unused private methods such as \u0027castToNumber\u0027.",
"rule" : "UnusedPrivateMethod",
"ruleSet" : "Unused Code Rules",
"externalInfoUrl" : "https:\/\/phpmd.org\/rules\/unusedcode.html#unusedprivatemethod",
"priority" : 3
},
{
"beginLine" : 256,
"endLine" : 263,
"package" : "Povils\\PHPMND\\Console",
"function" : null,
"class" : "Command",
"method" : "castToNumber",
"description" : "Avoid unused private methods such as \u0027castToNumber\u0027.",
"rule" : "UnusedPrivateMethod",
"ruleSet" : "Unused Code Rules",
"externalInfoUrl" : "https:\/\/phpmd.org\/rules\/unusedcode.html#unusedprivatemethod",
"priority" : 3
}
]
},
{
"file" : "\/Users\/smetdenis\/Work\/projects\/jbzoo-ci-report-converter\/vendor\/povils\/phpmnd\/src\/Console\/Option.php",
"violations" : [
{
"beginLine" : 49,
"endLine" : 49,
"package" : null,
"function" : null,
"class" : null,
"method" : null,
"description" : "Avoid excessively long variable names like $includeNumericStrings. Keep variable name length under 20.",
"rule" : "LongVariable",
"ruleSet" : "Naming Rules",
"externalInfoUrl" : "https:\/\/phpmd.org\/rules\/naming.html#longvariable",
"priority" : 3
},
{
"beginLine" : 121,
"endLine" : 121,
"package" : null,
"function" : null,
"class" : null,
"method" : null,
"description" : "Avoid excessively long variable names like $includeNumericStrings. Keep variable name length under 20.",
"rule" : "LongVariable",
"ruleSet" : "Naming Rules",
"externalInfoUrl" : "https:\/\/phpmd.org\/rules\/naming.html#longvariable",
"priority" : 3
}
]
}
]
}