jarvisteach/appJar

View on GitHub

Showing 542 of 3,395 total issues

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

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

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

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

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

              def moveWidgetType(self, kind, name, row=None, column=0, colspan=0, rowspan=0, sticky=W+E):
          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 _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 addLabelEntry has 8 arguments (exceeds 4 allowed). Consider refactoring.
                Open

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

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

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

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

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

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

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

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

                            def openBox(self, title=None, dirName=None, fileTypes=None, asFile=False, parent=None, multiple=False, mode='r'):
                        Severity: Major
                        Found in appJar/appjar.py - About 1 hr to fix

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

                              def saveBox( self, title=None, fileName=None, dirName=None, fileExt=".txt",
                          Severity: Major
                          Found in appJar/appjar.py - About 1 hr to fix

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

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

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

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

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

                                    def table(self, title, value=None, *args, **kwargs):
                                        """ simpleGUI - adds, sets & gets tables all in one go """
                                        widgKind = WIDGET_NAMES.Table
                                        kind = kwargs.pop("kind", 'normal')
                                
                                
                                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 scale has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def scale(self, title, *args, **kwargs):
                                        """ simpleGUI - adds, sets & gets scales all in one go """
                                        widgKind = WIDGET_NAMES.Scale
                                
                                        vert = kwargs.pop("direction", "horizontal").lower() == "vertical"
                                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 _mouseScroll has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def _mouseScroll(self, horiz, event):
                                        direction = 0
                                
                                        # get direction
                                        if event.num == 4:
                                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

                                Severity
                                Category
                                Status
                                Source
                                Language