EventGhost/EventGhost

View on GitHub

Showing 1,804 of 2,440 total issues

Avoid too many return statements within this function.
Open

                return None
Severity: Major
Found in plugins/System/Registry.py - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

                    return False
    Severity: Major
    Found in plugins/System/Registry.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                  return 1
      Severity: Major
      Found in plugins/System/Registry.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                        return value
        Severity: Major
        Found in plugins/System/Registry.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                          return True
          Severity: Major
          Found in plugins/System/Registry.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                            return None
            Severity: Major
            Found in plugins/Webserver/__init__.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return thepage
              Severity: Major
              Found in plugins/Webserver/__init__.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                                return
                Severity: Major
                Found in eg/Classes/App.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                          return any(this == version for version in versions)
                  Severity: Major
                  Found in eg/Classes/WindowsVersion.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                            return False
                    Severity: Major
                    Found in eg/Classes/TreeItem.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                              return False
                      Severity: Major
                      Found in eg/Classes/TreeItem.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return True
                        Severity: Major
                        Found in eg/Classes/AddPluginDialog.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                  return False
                          Severity: Major
                          Found in eg/WinApi/Utils.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                    return any(this != version for version in versions)
                            Severity: Major
                            Found in eg/Classes/WindowsVersion.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                              return False
                              Severity: Major
                              Found in eg/Classes/TreeItem.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                        return True
                                Severity: Major
                                Found in eg/Classes/TreeItem.py - About 30 mins to fix

                                  Function __call__ has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      def __call__(self):
                                          key = eval("self.plugin.dh.document[self.value[0]]")
                                          FindWindow = FindWindowFunction(key,u'Button',1)
                                          hwnds = FindWindow()
                                          if self.value[1] != "": #for toggle actions
                                  Severity: Minor
                                  Found in plugins/ScreamerRadio/__init__.py - About 25 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 RemoveDirs has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      def RemoveDirs(self, localDir, remoteDir, remotePath):
                                          for dirName in remoteDir.dirs:
                                              if dirName not in localDir.dirs:
                                                  localSubDir = Directory()
                                              else:
                                  Severity: Minor
                                  Found in _build/builder/SftpSync.py - About 25 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 DoTask has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      def DoTask(self):
                                          buildSetup = self.buildSetup
                                          menuTabs = (HomePage, DocsPage, WikiPage, ForumPage, DownloadPage)
                                          env = Environment(
                                              loader=FileSystemLoader(
                                  Severity: Minor
                                  Found in _build/builder/BuildWebsite.py - About 25 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 OnEnter has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                      def OnEnter(self):
                                          self.timer.cancel()
                                          if self.mode < 3:
                                              if self.oldKeys != '':
                                                  if self.mode!=2:
                                  Severity: Minor
                                  Found in plugins/Multitap/__init__.py - About 25 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