Showing 24 of 24 total issues
Function executeRequest
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def executeRequest(self, request):
client = None
response = None
try:
if not self.verify:
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method initializeXLR
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public static void initializeXLR() throws Exception{
// Load ucd server config
try {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method getPluginReleaseResult
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
public static org.json.JSONObject getPluginReleaseResult() throws Exception{
org.json.JSONObject releaseResultJSON = null;
String responseId = "";
String releaseResultStr = "";
// Prepare httpRequest, start the release
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function ucd_applicationprocessrequest
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def ucd_applicationprocessrequest(self, variables):
application_process_request_endpoint = "/cli/applicationProcessRequest/request"
versions_list = []
for component, version in variables['versions'].iteritems():
versions_list.append({'version': version, 'component': component})
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"