jarvisteach/appJar

View on GitHub

Showing 542 of 3,395 total issues

Function startPagedWindow has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def startPagedWindow(self, title, row=None, column=0, colspan=0, rowspan=0):
Severity: Minor
Found in appJar/appjar.py - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                    with app.panedFrame("c"): app.label("Pane 3")
                    with app.panedFrame("d"): app.label("Pane 4")
    Severity: Major
    Found in appJar/examples/showcase.py - About 45 mins to fix

      Function addTurtle has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def addTurtle(self, title, row=None, column=0, colspan=0, rowspan=0):
      Severity: Minor
      Found in appJar/appjar.py - About 45 mins to fix

        Function addCanvasCircle has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def addCanvasCircle(self, title, x, y, diameter, **kwargs):
        Severity: Minor
        Found in appJar/appjar.py - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                          with app.panedFrameVertical("b"): app.label("Pane 2")
                          with app.panedFrame("c"): app.label("Pane 3")
          Severity: Major
          Found in appJar/examples/showcase.py - About 45 mins to fix

            Function setLocation has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def setLocation(self, x, y=None, ignoreSettings=None, win=None, up=0):
            Severity: Minor
            Found in appJar/appjar.py - About 45 mins to fix

              Function addMicroBit has 6 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def addMicroBit(self, title, row=None, column=0, colspan=0, rowspan=0):
              Severity: Minor
              Found in appJar/appjar.py - About 45 mins to fix

                Function addDatePicker has 6 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    def addDatePicker(self, name, row=None, column=0, colspan=0, rowspan=0):
                Severity: Minor
                Found in appJar/appjar.py - About 45 mins to fix

                  Function showSplash has 6 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def showSplash(self, text="appJar", fill="#FF0000", stripe="#000000", fg="#FFFFFF", font=44):
                  Severity: Minor
                  Found in appJar/appjar.py - About 45 mins to fix

                    Function _buildOptionBox has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def _buildOptionBox(self, frame, title, options, kind="normal", disabled='-'):
                    Severity: Minor
                    Found in appJar/appjar.py - About 45 mins to fix

                      Function addCanvasImage has 6 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def addCanvasImage(self, title, x, y, image=image, **kwargs):
                      Severity: Minor
                      Found in appJar/appjar.py - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                        with app.panedFrame("right"):
                                            app.slider("TransparencyScale", 100, change=scale, interval=25)
                                            app.spin("TransparencySpin", value=0, endValue=100, item='100', change=scale)
                                            app.slider("FontScale", 12, show=True, change=scale, range=(6,40))
                        
                        
                        Severity: Major
                        Found in appJar/examples/showcase.py - About 45 mins to fix

                          Function setOptionBox has 6 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def setOptionBox(self, title, index, value=True, callFunction=True, override=False):
                          Severity: Minor
                          Found in appJar/appjar.py - About 45 mins to fix

                            Function addGoogleMap has 6 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def addGoogleMap(self, title, row=None, column=0, colspan=0, rowspan=0):
                            Severity: Minor
                            Found in appJar/appjar.py - About 45 mins to fix

                              Function plot has 6 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def plot(self, title, t=None, s=None, *args, **kwargs):
                              Severity: Minor
                              Found in appJar/appjar.py - About 45 mins to fix

                                Function addCanvas has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                    def addCanvas(self, title, row=None, column=0, colspan=0, rowspan=0):
                                Severity: Minor
                                Found in appJar/appjar.py - About 45 mins to fix

                                  Function addCanvasText has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def addCanvasText(self, title, x, y, text=None, **kwargs):
                                  Severity: Minor
                                  Found in appJar/appjar.py - About 45 mins to fix

                                    Function setCanvasEvent has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def setCanvasEvent(self, title, item, event, function, add=None):
                                    Severity: Minor
                                    Found in appJar/appjar.py - About 45 mins to fix

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

                                      def move(direction):
                                          if direction == ">":
                                              for item in app.getListBox("Animals"):
                                                  app.addListItem("Sports",item)
                                                  app.removeListItem("Animals", item)
                                      Severity: Minor
                                      Found in appJar/examples/showcase.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

                                                      for i in range(5):
                                                          l = "DD"+str(i)
                                                          app.label(l, l, pos=(0, i), tip=colours[i], bg=colours[i], fg="white", drag=[drag, drop])
                                      
                                      
                                      Severity: Major
                                      Found in appJar/examples/showcase.py - About 45 mins to fix
                                        Severity
                                        Category
                                        Status
                                        Source
                                        Language