jarvisteach/appJar

View on GitHub

Showing 542 of 3,395 total issues

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

    def _linkMaker(self, title, value, 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__(
    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 startContainer has 9 arguments (exceeds 4 allowed). Consider refactoring.
        Open

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

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

              def addLabelOptionBox(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 addIconButton has 9 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                  def addIconButton(self, title, func, iconName, 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 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 __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 _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 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 _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 _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 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 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 updateMap has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def updateMap(self):
                                        if not self.alive: return
                                        if not self.imageQueue.empty():
                                            self.rawData = self.imageQueue.get()
                                            self.mapData = base64.encodestring(self.rawData)
                                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 getName has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def getName(self, widget):
                                        if widget is not None and hasattr(widget, 'APPJAR_TYPE'):
                                            widgetType = widget.APPJAR_TYPE
                                            widgGroup = self.group(widgetType, None)
                                            if widgGroup is not None:
                                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