jarvisteach/appJar

View on GitHub

Showing 542 of 3,395 total issues

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

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

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

        def _getImageData(self, imageData, fmt="gif"):
            if fmt=="png":
                self._importPngimagetk()
                if PngImageTk is False:
                    raise Exception("TKINTERPNG library not found, PNG files not supported: imageData")
    Severity: Minor
    Found in appJar/appjar.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

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

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

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

          def tab(self, title, tabTitle=None, **kwargs):
              beforeTab = kwargs.pop("beforeTab", None)
              afterTab = kwargs.pop("afterTab", None)
              if tabTitle is None:
                  try:
      Severity: Minor
      Found in appJar/appjar.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

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

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

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

            def __init__(self, parent, app, defaultLocation="Marlborough, UK", proxyString=None, useTtk=False, font=None):
        Severity: Minor
        Found in appJar/appjar.py - About 45 mins to fix

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

              def setTextArea(self, title, text, end=True, callFunction=True, tag=None):
          Severity: Minor
          Found in appJar/appjar.py - About 45 mins to fix

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

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

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

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

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

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

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

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

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

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

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

                          def setTreeColours(self, title, fg=None, bg=None, fgH=None, bgH=None):
                      Severity: Minor
                      Found in appJar/appjar.py - About 45 mins to fix

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

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

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

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

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

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

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

                                  def _buildFileEntry(self, title, frame, kind='save', text=None, default=None):
                              Severity: Minor
                              Found in appJar/appjar.py - About 45 mins to fix

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

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

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

                                      def getBg(self):
                                          if self._getContainerProperty('type') == WIDGET_NAMES.RootPage:
                                              if not self.ttkFlag:
                                                  return self.bgLabel.cget("bg")
                                              else:
                                  Severity: Minor
                                  Found in appJar/appjar.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

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

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