EventGhost/EventGhost

View on GitHub

Showing 1,804 of 2,440 total issues

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

    def Configure(
        self,
        Prefix = "Remote",
        remotes = [],
        suffixes = None
Severity: Major
Found in plugins/RemoteEventMapper/__init__.py - About 6 hrs to fix

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

        def __call__(
            self,
            rangeName,
            iTimeAhead,
            tlStartType,
    Severity: Minor
    Found in plugins/SunTracker/__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

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

        def Configure(
            self,
            fore = (75, 75, 75),
            back = (180, 180, 180),
            fontInfo = "0;-48;0;0;0;400;0;0;0;238;0;0;0;0;MS Shell Dlg 2",
    Severity: Minor
    Found in plugins/OSE/__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

    Function timeCheck has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring.
    Open

        def timeCheck(self, timeIntervals):
            t_list = [0]*6
    
            for i in range(0,3):
                theTime_1 = timeIntervals[i]
    Severity: Minor
    Found in plugins/Scheduler/__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

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

        def Configure(self, parent, checkMultiLoad=True, title=None):
            if title is None:
                title = Text.title
            self.checkMultiLoad = checkMultiLoad
            if self.__class__.instance:
    Severity: Minor
    Found in eg/Classes/AddPluginDialog.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 AboutDialog.py has 438 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/AboutDialog.py - About 6 hrs to fix

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

          def Configure(
              self,
              fore = (75, 75, 75),
              back = (180, 180, 180),
              fontInfo = arialInfoString,
      Severity: Minor
      Found in plugins/MediaPlayerClassic/__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

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

          def __call__( self,
              allRecordings=False,
              enableDVBViewer=True,
              enableDVBService=True,
              updateDVBService=False,
      Severity: Minor
      Found in plugins/DVBViewer/__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

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

          def __init__(
              self,
              parent,
              message,
              caption = eg.APP_NAME,
      Severity: Minor
      Found in plugins/RadioSure/__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

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

          def Configure(
              self,
              fore = (75, 75, 75),
              back = (180, 180, 180),
              fontInfo = TAHOMA_INFO,
      Severity: Minor
      Found in plugins/RadioSure/__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

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

          def Configure(
              self,
              configs=[],
              servers=[],
              texts = [],
      Severity: Major
      Found in plugins/E-mail/__init__.py - About 6 hrs to fix

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

            def Configure(
                self,
                choices = [],
                fore = (0, 0, 0),
                back = (255, 255, 255),
        Severity: Major
        Found in plugins/OOo_Impress/__init__.py - About 6 hrs to fix

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

              def Configure(
                  self,
                  configs=[],
              ):
                  def boxEnable(enable):
          Severity: Minor
          Found in plugins/Multitap/__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

          Function OnReceive has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
          Open

              def OnReceive(self, serial):
                  ###print "OnReceive"
                  buffer = ""
                  while True:
                      b = serial.Read(1, 0.1)
          Severity: Minor
          Found in plugins/CM11A/__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

          Function ProcessTheArguments_S_C has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
          Open

              def ProcessTheArguments_S_C(
                  self,
                  title,
                  methodName,
                  args,
          Severity: Minor
          Found in plugins/Webserver/__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

          Function ParseText has a Cognitive Complexity of 41 (exceeds 5 allowed). Consider refactoring.
          Open

          def ParseText(text):
              """
              Translates a string to a key sequence.
              """
              data = []
          Severity: Minor
          Found in eg/WinApi/SendKeys.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 ShowOSD.py has 424 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/ShowOSD.py - About 6 hrs to fix

            Document has 45 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class Document(object):
                def __init__(self):
                    class ItemMixin:
                        document = self
                        root = None
            Severity: Minor
            Found in eg/Classes/Document.py - About 6 hrs to fix

              File SoundMixer.py has 423 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/SoundMixer.py - About 6 hrs to fix

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

                    def Configure(
                        self,
                        program="",
                        winName=None,
                        winClass=None,
                Severity: Minor
                Found in plugins/Window/FindWindow.py - About 5 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

                Severity
                Category
                Status
                Source
                Language