Function find_skin_name_in_inis
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def find_skin_name_in_inis(inis):
"""
Retrieve skin name in a configuration.
A configuration can contain multiple skins.
- 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 find_inis_in_folder
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def find_inis_in_folder(folder):
"""
Retrieve path of every file ending with .ini in folder.
Returns the absolute path of each found file.
- 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 find_resources_folder_in_folder
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def find_resources_folder_in_folder(folder):
"""
Find a single @Resources folder in the given folder.
"""
for root, directories, dummy_files in os.walk(folder):
- 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 find_resources_folders
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def find_resources_folders(folder):
"""
Find @Resources folders in the given folder.
Is case insensitive.
- 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"