jarvisteach/appJar

View on GitHub

Showing 542 of 3,395 total issues

Function coords has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
Open

    def coords(self):
        # The tip window must be completely outside the master widget;
        # otherwise when the mouse enters the tip window we get
        # a leave event and it disappears, and then we get an enter
        # event and it reappears, and so on forever :-(
Severity: Minor
Found in appJar/lib/tooltip.py - About 45 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

Avoid deeply nested control flow statements.
Open

                with app3.panedFrame("vpf1", vertical=True):
                    app3.addLabel("l2", "label")
        with app3.tab("t3", beforeTab='t2'):
Severity: Major
Found in tests/widget_test.py - About 45 mins to fix

    Consider simplifying this complex logical expression.
    Open

                if mode == "set" or (mode in [ "in", "clear"] and entry.showingDefault):
                    var.set("")
                    entry.showingDefault = False
                    entry.config(justify=entry.oldJustify)
                    if not self.ttkFlag:
    Severity: Major
    Found in appJar/appjar.py - About 40 mins to fix

      Function updateListBox has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def updateListBox(self, title, items, select=False, callFunction=True):
      Severity: Minor
      Found in appJar/appjar.py - About 35 mins to fix

        Function button has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def button(self, title, value=None, *args, **kwargs):
        Severity: Minor
        Found in appJar/appjar.py - About 35 mins to fix

          Function setListItem has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def setListItem(self, title, item, newVal, first=False):
          Severity: Minor
          Found in appJar/appjar.py - About 35 mins to fix

            Function _buildButton has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def _buildButton(self, title, func, frame, name=None):
            Severity: Minor
            Found in appJar/appjar.py - About 35 mins to fix

              Function spinBox has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def spinBox(self, title, value=None, *args, **kwargs):
              Severity: Minor
              Found in appJar/appjar.py - About 35 mins to fix

                Function listbox has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def listbox(self, title, value=None, *args, **kwargs):
                Severity: Minor
                Found in appJar/appjar.py - About 35 mins to fix

                  Function addListItem has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def addListItem(self, title, item, pos=None, select=True):
                  Severity: Minor
                  Found in appJar/appjar.py - About 35 mins to fix

                    Function map has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def map(self, title, value=None, *args, **kwargs):
                    Severity: Minor
                    Found in appJar/appjar.py - About 35 mins to fix

                      Function table has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def table(self, title, value=None, *args, **kwargs):
                      Severity: Minor
                      Found in appJar/appjar.py - About 35 mins to fix

                        Function renameOptionBoxItem has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def renameOptionBoxItem(self, title, item, newName=None, callFunction=False):
                        Severity: Minor
                        Found in appJar/appjar.py - About 35 mins to fix

                          Function threadCallback has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def threadCallback(self, func, callback, *args, **kwargs):
                          Severity: Minor
                          Found in appJar/appjar.py - About 35 mins to fix

                            Function link has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def link(self, title, value=None, *args, **kwargs):
                            Severity: Minor
                            Found in appJar/appjar.py - About 35 mins to fix

                              Function label has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def label(self, title, value=None, *args, **kwargs):
                              Severity: Minor
                              Found in appJar/appjar.py - About 35 mins to fix

                                Function _registerExternalDropTarget has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def _registerExternalDropTarget(self, title, widget, function=None, replace=True):
                                Severity: Minor
                                Found in appJar/appjar.py - About 35 mins to fix

                                  Function _registerInternalDragSource has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def _registerInternalDragSource(self, kind, title, widget, function=None):
                                  Severity: Minor
                                  Found in appJar/appjar.py - About 35 mins to fix

                                    Function setScaleRange has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def setScaleRange(self, title, start, end, curr=None):
                                    Severity: Minor
                                    Found in appJar/appjar.py - About 35 mins to fix

                                      Function _getRCS has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          def _getRCS(self, row, column, colspan, rowspan):
                                      Severity: Minor
                                      Found in appJar/appjar.py - About 35 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language