EventGhost/EventGhost

View on GitHub

Showing 1,804 of 2,440 total issues

File __init__.py has 1498 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: Major
Found in eg/WinApi/Dynamic/__init__.py - About 3 days to fix

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

    version="0.2"
    # plugins/Impress/__init__.py
    #
    # Copyright (C)  2008-2013 Pako  (lubos.ruckl@quick.cz)
    #
    Severity: Major
    Found in plugins/OOo_Impress/__init__.py - About 3 days to fix

      Function __init__ has a Cognitive Complexity of 182 (exceeds 5 allowed). Consider refactoring.
      Open

          def __init__(self, text, plugin):
              wx.Dialog.__init__(
                  self,
                  None,
                  -1,
      Severity: Minor
      Found in plugins/RadioSure/__init__.py - About 3 days 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 166 (exceeds 5 allowed). Consider refactoring.
      Open

          def Configure(
              self,
              plName="",
              mode=0,
              listRules=[[-1,-1,u""]],
      Severity: Minor
      Found in plugins/MediaMonkey/__init__.py - About 3 days 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 1183 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      # -*- coding: utf-8 -*-
      #
      # plugins/OSM/__init__.py
      #
      # Copyright (C)  2009-2011 Pako  (lubos.ruckl@quick.cz)
      Severity: Major
      Found in plugins/OSM/__init__.py - About 3 days to fix

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

        # -*- coding: utf-8 -*-
        #
        # This file is a plugin for EventGhost.
        # Copyright © EventGhost Project <http://www.eventghost.net/>
        #
        Severity: Major
        Found in plugins/Atric_IRWakeupUSB/__init__.py - About 3 days to fix

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

          # -*- coding: utf-8 -*-
          
          version="0.0.1"
          
          # plugins/RemoteEventMapper/__init__.py
          Severity: Major
          Found in plugins/RemoteEventMapper/__init__.py - About 2 days to fix

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

            # -*- coding: utf-8 -*-
            #
            # plugins/OSE/__init__.py
            # Copyright (C)  2010 Pako  (lubos.ruckl@quick.cz)
            #
            Severity: Major
            Found in plugins/OSE/__init__.py - About 2 days to fix

              Function Configure has a Cognitive Complexity of 143 (exceeds 5 allowed). Consider refactoring.
              Open

                  def Configure(self, stp = []):
              
              #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                      self.flag2=True
                      def validation():
              Severity: Minor
              Found in plugins/E-mail/__init__.py - About 2 days 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 1128 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              # -*- coding: utf-8 -*-
              
              version="0.2.5"
              
              # plugins/IrfanView/__init__.py
              Severity: Major
              Found in plugins/IrfanView/__init__.py - About 2 days to fix

                File __init__.py has 1072 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: Major
                Found in plugins/ZoomPlayer/__init__.py - About 2 days to fix

                  Function Configure has a Cognitive Complexity of 130 (exceeds 5 allowed). Consider refactoring.
                  Open

                      def Configure(self, config='',listKs=[]):
                          self.config = config
                          self.listKeys = listKs[:]
                          text = self.text
                          panel = eg.ConfigPanel(self)
                  Severity: Minor
                  Found in plugins/Multitap/__init__.py - About 2 days 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 RealizeAction has a Cognitive Complexity of 126 (exceeds 5 allowed). Consider refactoring.
                  Open

                      def RealizeAction(self, indx, sel, mode):
                          obsData = self.plugin.tempData[indx][2]
                          observName = self.plugin.tempData[indx][0]
                          resultMessage = None
                          oldAccount = ''
                  Severity: Minor
                  Found in plugins/E-mail/__init__.py - About 2 days 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 do_POST has a Cognitive Complexity of 125 (exceeds 5 allowed). Consider refactoring.
                  Open

                      def do_POST(self):
                          """Serve a POST request."""
                          # First do Basic HTTP-Authentication, if set
                          if not self.Authenticate():
                              return
                  Severity: Minor
                  Found in plugins/Webserver/__init__.py - About 2 days 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 997 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  # -*- coding: utf-8 -*-
                  
                  version = "0.1.14"
                  
                  # Copyright (C) 2008, 2009  Pako <lubos.ruckl@quick.cz>
                  Severity: Major
                  Found in plugins/Multitap/__init__.py - About 2 days to fix

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

                        def __call__(self, val = 22, fileSuff = "", folderSuff = ""):
                            if self.plugin.menuDlg:
                                eg.event.skipEvent = True
                                filePath, prefix, suffix = self.plugin.menuDlg.GetInfo()
                                filePath = filePath.replace(folder_ID,"")
                    Severity: Minor
                    Found in plugins/OSE/__init__.py - About 2 days 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 121 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def Configure(self, pluginConfig={}, *args):
                                    def UpdateActions(event):
                                        def GetActions():
                                            URL = 'https://raw.githubusercontent.com/xbmc/xbmc/Krypton/xbmc/input/ButtonTranslator.cpp'
                                            request = urllib2.Request(URL)
                    Severity: Minor
                    Found in plugins/XBMCRepeat/__init__.py - About 2 days 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 982 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: Major
                    Found in plugins/TestPatterns/__init__.py - About 2 days to fix

                      File __init__.py has 933 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: Major
                      Found in eg/Classes/MainFrame/__init__.py - About 2 days to fix

                        Function handle_read has a Cognitive Complexity of 112 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def handle_read(self):
                                # Append data from the socket onto a buffer
                                self.buffer += self.recv(4096)
                                # Attempt to detect delimeter used..
                                if self.delimeter == '':
                        Severity: Minor
                        Found in plugins/Lirc/__init__.py - About 2 days 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