jarvisteach/appJar

View on GitHub

Showing 542 of 3,395 total issues

Function _parsePos has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    def _parsePos(self, pos, kwargs):
        # alternative for specifying position
        if type(pos) != list and type(pos) != tuple: pos = (pos,)
        if len(pos) > 0: kwargs["row"] = pos[0]
        if len(pos) > 1: kwargs["column"] = pos[1]
Severity: Minor
Found in appJar/appjar.py - About 55 mins 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 textArea has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    def textArea(self, title, value=None, *args, **kwargs):
        """ adds, sets & gets textAreas all in one go """
        widgKind = WIDGET_NAMES.TextArea
        scroll = kwargs.pop("scroll", False)
        end = kwargs.pop("end", True)
Severity: Minor
Found in appJar/appjar.py - About 55 mins 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 setToolbarBg has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    def setToolbarBg(self, bg):
        self.tb.BG_COLOR = bg
        if not self.ttkFlag:
            self.tb.config(bg=self.tb.BG_COLOR)
            if gui.GET_PLATFORM() == gui.MAC:
Severity: Minor
Found in appJar/appjar.py - About 55 mins 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 button has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    def button(self, title, value=None, *args, **kwargs):
        """ simpleGUI - adds, sets & gets buttons all in one go """
        widgKind = WIDGET_NAMES.Button
        image = kwargs.pop("image", None)
        icon = kwargs.pop("icon", None)
Severity: Minor
Found in appJar/appjar.py - About 55 mins 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 tree has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
Open

    def tree(self, title, value=None, *args, **kwargs):
        """ simpleGUI - adds, sets & gets trees all in one go """
        widgKind = WIDGET_NAMES.Tree

        click = kwargs.pop("click", None)
Severity: Minor
Found in appJar/appjar.py - About 55 mins 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 addRadioButton has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

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

    Function configureWidget has 7 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def configureWidget(self, kind, name, option, value, key=None, deprecated=False):
    Severity: Major
    Found in appJar/appjar.py - About 50 mins to fix

      Function addNamedCheckBox has 7 arguments (exceeds 4 allowed). Consider refactoring.
      Open

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

        Function addButton has 7 arguments (exceeds 4 allowed). Consider refactoring.
        Open

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

          Function addCanvasLine has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def addCanvasLine(self, title, x, y, x2, y2, **kwargs):
          Severity: Major
          Found in appJar/appjar.py - About 50 mins to fix

            Function addSelectableLabel has 7 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def addSelectableLabel(self, title, text=None, row=None, column=0, colspan=0, rowspan=0):
            Severity: Major
            Found in appJar/appjar.py - About 50 mins to fix

              Function _bindOverEvent has 7 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def _bindOverEvent(self, kind, name, widget, functions, eventType, key=None):
              Severity: Major
              Found in appJar/appjar.py - About 50 mins to fix

                Function _addContainer has 7 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def _addContainer(self, cTitle, cType, container, row, col, sticky=None):
                Severity: Major
                Found in appJar/appjar.py - About 50 mins to fix

                  Function startTabbedFrame has 7 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

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

                    Function startPanedFrame has 7 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

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

                      Function toggleFrame has 7 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

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

                        Function startFrame has 7 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

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

                          Function addFlashLabel has 7 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def addFlashLabel(self, title, text=None, row=None, column=0, colspan=0, rowspan=0):
                          Severity: Major
                          Found in appJar/appjar.py - About 50 mins to fix

                            Function _bindEvent has 7 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def _bindEvent(self, kind, name, widget, function, eventType, key=None):
                            Severity: Major
                            Found in appJar/appjar.py - About 50 mins to fix

                              Function pagedWindow has 7 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def pagedWindow(self, title, row=None, column=0, colspan=0, rowspan=0, **kwargs):
                              Severity: Major
                              Found in appJar/appjar.py - About 50 mins to fix
                                Severity
                                Category
                                Status
                                Source
                                Language