jarvisteach/appJar

View on GitHub

Showing 542 of 3,395 total issues

Function labelFrame has 9 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def labelFrame(self, title, row=None, column=0, colspan=0, rowspan=0, sticky=W, hideTitle=False, **kwargs):
Severity: Major
Found in appJar/appjar.py - About 1 hr to fix

    Function addImageButton has 9 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def addImageButton(self, title, func, imgFile, row=None, column=0, colspan=0, rowspan=0, align=None):
    Severity: Major
    Found in appJar/appjar.py - About 1 hr to fix

      Function _addButtons has 9 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def _addButtons(self, names, funcs, row=None, column=0, colspan=0, rowspan=0, fill=False, **kwargs):
      Severity: Major
      Found in appJar/appjar.py - About 1 hr to fix

        Function addLabelTickOptionBox has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def addLabelTickOptionBox(self, title, options, row=None, column=0, colspan=0, rowspan=0, disabled="-", **kwargs):
        Severity: Major
        Found in appJar/appjar.py - About 1 hr to fix

          Function addOptionBox has 9 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def addOptionBox(self, title, options, row=None, column=0, colspan=0, rowspan=0, disabled='-', **kwargs):
          Severity: Major
          Found in appJar/appjar.py - About 1 hr to fix

            Function addPlotFig has 9 arguments (exceeds 4 allowed). Consider refactoring.
            Open

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

              Function addSpinBoxRange has 9 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def addSpinBoxRange(self, title, fromVal, toVal, row=None, column=0, colspan=0, rowspan=0, **kwargs):
              Severity: Major
              Found in appJar/appjar.py - About 1 hr to fix

                Function _labelMaker has 9 arguments (exceeds 4 allowed). Consider refactoring.
                Open

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

                  Function addLabelAutoEntry has 9 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def addLabelAutoEntry(self, title, words, 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 _textMaker has 9 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

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

                      Function __init__ has 9 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                          def __init__(self, win, parent, name, title=None, stopFunc=None, modal=False, blocking=False, transient=False, grouped=True):
                      Severity: Major
                      Found in appJar/appjar.py - About 1 hr to fix

                        Function addMenuItem has 9 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                            def addMenuItem(self, title, item, func=None, kind=None, shortcut=None, underline=-1, rb_id=None, createBinding=True):
                        Severity: Major
                        Found in appJar/appjar.py - About 1 hr to fix

                          Function _messageMaker has 9 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

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

                            Function _validateNumericEntry has 9 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                def _validateNumericEntry(self, action, index, value_if_allowed, prior_value, text, validation_type, trigger_type, widget_name):
                            Severity: Major
                            Found in appJar/appjar.py - About 1 hr to fix

                              Function __init__ has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  def __init__(self, parent, title, data, action=None, addRow=None,
                                                  actionHeading="Action", actionButton="Press",
                                                  addButton="Add", showMenu=False, queueFunction=None, border='solid', **opts):
                              
                                      self.title = title
                              Severity: Minor
                              Found in appJar/appjar.py - About 1 hr to fix

                                Function TINT has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def TINT(widget, colour):
                                        col = []
                                        for a, b in enumerate(widget.winfo_rgb(colour)):
                                            t = int(min(max(0, b / 256 + (255 - b / 256) * .3), 255))
                                            t = str(hex(t))[2:]
                                Severity: Minor
                                Found in appJar/appjar.py - About 1 hr 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 _animateImage has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def _animateImage(self, title, firstTime=False):
                                        if not self.alive: return
                                        try:
                                            lab = self.widgetManager.get(WIDGET_NAMES.Image, title)
                                        except ItemLookupError:
                                Severity: Minor
                                Found in appJar/appjar.py - About 1 hr 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 selectListItem has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def selectListItem(self, title, item, callFunction=True):
                                        lb = self.widgetManager.get(WIDGET_NAMES.ListBox, title)
                                        positions = self._getListPositions(title, item)
                                        if len(positions) > 1 and lb.cget("selectmode") == EXTENDED:
                                            allOk = True
                                Severity: Minor
                                Found in appJar/appjar.py - About 1 hr 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 configure has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def configure(self, cnf=None, **kw):
                                        kw = gui.CLEAN_CONFIG_DICTIONARY(**kw)
                                
                                        if "bg" in kw:
                                            if gui.GET_PLATFORM() == gui.MAC:
                                Severity: Minor
                                Found in appJar/appjar.py - About 1 hr 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 _setPinBut has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def _setPinBut(self):
                                
                                        # only call this once
                                        if self.tb.pinBut is not None:
                                            return
                                Severity: Minor
                                Found in appJar/appjar.py - About 1 hr 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