EventGhost/EventGhost

View on GitHub

Showing 1,804 of 2,440 total issues

Function GetLabel has 64 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def GetLabel(
Severity: Major
Found in plugins/SunTracker/__init__.py - About 1 day to fix

    File __init__.py has 500 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    # -*- coding: utf-8 -*-
    #
    # This file is part of EventGhost.
    # Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
    #
    Severity: Minor
    Found in plugins/Mouse/__init__.py - About 1 day to fix

      Function DoTask has a Cognitive Complexity of 51 (exceeds 5 allowed). Consider refactoring.
      Open

          def DoTask(self):
              buildSetup = self.buildSetup
              appVer = "v" + buildSetup.appVersion
              gitConfig = buildSetup.gitConfig
              token = gitConfig["token"]
      Severity: Minor
      Found in _build/builder/ReleaseToGitHub.py - About 7 hrs 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

      File Document.py has 492 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # -*- coding: utf-8 -*-
      #
      # This file is part of EventGhost.
      # Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
      #
      Severity: Minor
      Found in eg/Classes/Document.py - About 7 hrs to fix

        Function Configure has 194 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            def Configure(  self,
                            useSendMessage=False,
                            oldInterface=False,
                            newInterface=True,
                            startDVBViewerByCOM=False,
        Severity: Major
        Found in plugins/DVBViewer/__init__.py - About 7 hrs to fix

          File Utils.py has 488 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          # -*- coding: utf-8 -*-
          #
          # This file is part of EventGhost.
          # Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
          #
          Severity: Minor
          Found in eg/Utils.py - About 7 hrs to fix

            File __init__.py has 482 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            # -*- coding: utf-8 -*-
            #
            # This file is a plugin for EventGhost.
            # Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
            #
            Severity: Minor
            Found in plugins/DesktopRemote/__init__.py - About 7 hrs to fix

              File SendKeys.py has 482 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              # -*- coding: utf-8 -*-
              #
              # This file is part of EventGhost.
              # Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
              #
              Severity: Minor
              Found in eg/WinApi/SendKeys.py - About 7 hrs to fix

                Function GetGitHubConfig has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
                Open

                def GetGitHubConfig():
                    """
                    Get GitHub from .gitconfig .
                    """
                
                
                Severity: Minor
                Found in _build/builder/Utils.py - About 7 hrs 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 main has a Cognitive Complexity of 48 (exceeds 5 allowed). Consider refactoring.
                Open

                    def main(self,mainThreadEvent):
                        messageOld = ""
                        while not mainThreadEvent.isSet():
                            readable, writeable, errored = select.select([self.UDPSock],[],[],60)
                            if len(readable) == 1 :
                Severity: Minor
                Found in plugins/RFXcom_xPL/__init__.py - About 7 hrs 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

                File LanguageEditor.py has 475 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                # -*- coding: utf-8 -*-
                #
                # This file is part of EventGhost.
                # Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
                #
                Severity: Minor
                Found in eg/Classes/LanguageEditor.py - About 7 hrs to fix

                  File ShowMessageBox.py has 470 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  # -*- coding: utf-8 -*-
                  #
                  # This file is part of EventGhost.
                  # Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
                  #
                  Severity: Minor
                  Found in plugins/EventGhost/ShowMessageBox.py - About 7 hrs to fix

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

                        def __call__(
                            self,
                            rangeName,
                            iOffset,
                            tlStartType,
                    Severity: Minor
                    Found in plugins/SunTracker/__init__.py - About 7 hrs 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 __init__ has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def __init__(
                            self,
                            error,
                            imageFile,
                            sizeMode,
                    Severity: Minor
                    Found in plugins/System/__init__.py - About 7 hrs 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 181 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        def Configure(  self,
                            deleteQueryTpl=None
                        ) :
                            def UpdateQueryFromGuiSettings(q):
                                q.deleteByName, q.titleName = q.checkStringArg(deleteByNameCB.GetValue(), titleNameComboCtrl.GetValue())
                    Severity: Major
                    Found in plugins/DVBViewer/__init__.py - About 7 hrs to fix

                      Function handle_one_request has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
                      Open

                          def handle_one_request(self):
                              if not self.handshake_done:
                                  try:
                                      SimpleHTTPRequestHandler.handle_one_request(self)
                                  except Exception, exc:
                      Severity: Minor
                      Found in plugins/Webserver/__init__.py - About 7 hrs 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

                      File __init__.py has 450 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      # -*- coding: utf-8 -*-
                      #
                      # This file is a plugin for EventGhost.
                      # Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
                      #
                      Severity: Minor
                      Found in plugins/Barco/__init__.py - About 6 hrs to fix

                        Function ValueUpdate has a Cognitive Complexity of 44 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def ValueUpdate(self, text):
                                if text == self.waitStr:
                                    self.waitStr = None
                                    self.waitFlag.set()
                                    return
                        Severity: Minor
                        Found in plugins/ZoomPlayer/__init__.py - About 6 hrs 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

                        File __init__.py has 447 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        eg.RegisterPlugin(
                            name = "Sound Mixer Ex",
                            author = "Dexter",
                            version = "1.1.1204",
                            description = (
                        Severity: Minor
                        Found in plugins/SoundMixerEx/__init__.py - About 6 hrs to fix

                          File FindWindow.py has 446 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open

                          # -*- coding: utf-8 -*-
                          #
                          # This file is a plugin for EventGhost.
                          # Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
                          #
                          Severity: Minor
                          Found in plugins/Window/FindWindow.py - About 6 hrs to fix
                            Severity
                            Category
                            Status
                            Source
                            Language