jarvisteach/appJar

View on GitHub

Showing 542 of 3,395 total issues

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

    def updateMap(self):
        if not self.alive: return
        if not self.imageQueue.empty():
            self.rawData = self.imageQueue.get()
            self.mapData = base64.encodestring(self.rawData)
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 getName has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
Open

    def getName(self, widget):
        if widget is not None and hasattr(widget, 'APPJAR_TYPE'):
            widgetType = widget.APPJAR_TYPE
            widgGroup = self.group(widgetType, None)
            if widgGroup is not None:
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 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 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 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 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 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

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

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

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

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

                              def _addImageObj(self, name, img, row=None, column=0, colspan=0, rowspan=0, compound=None):
                          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 _listBoxMaker has 8 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def _listBoxMaker(self, name, values=None, row=None, column=0, colspan=0, rowspan=0, **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
                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language