jarvisteach/appJar

View on GitHub

Showing 542 of 3,395 total issues

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 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 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 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 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 _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 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 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 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 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 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 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 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 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 _copyAndPasteHelper has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def _copyAndPasteHelper(self, menu):
                                        if menu == "Cut":
                                            self.copyAndPaste.cut()
                                        elif menu == "Copy":
                                            self.copyAndPaste.copy()
                                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 addStatusbar has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def addStatusbar(self, header="", fields=1, side=None):
                                        if not self.hasStatus:
                                            class Statusbar(Frame, object):
                                                def __init__(self, master, **kwargs):
                                                    super(Statusbar, self).__init__(master, **kwargs)
                                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

                                Severity
                                Category
                                Status
                                Source
                                Language