Godley/MuseParse

View on GitHub

Showing 691 of 691 total issues

Avoid deeply nested control flow statements.
Open

                    if "text" in attrib["kind"]:
                        kind.text = attrib["kind"]["text"]
                    if "halign" in attrib["kind"]:
Severity: Major
Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                            if previous == value:
                                if total >= previous:
                                    total -= previous
                                else:
                                    total -= previous / 2
    Severity: Major
    Found in MuseParse/classes/ObjectHierarchy/TreeClasses/MeasureNode.py - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if "font-size" in temp:
                              size = float(temp["font-size"])
                          if "justify" in temp:
      Severity: Major
      Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                            if "strong-accent" in attrs:
                                if "type" in attrs["strong-accent"]:
                                    s_type = attrs["strong-accent"]["type"]
                            accent = Mark.StrongAccent(type=s_type)
        Severity: Major
        Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                              if "degree-type" in attrib:
                                  if "text" in attrib["degree-type"]:
                                      data["degree"].display = attrib[
                                          "degree-type"]["text"]
          
          
          Severity: Major
          Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                if hasattr(barline, "ending"):
                                    position = -2
                                    index = part.getMeasureIDAtPosition(
                                        position,
                                        staff=data["staff_id"])
            Severity: Major
            Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  if "parentheses" in attrs["metronome"]:
                                      data["direction"].parentheses = YesNoToBool(
                                          attrs["metronome"]["parentheses"])
                          if tags[-1] == "per-minute":
              Severity: Major
              Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                    if "parentheses" in attrs["metronome"]:
                                        data["direction"].parentheses = YesNoToBool(
                                            attrs["metronome"]["parentheses"])
                        if tags[-1] == "wedge":
                Severity: Major
                Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                      if data["handleType"] == "title":
                                          if not hasattr(piece.GetItem().meta, "title"):
                                              piece.GetItem().meta.title = text
                                          else:
                                              if text.replace(
                  Severity: Major
                  Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                        if "font-size" in attrs["metronome"]:
                                            data["direction"].size = attrs[
                                                "metronome"]["font-size"]
                                        if "parentheses" in attrs["metronome"]:
                    Severity: Major
                    Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if previous * 2 == value:
                                                  result += "."
                                              if previous == value:
                      Severity: Major
                      Found in MuseParse/classes/ObjectHierarchy/TreeClasses/MeasureNode.py - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                            if attrib["creator"]["type"] == "composer":
                                                if "creator" in content:
                                                    composer = content["creator"]
                                if tag[-1] == "movement-title" or "creator":
                        Severity: Major
                        Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              if "justify" in temp:
                                                  justify = temp["justify"]
                                                  if justify == "center" and data["handleType"] == "":
                                                      data["handleType"] = "title"
                                                  if justify == "right" and data["handleType"] == "":
                          Severity: Major
                          Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                    if not hasattr(bline2, "ending"):
                                                        bline1.ending.type = "discontinue"
                                                else:
                            Severity: Major
                            Found in MuseParse/classes/ObjectHierarchy/TreeClasses/PartNode.py - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                  if data["handleType"] == "rights":
                                                      if not hasattr(piece.GetItem().meta, "copyright"):
                                                          piece.GetItem().meta.copyright = text
                                                      else:
                                                          if text.replace(
                              Severity: Major
                              Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                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:
                                Severity: Major
                                Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      if "root-step" in content:
                                                          root.step = content["root-step"]
                                                  if tag[-1] == "root-alter":
                                  Severity: Major
                                  Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                        if "fingering" in tag and "fingering" in content:
                                                            data["frame_note"].fingering = content["fingering"]
                                        handleBarline(tag, attrib, content, piece, data)
                                    Severity: Major
                                    Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                          if counter == index:
                                                              return node.GetChild(child)
                                                      if isinstance(result, cls_type):
                                      Severity: Major
                                      Found in MuseParse/classes/ObjectHierarchy/TreeClasses/BaseTree.py - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            if "default-y" in temp:
                                                                y = float(temp["default-y"])
                                                            if "font-size" in temp:
                                        Severity: Major
                                        Found in MuseParse/classes/Input/MxmlParser.py - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language