Showing 228 of 691 total issues
Function HandleDirections
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def HandleDirections(tags, attrs, chars, piece, data):
Function handleTimeMod
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
def handleTimeMod(tags, attrs, chars, piece, data):
Function CheckMeasureDivisions
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def CheckMeasureDivisions(self, measure):
divisions = None
staves = self.GetChildrenIndexes()
for staff in staves:
measure_obj = self.getMeasure(measure, staff)
- 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 addKey
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def addKey(self, item, measure_id):
staves = self.GetChildrenIndexes()
for staff_id in staves:
measure = self.getMeasure(measure_id, staff_id)
if measure is not None:
- 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 __init__
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def __init__(self, **kwargs):
text = None
size = None
font = None
placement = None
- 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 toLily
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def toLily(self):
return_val = "\\"
if hasattr(self, "type"):
if self.type == "crescendo":
return_val += "<"
- 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 toLily
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def toLily(self):
val = "\grace"
ending = ""
if hasattr(self, "slash") and self.slash:
val = "\slashedGrace"
- 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 toLily
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def toLily(self):
lily = ""
if hasattr(self, "justify"):
options = {
"right": "\\fill-line {\n\\null \n\override #'(baseline-skip . 4)\n\override #'(line-width . 40) {",
- 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 __init__
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def __init__(self, **kwargs):
self.preNote = True
BaseClass.Base.__init__(self)
if "type" in kwargs:
if kwargs["type"] is not None:
- 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 toLily
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def toLily(self):
return_val = "\\repeat tremolo "
num = ""
if hasattr(self, "value"):
options = {1: 2, 2: 4, 3: 8}
- 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 toLily
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def toLily(self):
val = ""
if hasattr(self, "bracket"):
if self.bracket:
val += "\once \override TupletBracket.bracket-visibility = ##t\n"
- 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
Avoid too many return
statements within this function. Open
return result
Avoid too many return
statements within this function. Open
return result
Avoid too many return
statements within this function. Open
return counter
Avoid too many return
statements within this function. Open
return counter
Avoid too many return
statements within this function. Open
return result
Avoid too many return
statements within this function. Open
return node
Avoid too many return
statements within this function. Open
return node
Avoid too many return
statements within this function. Open
return None
Function PositionChild
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def PositionChild(self, item, key, voice=1):
voice_obj = self.getVoice(voice)
children = voice_obj.GetChildrenIndexes()
if key in children:
start_index = key
- 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"