Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • W Wiki Home
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar
  • SDK4ED WikiSDK4ED Wiki
  • Wiki Home
  • Wiki
  • technical debt toolbox usage

technical debt toolbox usage · Changes

Page history
Update technical debt toolbox usage authored Dec 18, 2020 by George Digkas's avatar George Digkas
Hide whitespace changes
Inline Side-by-side
technical-debt-toolbox-usage.md
View page @ 8c1ead33
......@@ -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**
......
Clone repository
  • Advanced
  • Architectural Toolbox Description
  • Architectural Toolbox Front End
  • Architectural Toolbox Home
  • Architectural Toolbox Installation
  • Architectural Toolbox Usage
  • Decision Support Toolbox Description
  • Decision Support Toolbox Front end
  • Decision Support Toolbox Installation
  • Decision Support Toolbox Usage
  • Decision Support Toolbox
  • Energy Toolbox Description
  • Energy Toolbox Front end
  • Energy Toolbox Installation
  • Energy Toolbox Usage
View All Pages