File _urihandler.py
has 4434 lines of code (exceeds 250 allowed). Consider refactoring. Open
# Copyright 2016,2021 IBM Corp. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Function post
has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Submit Requests."""
assert wait_for_completion is True # async not supported yet
- 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 post
has 96 lines of code (exceeds 25 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Create Partition (requires DPM mode)."""
Function get
has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Permitted LPARs."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 get
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Permitted Partitions."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 post
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Remove Temporary Capacity."""
assert wait_for_completion is True # no async
- 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 post
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Load Logical Partition (requires classic mode)."""
assert wait_for_completion is True # async not supported yet
- 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 get
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Adapters of a CPC (empty result if not in DPM
mode)."""
uri, query_parms = parse_query_parms(method, uri)
- 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 get
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Partitions of a CPC (empty result if not in DPM
mode)."""
uri, query_parms = parse_query_parms(method, uri)
- 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 post
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Add Temporary Capacity."""
assert wait_for_completion is True # no async
- 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 get
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Virtual Switches of a CPC (empty result if not in
DPM mode)."""
uri, query_parms = parse_query_parms(method, uri)
- 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 get
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""
Operation: List Image Activation Profiles.
In case of DPM mode, an empty list is returned.
- 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 post
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Modify Storage Group Properties."""
assert wait_for_completion is True # async not supported yet
- 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 post
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Create NIC (requires DPM mode)."""
assert wait_for_completion is True # async not supported yet
- 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 post
has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Create Storage Group."""
assert wait_for_completion is True # async not supported yet
- 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 post
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Create User."""
assert wait_for_completion is True # synchronous operation
Function parse_query_parms
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
def parse_query_parms(method, uri):
"""
Parse the specified URI with optional query parms and return the URI
without query parms and a dictionary of query parms.
- 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 post
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Decrease Crypto Configuration (requires DPM mode)."""
assert wait_for_completion is True # async not supported yet
- 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 post
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Create Partition (requires DPM mode)."""
- 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 get
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Logical Partitions of CPC (empty result in DPM
mode."""
uri, query_parms = parse_query_parms(method, uri)
- 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 get
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""
Operation: List Load Activation Profiles.
In case of DPM mode, an empty list is returned.
- 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 get
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""
Operation: List Reset Activation Profiles.
In case of DPM mode, an empty list is returned.
- 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 post
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Create User."""
assert wait_for_completion is True # synchronous operation
- 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 post
has 7 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(cls, method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Add Partition to Capacity Group."""
assert wait_for_completion is True # async not supported yet
- 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 post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Increase Crypto Configuration (requires DPM mode)."""
assert wait_for_completion is True # async not supported yet
- 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 post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Activate Logical Partition (requires classic mode)."""
assert wait_for_completion is True # async not supported yet
- 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 post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Export WWPN List (requires DPM mode)."""
assert wait_for_completion is True # this operation is always synchr.
- 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 post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
Function post
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: SCSI Load (requires classic mode)."""
assert wait_for_completion is True # async not supported yet
- 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 post
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: NVME Load (requires classic mode)."""
assert wait_for_completion is True # async not supported yet
- 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 get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function check_set_noninput
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def check_set_noninput(method, uri, properties, prop_name, prop_value):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function check_partition_status
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def check_partition_status(method, uri, partition, valid_statuses=None,
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, method, uri, http_status, reason, message):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function __init__
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def __init__(self, method, uri, handler_class=None, reason=1,
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function post
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def post(self, hmc, uri, body, logon_required, wait_for_completion):
Function get
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
Function check_required_subfields
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def check_required_subfields(method, uri, element, element_str, field_names):
Function get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Storage Volumes of a Storage Group."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List User Patterns."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: Get <resource> Properties."""
# All URI patterns for Get Properties operations must have a last
# match group for the query parms.
- 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 get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Password Rules."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Users."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Capacity Groups (always global but with filters)."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Unmanaged CPCs."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List LDAP Server Definitions."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 check_partition_status
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def check_partition_status(method, uri, partition, valid_statuses=None,
invalid_statuses=None):
"""
Check that the partition is in one of the valid statuses (if specified)
and not in one of the invalid statuses (if specified), as indicated by its
- 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 get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List User Roles."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Tasks."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 get
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Custom Groups."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 post
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: NVME Dump (requires classic mode)."""
assert wait_for_completion is True # async not supported yet
- 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 post
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: SCSI Dump (requires classic mode)."""
assert wait_for_completion is True # async not supported yet
- 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 get
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List Storage Groups (always global but with filters)."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 get
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def get(cls, method, hmc, uri, uri_parms, logon_required):
# pylint: disable=unused-argument
"""Operation: List CPCs."""
uri, query_parms = parse_query_parms(method, uri)
check_invalid_query_parms(
- 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 post
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def post(method, hmc, uri, uri_parms, body, logon_required,
wait_for_completion):
# pylint: disable=unused-argument
"""Operation: Change Adapter Type (requires DPM mode)."""
assert wait_for_completion is True # HMC operation is synchronous
- 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
Identical blocks of code found in 2 locations. Consider refactoring. Open
if hmc_version >= (2, 14, 1):
wwpn = body.get('world-wide-port-name')
lun = body.get('logical-unit-number')
disk_partition_id = body.get('disk-partition-id', 0)
os_load_parameters = body.get(
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 137.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 2 locations. Consider refactoring. Open
if hmc_version >= (2, 14, 1):
wwpn = body.get('world-wide-port-name')
lun = body.get('logical-unit-number')
disk_partition_id = body.get('disk-partition-id', 0)
os_load_parameters = body.get(
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 137.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 2 locations. Consider refactoring. Open
if hmc_version >= (2, 14, 1):
disk_partition_id = body.get('disk-partition-id', 0)
os_load_parameters = body.get(
'operating-system-specific-load-parameters', '')
boot_record_lba = body.get('boot-record-logical-block-address', '0')
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 89.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 2 locations. Consider refactoring. Open
if hmc_version >= (2, 14, 1):
disk_partition_id = body.get('disk-partition-id', 0)
os_load_parameters = body.get(
'operating-system-specific-load-parameters', '')
boot_record_lba = body.get('boot-record-logical-block-address', '0')
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 89.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 4 locations. Consider refactoring. Open
if hmc_version >= (2, 14, 0):
load_address = body.get('load-address')
load_parameter = body.get('load-parameter', '')
lpar.properties['last-used-load-address'] = load_address
lpar.properties['last-used-load-parameter'] = load_parameter
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 63.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 4 locations. Consider refactoring. Open
if hmc_version >= (2, 14, 0):
load_address = body.get('load-address')
load_parameter = body.get('load-parameter', '')
lpar.properties['last-used-load-address'] = load_address
lpar.properties['last-used-load-parameter'] = load_parameter
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 63.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 4 locations. Consider refactoring. Open
if hmc_version >= (2, 14, 0):
load_address = body.get('load-address')
load_parameter = body.get('load-parameter', '')
lpar.properties['last-used-load-address'] = load_address
lpar.properties['last-used-load-parameter'] = load_parameter
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 63.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 4 locations. Consider refactoring. Open
if hmc_version >= (2, 14, 0):
load_address = body.get('load-address')
load_parameter = body.get('load-parameter', '')
lpar.properties['last-used-load-address'] = load_address
lpar.properties['last-used-load-parameter'] = load_parameter
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 63.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 2 locations. Consider refactoring. Open
if filter_args and 'cpc-name' in filter_args:
if not re.match(filter_args['cpc-name'], cpc.name):
continue
del filter_args['cpc-name']
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 48.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 2 locations. Consider refactoring. Open
if filter_args and 'cpc-name' in filter_args:
if not re.match(filter_args['cpc-name'], cpc.name):
continue
del filter_args['cpc-name']
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 48.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76