... | ... | @@ -620,7 +620,43 @@ The response includes the cumulative interest of the project for each version. F |
|
|
{POST} [`<PROTOCOL>://<IP>:<PORT>/api/sdk4ed/qg/{apache:commons-io}/{release}/{bc47652650729d51f9f5d261270d714f6396df16}`](http://195.251.210.147:8989/api/sdk4ed/qg/apache:commons-io/release/bc47652650729d51f9f5d261270d714f6396df16)
|
|
|
|
|
|
```
|
|
|
|
|
|
{
|
|
|
"execution": "SUCCESS",
|
|
|
"qgData": [
|
|
|
[
|
|
|
1.608290022601E12,
|
|
|
0.282
|
|
|
]
|
|
|
],
|
|
|
"qgMethods": [
|
|
|
{
|
|
|
"filePath": "src/main/java/org/apache/commons/io/FileUtils.java",
|
|
|
"methodName": "checkDirectory",
|
|
|
"classifier": "Inserted",
|
|
|
"contribution": 0.28684854041785,
|
|
|
"issues": [
|
|
|
{
|
|
|
"rule": "String literals should not be duplicated",
|
|
|
"line": 243,
|
|
|
"effort": 12
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"filePath": "src/main/java/org/apache/commons/io/FileUtils.java",
|
|
|
"methodName": "listFilesAndDirs",
|
|
|
"classifier": "Inserted",
|
|
|
"contribution": 0.13048005057498813,
|
|
|
"issues": [
|
|
|
{
|
|
|
"rule": "Collapsible \"if\" statements should be merged",
|
|
|
"line": 2174,
|
|
|
"effort": 5
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
```
|
|
|
|
|
|
{GET} [`<PROTOCOL>://<IP>:<PORT>/api/sdk4ed/refactorings/ruleViolationPrct/{apache:commons-io}`](http://195.251.210.147:8989/api/sdk4ed/refactorings/ruleViolationPrct/apache:commons-io)
|
... | ... | @@ -650,22 +686,6 @@ The response includes the cumulative interest of the project for each version. F |
|
|
]
|
|
|
},
|
|
|
...,
|
|
|
{
|
|
|
"rank": 64,
|
|
|
"rule": "\"public static\" fields should be constant",
|
|
|
"description": "<p>There is no good reason to declare a field \"public\" and \"static\" without also declaring it \"final\". Most of the time this is a kludge to share a\nstate among several objects. But with this approach, any object can do whatever it wants with the shared state, such as setting it to\n<code>null</code>. </p>\n<h2>Noncompliant Code Example</h2>\n<pre>\npublic class Greeter {\n public static Foo foo = new Foo();\n ...\n}\n</pre>\n<h2>Compliant Solution</h2>\n<pre>\npublic class Greeter {\n public static final Foo FOO = new Foo();\n ...\n}\n</pre>\n<h2>See</h2>\n<ul>\n <li> <a href=\"http://cwe.mitre.org/data/definitions/500.html\">MITRE, CWE-500</a> - Public Static Field Not Marked Final </li>\n <li> <a href=\"https://www.securecoding.cert.org/confluence/x/QQBqAQ\">CERT OBJ10-J.</a> - Do not use public static nonfinal fields </li>\n</ul>",
|
|
|
"language": "java",
|
|
|
"value": 0.0029411764705882353,
|
|
|
"rp": 0.0029411764705882353,
|
|
|
"cp": 0,
|
|
|
"issues": [
|
|
|
{
|
|
|
"file": "src/main/java/org/apache/commons/io/file/NoopPathVisitor.java",
|
|
|
"line": "30",
|
|
|
"effort": "20"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"rank": 65,
|
|
|
"rule": "Class variable fields should not have public accessibility",
|
... | ... | @@ -685,6 +705,7 @@ The response includes the cumulative interest of the project for each version. F |
|
|
]
|
|
|
```
|
|
|
|
|
|
|
|
|
## Design-Level Refactorings Service
|
|
|
|
|
|
**End Points - URLS**
|
... | ... | |