Showing 691 of 691 total issues
Avoid deeply nested control flow statements. Open
Open
if "text" in attrib["kind"]:
kind.text = attrib["kind"]["text"]
if "halign" in attrib["kind"]:
Avoid deeply nested control flow statements. Open
Open
if previous == value:
if total >= previous:
total -= previous
else:
total -= previous / 2
Avoid deeply nested control flow statements. Open
Open
if "font-size" in temp:
size = float(temp["font-size"])
if "justify" in temp:
Avoid deeply nested control flow statements. Open
Open
if "strong-accent" in attrs:
if "type" in attrs["strong-accent"]:
s_type = attrs["strong-accent"]["type"]
accent = Mark.StrongAccent(type=s_type)
Avoid deeply nested control flow statements. Open
Open
if "degree-type" in attrib:
if "text" in attrib["degree-type"]:
data["degree"].display = attrib[
"degree-type"]["text"]
Avoid deeply nested control flow statements. Open
Open
if hasattr(barline, "ending"):
position = -2
index = part.getMeasureIDAtPosition(
position,
staff=data["staff_id"])
Avoid deeply nested control flow statements. Open
Open
if "parentheses" in attrs["metronome"]:
data["direction"].parentheses = YesNoToBool(
attrs["metronome"]["parentheses"])
if tags[-1] == "per-minute":
Avoid deeply nested control flow statements. Open
Open
if "parentheses" in attrs["metronome"]:
data["direction"].parentheses = YesNoToBool(
attrs["metronome"]["parentheses"])
if tags[-1] == "wedge":
Avoid deeply nested control flow statements. Open
Open
if data["handleType"] == "title":
if not hasattr(piece.GetItem().meta, "title"):
piece.GetItem().meta.title = text
else:
if text.replace(
Avoid deeply nested control flow statements. Open
Open
if "font-size" in attrs["metronome"]:
data["direction"].size = attrs[
"metronome"]["font-size"]
if "parentheses" in attrs["metronome"]:
Avoid deeply nested control flow statements. Open
Open
if previous * 2 == value:
result += "."
if previous == value:
Avoid deeply nested control flow statements. Open
Open
if attrib["creator"]["type"] == "composer":
if "creator" in content:
composer = content["creator"]
if tag[-1] == "movement-title" or "creator":
Avoid deeply nested control flow statements. Open
Open
if "justify" in temp:
justify = temp["justify"]
if justify == "center" and data["handleType"] == "":
data["handleType"] = "title"
if justify == "right" and data["handleType"] == "":
Avoid deeply nested control flow statements. Open
Open
if not hasattr(bline2, "ending"):
bline1.ending.type = "discontinue"
else:
Avoid deeply nested control flow statements. Open
Open
if data["handleType"] == "rights":
if not hasattr(piece.GetItem().meta, "copyright"):
piece.GetItem().meta.copyright = text
else:
if text.replace(
Avoid deeply nested control flow statements. Open
Open
if measure is None:
part.addEmptyMeasure(measure_id, data["staff_id"])
measure = part.getMeasure(measure_id, data["staff_id"])
if measure is not None:
Avoid deeply nested control flow statements. Open
Open
if "root-step" in content:
root.step = content["root-step"]
if tag[-1] == "root-alter":
Avoid deeply nested control flow statements. Open
Open
if "fingering" in tag and "fingering" in content:
data["frame_note"].fingering = content["fingering"]
handleBarline(tag, attrib, content, piece, data)
Avoid deeply nested control flow statements. Open
Open
if counter == index:
return node.GetChild(child)
if isinstance(result, cls_type):
Avoid deeply nested control flow statements. Open
Open
if "default-y" in temp:
y = float(temp["default-y"])
if "font-size" in temp: