EventGhost/EventGhost

View on GitHub

Showing 1,804 of 2,440 total issues

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

# -*- coding: utf-8 -*-
version = "3.13.3"
#
# This file is part of EventGhost.
# Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/>
Severity: Major
Found in plugins/Webserver/__init__.py - About 2 wks to fix

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

    # -*- coding: utf-8 -*-
    
    version="0.2.22"
    
    # plugins/RadioSure/__init__.py
    Severity: Major
    Found in plugins/RadioSure/__init__.py - About 2 wks to fix

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

      # -*- coding: utf-8 -*-
      #
      # This file is a plugin for EventGhost.
      # plugins/SunTracker/__init__.py
      #
      Severity: Major
      Found in plugins/SunTracker/__init__.py - About 2 wks to fix

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

        #!/usr/bin/env python
        # -*- coding: UTF-8 -*-
        
        PLUGIN_VERSION                       = "3.0.1"
        SUPPORTED_DVBVIEWER_VERSIONS         = '4.9.x (older versions might work but are untested)'
        Severity: Major
        Found in plugins/DVBViewer/__init__.py - About 1 wk to fix

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

          # -*- coding: utf-8 -*-
          #
          # plugins/MediaMonkey/__init__.py
          #
          # Copyright (C)  2009-2011 Pako  <lubos.ruckl@quick.cz>
          Severity: Major
          Found in plugins/MediaMonkey/__init__.py - About 1 wk to fix

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

            # -*- coding: utf-8 -*-
            
            version = "0.1.9"
            
            # This file is part of EventGhost.
            Severity: Major
            Found in plugins/E-mail/__init__.py - About 1 wk to fix

              Function run has a Cognitive Complexity of 477 (exceeds 5 allowed). Consider refactoring.
              Open

                  def run(self):
                      try:
                          dummy
                      except NameError:
                          dummy = 0
              Severity: Minor
              Found in plugins/SunTracker/__init__.py - About 1 wk 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 3199 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              # -*- coding: utf-8 -*-
              
              version="0.1.19"
              
              # plugins/SchedulGhost/__init__.py
              Severity: Major
              Found in plugins/SchedulGhost/__init__.py - About 1 wk to fix

                Function NextRun has a Cognitive Complexity of 439 (exceeds 5 allowed). Consider refactoring.
                Open

                    def NextRun(self, type, data):
                
                        def FindRunDateTime(runList, cond, cond2):
                            runList.sort()
                            runDateTime = ""
                Severity: Minor
                Found in plugins/SchedulGhost/__init__.py - About 1 wk 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 NextRun has a Cognitive Complexity of 378 (exceeds 5 allowed). Consider refactoring.
                Open

                    def NextRun(self, type, data):
                
                        def FindRunDateTime(runList, cond):
                            runList.sort()
                            runDateTime = ""
                Severity: Minor
                Found in plugins/RadioSure/__init__.py - About 1 wk 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 363 (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 1 wk 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 351 (exceeds 5 allowed). Consider refactoring.
                Open

                    def __init__(self, text, plugin):
                        wx.Dialog.__init__(
                            self,
                            None,
                            -1,
                Severity: Minor
                Found in plugins/SchedulGhost/__init__.py - About 1 wk 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 JSONRPCNotifications has a Cognitive Complexity of 339 (exceeds 5 allowed). Consider refactoring.
                Open

                    def JSONRPCNotifications(self, stopJSONRPCNotifications):
                            import os
                            import struct
                            from collections import deque
                            import select
                Severity: Minor
                Found in plugins/XBMCRepeat/__init__.py - About 6 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 2399 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                # -*- coding: utf-8 -*-
                #
                # plugins/MediaPlayerClassic/__init__.py
                #
                # Copyright (C) 2006 MonsterMagnet
                Severity: Major
                Found in plugins/MediaPlayerClassic/__init__.py - About 6 days to fix

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

                  # Copyright (C) 2008 Chris Longo <cal@chrislongo.net> and Tobias Arrskog (topfs2)
                  #
                  # This file is a plugin for EventGhost.
                  #
                  # EventGhost is free software; you can redistribute it and/or modify
                  Severity: Major
                  Found in plugins/XBMCRepeat/__init__.py - About 6 days to fix

                    File __init__.py has 1870 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 plugins/System/__init__.py - About 5 days to fix

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

                      # -*- coding: utf-8 -*-
                      #
                      # plugins/Scheduler/__init__.py
                      #
                      # This file is a plugin for EventGhost.
                      Severity: Major
                      Found in plugins/Scheduler/__init__.py - About 4 days to fix

                        Function run has a Cognitive Complexity of 224 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def run(self):
                                try:
                                    dummy
                                except NameError:
                                    dummy = 0
                        Severity: Minor
                        Found in plugins/Scheduler/__init__.py - About 4 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 205 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def Configure(
                                self,
                                Prefix = "Remote",
                                remotes = [],
                                suffixes = None
                        Severity: Minor
                        Found in plugins/RemoteEventMapper/__init__.py - About 4 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 CheckEmails has a Cognitive Complexity of 196 (exceeds 5 allowed). Consider refactoring.
                        Open

                            def CheckEmails(self):
                                accList=[n[0] for n in self.configs]
                                accounts = []
                                observName = self.setup[0]
                                loop=0
                        Severity: Minor
                        Found in plugins/E-mail/__init__.py - About 4 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