jarvisteach/appJar

View on GitHub

Showing 542 of 3,395 total issues

Function _setPinBut has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

    def _setPinBut(self):

        # only call this once
        if self.tb.pinBut is not None:
            return
Severity: Minor
Found in appJar/appjar.py - About 1 hr to fix

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 selectListItem has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

    def selectListItem(self, title, item, callFunction=True):
        lb = self.widgetManager.get(WIDGET_NAMES.ListBox, title)
        positions = self._getListPositions(title, item)
        if len(positions) > 1 and lb.cget("selectmode") == EXTENDED:
            allOk = True
Severity: Minor
Found in appJar/appjar.py - About 1 hr to fix

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 testScrollPaneScrolling has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

def testScrollPaneScrolling(sp):
    event = Event()

    sp._mouseEnter(event)
    sp._mouseLeave(event)
Severity: Minor
Found in tests/widget_test.py - About 1 hr to fix

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 data has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

    def data(self, bg=None, fromBox=None, grey=None):
        """Returns image data in the form of a string"""
        args = (self.name, "data")
        if bg:
            if bg[0] == "-background":
Severity: Minor
Found in appJar/lib/tkinter_png.py - About 1 hr to fix

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 addLabelSpinBox has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def addLabelSpinBox(self, title, values, row=None, column=0, colspan=0, rowspan=0, **kwargs):
Severity: Major
Found in appJar/appjar.py - About 1 hr to fix

    Function _radioButtonMaker has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def _radioButtonMaker(self, title, name, row=None, column=0, colspan=0, rowspan=0, **kwargs):
    Severity: Major
    Found in appJar/appjar.py - About 1 hr to fix

      Function panedFrameVertical has 8 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def panedFrameVertical(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
      Severity: Major
      Found in appJar/appjar.py - About 1 hr to fix

        Function frameStack has 8 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def frameStack(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
        Severity: Major
        Found in appJar/appjar.py - About 1 hr to fix

          Function subWindow has 8 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def subWindow(self, name, title=None, modal=False, blocking=False, transient=False, grouped=True, **kwargs):
          Severity: Major
          Found in appJar/appjar.py - About 1 hr to fix

            Function _scaleMaker has 8 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def _scaleMaker(self, title, label, row=None, column=0, colspan=0, rowspan=0, **kwargs):
            Severity: Major
            Found in appJar/appjar.py - About 1 hr to fix

              Function frame has 8 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def frame(self, title=None, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
              Severity: Major
              Found in appJar/appjar.py - About 1 hr to fix

                Function _positionWidget has 8 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def _positionWidget( self, widget, row, column=0, colspan=0, rowspan=0, sticky=W+E, updateBg=True):
                Severity: Major
                Found in appJar/appjar.py - About 1 hr to fix

                  Function panedFrame has 8 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def panedFrame(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
                  Severity: Major
                  Found in appJar/appjar.py - About 1 hr to fix

                    Function addButtons has 8 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def addButtons(self, names, funcs, row=None, column=0, colspan=0, rowspan=0, fill=False):
                    Severity: Major
                    Found in appJar/appjar.py - About 1 hr to fix

                      Function addDbOptionBox has 8 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def addDbOptionBox(self, title, db, row=None, column=0, colspan=0, rowspan=0, **kwargs):
                      Severity: Major
                      Found in appJar/appjar.py - About 1 hr to fix

                        Function notebook has 8 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def notebook(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
                        Severity: Major
                        Found in appJar/appjar.py - About 1 hr to fix

                          Function addSpinBox has 8 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def addSpinBox(self, title, values, row=None, column=0, colspan=0, rowspan=0, **kwargs):
                          Severity: Major
                          Found in appJar/appjar.py - About 1 hr to fix

                            Function startScrollPane has 8 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def startScrollPane(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", disabled=""):
                            Severity: Major
                            Found in appJar/appjar.py - About 1 hr to fix

                              Function addNamedButton has 8 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def addNamedButton(self, name, title, func, row=None, column=0, colspan=0, rowspan=0):
                              Severity: Major
                              Found in appJar/appjar.py - About 1 hr to fix

                                Function tabbedFrame has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def tabbedFrame(self, title, row=None, column=0, colspan=0, rowspan=0, sticky="NSEW", **kwargs):
                                Severity: Major
                                Found in appJar/appjar.py - About 1 hr to fix
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language