EventGhost/EventGhost

View on GitHub
plugins/E-mail/__init__.py

Summary

Maintainability
F
1 mo
Test Coverage

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 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

    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

    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 ShowGroupsDlg has a Cognitive Complexity of 89 (exceeds 5 allowed). Consider refactoring.
    Open

        def ShowGroupsDlg(self):
            text = self.plugin.text
            self.SetTitle(text.groupsTitle)
            sizer = wx.BoxSizer(wx.VERTICAL)
            sizer.SetMinSize((450, 307))
    Severity: Minor
    Found in plugins/E-mail/__init__.py - About 1 day 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 ShowOutServDlg has a Cognitive Complexity of 77 (exceeds 5 allowed). Consider refactoring.
    Open

        def ShowOutServDlg(self):
            def boxEnable(enable):
                labelCtrl.Enable(enable)
                labelLbl.Enable(enable)
                outServerLbl.Enable(enable)
    Severity: Minor
    Found in plugins/E-mail/__init__.py - About 1 day 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 68 (exceeds 5 allowed). Consider refactoring.
    Open

        def Configure(
            self,
            configs=[],
            servers=[],
            texts = [],
    Severity: Minor
    Found in plugins/E-mail/__init__.py - About 1 day 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 run has a Cognitive Complexity of 61 (exceeds 5 allowed). Consider refactoring.
    Open

        def run(self):
            while 1:
                if self.abort:
                    break
                self.runFlag = True
    Severity: Minor
    Found in plugins/E-mail/__init__.py - About 1 day 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

    Cyclomatic complexity is too high in method CheckEmails. (51)
    Open

    
        def CheckEmails(self):
            accList=[n[0] for n in self.configs]
            accounts = []
            observName = self.setup[0]
    Severity: Minor
    Found in plugins/E-mail/__init__.py by radon

    Cyclomatic Complexity

    Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

    Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

    Construct Effect on CC Reasoning
    if +1 An if statement is a single decision.
    elif +1 The elif statement adds another decision.
    else +0 The else statement does not cause a new decision. The decision is at the if.
    for +1 There is a decision at the start of the loop.
    while +1 There is a decision at the while statement.
    except +1 Each except branch adds a new conditional path of execution.
    finally +0 The finally block is unconditionally executed.
    with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
    assert +1 The assert statement internally roughly equals a conditional statement.
    Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
    Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

    Source: http://radon.readthedocs.org/en/latest/intro.html

    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 ShowOutServDlg has 123 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def ShowOutServDlg(self):
              def boxEnable(enable):
                  labelCtrl.Enable(enable)
                  labelLbl.Enable(enable)
                  outServerLbl.Enable(enable)
      Severity: Major
      Found in plugins/E-mail/__init__.py - About 4 hrs to fix

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

            def Configure(self, stp = []):
        
        #- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                self.flag2=True
                def validation():
        Severity: Major
        Found in plugins/E-mail/__init__.py - About 4 hrs to fix

          Function ShowGroupsDlg has 119 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              def ShowGroupsDlg(self):
                  text = self.plugin.text
                  self.SetTitle(text.groupsTitle)
                  sizer = wx.BoxSizer(wx.VERTICAL)
                  sizer.SetMinSize((450, 307))
          Severity: Major
          Found in plugins/E-mail/__init__.py - About 4 hrs to fix

            Cyclomatic complexity is too high in method RealizeAction. (38)
            Open

            
                def RealizeAction(self, indx, sel, mode):
                    obsData = self.plugin.tempData[indx][2]
                    observName = self.plugin.tempData[indx][0]
                    resultMessage = None
            Severity: Minor
            Found in plugins/E-mail/__init__.py by radon

            Cyclomatic Complexity

            Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

            Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

            Construct Effect on CC Reasoning
            if +1 An if statement is a single decision.
            elif +1 The elif statement adds another decision.
            else +0 The else statement does not cause a new decision. The decision is at the if.
            for +1 There is a decision at the start of the loop.
            while +1 There is a decision at the while statement.
            except +1 Each except branch adds a new conditional path of execution.
            finally +0 The finally block is unconditionally executed.
            with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
            assert +1 The assert statement internally roughly equals a conditional statement.
            Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
            Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

            Source: http://radon.readthedocs.org/en/latest/intro.html

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

                def run(self):
                    sbjct = self.sbjct
                    sbjct = eg.ParseString(sbjct)
                    From = self.From
                    To = self.To
            Severity: Minor
            Found in plugins/E-mail/__init__.py - About 4 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 ShowOutTxtsDlg has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
            Open

                def ShowOutTxtsDlg(self):
                    text = self.plugin.text
                    self.SetTitle(text.textsTitle)
                    sizer = wx.BoxSizer(wx.VERTICAL)
                    sizer.SetMinSize((450, 300))
            Severity: Minor
            Found in plugins/E-mail/__init__.py - About 4 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 ShowObservViewerDialog has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
            Open

                def ShowObservViewerDialog(self):
                    text = self.plugin.text
                    self.SetTitle(text.viewerTitle)
                    mainSizer = wx.BoxSizer(wx.VERTICAL)
                    mainSizer.Add(
            Severity: Minor
            Found in plugins/E-mail/__init__.py - About 3 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 ShowOutTxtsDlg has 85 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                def ShowOutTxtsDlg(self):
                    text = self.plugin.text
                    self.SetTitle(text.textsTitle)
                    sizer = wx.BoxSizer(wx.VERTICAL)
                    sizer.SetMinSize((450, 300))
            Severity: Major
            Found in plugins/E-mail/__init__.py - About 3 hrs to fix

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

                  def run(self):
                      while 1:
                          if self.firstRun:
                              self.firstRun = False
                              while True:
              Severity: Minor
              Found in plugins/E-mail/__init__.py - About 3 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

              Cyclomatic complexity is too high in method run. (29)
              Open

              
                  def run(self):
                      sbjct = self.sbjct
                      sbjct = eg.ParseString(sbjct)
                      From = self.From
              Severity: Minor
              Found in plugins/E-mail/__init__.py by radon

              Cyclomatic Complexity

              Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

              Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

              Construct Effect on CC Reasoning
              if +1 An if statement is a single decision.
              elif +1 The elif statement adds another decision.
              else +0 The else statement does not cause a new decision. The decision is at the if.
              for +1 There is a decision at the start of the loop.
              while +1 There is a decision at the while statement.
              except +1 Each except branch adds a new conditional path of execution.
              finally +0 The finally block is unconditionally executed.
              with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
              assert +1 The assert statement internally roughly equals a conditional statement.
              Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
              Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

              Source: http://radon.readthedocs.org/en/latest/intro.html

              Function GetParts has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
              Open

              def GetParts(msg, ext = False):
                  from email.Iterators import typed_subpart_iterator
                  partCounter=0
                  bodyText=[]
                  def get_charset(part, default="ascii"):
              Severity: Minor
              Found in plugins/E-mail/__init__.py - About 2 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 ShowDetailsFrame has 52 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  def ShowDetailsFrame(
                      self,
                      position,
                      size
                  ):
              Severity: Major
              Found in plugins/E-mail/__init__.py - About 2 hrs to fix

                Function ShowMessageFrame has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
                Open

                    def ShowMessageFrame(
                        self, position, size
                    ):
                
                        text = self.plugin.text
                Severity: Minor
                Found in plugins/E-mail/__init__.py - About 1 hr 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 SendCfg has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                def SendCfg(
                    self,
                    panel,
                    sbjct,
                    From,
                Severity: Minor
                Found in plugins/E-mail/__init__.py - About 1 hr to fix

                  Cyclomatic complexity is too high in method run. (21)
                  Open

                  
                      def run(self):
                          while 1:
                              if self.abort:
                                  break
                  Severity: Minor
                  Found in plugins/E-mail/__init__.py by radon

                  Cyclomatic Complexity

                  Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

                  Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

                  Construct Effect on CC Reasoning
                  if +1 An if statement is a single decision.
                  elif +1 The elif statement adds another decision.
                  else +0 The else statement does not cause a new decision. The decision is at the if.
                  for +1 There is a decision at the start of the loop.
                  while +1 There is a decision at the while statement.
                  except +1 Each except branch adds a new conditional path of execution.
                  finally +0 The finally block is unconditionally executed.
                  with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
                  assert +1 The assert statement internally roughly equals a conditional statement.
                  Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
                  Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

                  Source: http://radon.readthedocs.org/en/latest/intro.html

                  Function ShowMessageFrame has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      def ShowMessageFrame(
                          self, position, size
                      ):
                  
                          text = self.plugin.text
                  Severity: Minor
                  Found in plugins/E-mail/__init__.py - About 1 hr to fix

                    Function ShowObservViewerDialog has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        def ShowObservViewerDialog(self):
                            text = self.plugin.text
                            self.SetTitle(text.viewerTitle)
                            mainSizer = wx.BoxSizer(wx.VERTICAL)
                            mainSizer.Add(
                    Severity: Minor
                    Found in plugins/E-mail/__init__.py - About 1 hr to fix

                      Function ShowSendMailDlg has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          def ShowSendMailDlg(
                              self,
                              sbjct = '',
                              From = '',
                              To = '',
                      Severity: Minor
                      Found in plugins/E-mail/__init__.py - About 1 hr to fix

                        Function run has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            def run(self):
                                sbjct = self.sbjct
                                sbjct = eg.ParseString(sbjct)
                                From = self.From
                                To = self.To
                        Severity: Minor
                        Found in plugins/E-mail/__init__.py - About 1 hr to fix

                          Function ShowSendMailDlg has 11 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              def ShowSendMailDlg(
                          Severity: Major
                          Found in plugins/E-mail/__init__.py - About 1 hr to fix

                            Function SendCfg has 11 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            def SendCfg(
                            Severity: Major
                            Found in plugins/E-mail/__init__.py - About 1 hr to fix

                              Function __init__ has 10 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                  def __init__(
                              Severity: Major
                              Found in plugins/E-mail/__init__.py - About 1 hr to fix

                                Function ShowNotifFrame has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    def ShowNotifFrame(
                                        self,
                                        plugin,
                                        stp,
                                        event=None
                                Severity: Minor
                                Found in plugins/E-mail/__init__.py - About 1 hr 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 ShowNotifFrame has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    def ShowNotifFrame(
                                        self,
                                        plugin,
                                        stp,
                                        event=None
                                Severity: Minor
                                Found in plugins/E-mail/__init__.py - About 1 hr to fix

                                  Function __call__ has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      def __call__(
                                  Severity: Major
                                  Found in plugins/E-mail/__init__.py - About 1 hr to fix

                                    Function DecodeSection has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    def DecodeSection(section, coding=None):
                                        if coding:
                                            List = (coding, 'utf-8', 'iso-8859-1', 'us-ascii')
                                        else:
                                            List = ('utf-8', 'iso-8859-1', 'us-ascii')
                                    Severity: Minor
                                    Found in plugins/E-mail/__init__.py - About 1 hr 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 deleteEmails has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                        def deleteEmails(self, indx, sel, close = False):
                                            self.delFlag = True
                                            if close:
                                                self.messageFrame.Close()
                                            else:
                                    Severity: Minor
                                    Found in plugins/E-mail/__init__.py - About 55 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 Configure has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        def Configure(
                                    Severity: Major
                                    Found in plugins/E-mail/__init__.py - About 50 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              if msg.has_key('Message-Id'):
                                                                  messId =  msg['Message-Id']
                                                              else:
                                                                  messId = ParseAddress(msg['From'])
                                                              if messId == obsData[ix][0]:
                                      Severity: Major
                                      Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                                    if account[1] == 0: #POP
                                                                        resp = mailbox.dele(id)
                                                                        #if resp[:3]=='+OK':
                                                                        #    print "deleted !!!"
                                                                        #    notDeleted = False
                                        Severity: Major
                                        Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                          Function __start__ has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                          Open

                                              def __start__(
                                          Severity: Minor
                                          Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                            Avoid deeply nested control flow statements.
                                            Open

                                                                    if m == -1:
                                                                        Error = False
                                                                        break
                                                                    else:
                                                                        item = sel[m]
                                            Severity: Major
                                            Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                              Avoid deeply nested control flow statements.
                                              Open

                                                                      if val > 0 and shift:
                                                                          if self.setup[8]:
                                                                              eg.TriggerEvent(self.setup[3], payload = str(val), prefix = 'E-mail')
                                                                          else:
                                                                              eg.TriggerEvent(self.setup[3], prefix = 'E-mail')
                                              Severity: Major
                                              Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                Avoid deeply nested control flow statements.
                                                Open

                                                                            if item[8] == oldLbl:
                                                                                item[8] = label
                                                                listBoxCtrl.Set([n[0] for n in self.servers])
                                                Severity: Major
                                                Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                  Function processEmail has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                  Open

                                                              def processEmail(mailbox, data, idList, account, count, id, tmpData):
                                                  Severity: Minor
                                                  Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                    Avoid deeply nested control flow statements.
                                                    Open

                                                                                if wt.isAlive():
                                                                                    #print "WAITING"
                                                                                    wt.AbortObservation()
                                                                                    self.threadFlag.wait(1)
                                                                                    self.threadFlag.clear()
                                                    Severity: Major
                                                    Found in plugins/E-mail/__init__.py - About 45 mins to fix

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

                                                          def __call__(self, stp):
                                                              #stp
                                                              accounts=[]
                                                              accList = [item[0] for item in self.plugin.configs]
                                                              for i in range(len(accList)):
                                                      Severity: Minor
                                                      Found in plugins/E-mail/__init__.py - About 45 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

                                                      Avoid deeply nested control flow statements.
                                                      Open

                                                                                      for num in lst:
                                                                                          typ, data = mailbox.fetch(num, '(RFC822.HEADER)')
                                                                                          mailbox.store(num, "-FLAGS", '(\Seen)') #Reset UNSEEN flag
                                                                                          data = data[0][1]
                                                                                          nbr += 1
                                                      Severity: Major
                                                      Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                        Avoid deeply nested control flow statements.
                                                        Open

                                                                                    if suff in itms:
                                                                                        suff = itms.index(suff)
                                                                                        suff = u"%s.%s" % (self.setup[12],parts[suff])
                                                                                    if self.setup[13] > 0:
                                                        Severity: Major
                                                        Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                          Avoid deeply nested control flow statements.
                                                          Open

                                                                                  if msg.has_key('Message-Id'):
                                                                                      messId =  msg['Message-Id']
                                                                                  else:
                                                                                      messId = ParseAddress(msg['From'])
                                                                                  if messId == obsData[ix][0]:
                                                          Severity: Major
                                                          Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                            Avoid deeply nested control flow statements.
                                                            Open

                                                                                    if not self.notifFrame.IsShown():
                                                                                        self.notifFrame.Show(True)
                                                                                else:
                                                            Severity: Major
                                                            Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                              Avoid deeply nested control flow statements.
                                                              Open

                                                                                          if wnd2.GetValue() == '':
                                                                                              break
                                                                                      else:
                                                              Severity: Major
                                                              Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                                Avoid deeply nested control flow statements.
                                                                Open

                                                                                                for msg in lst:
                                                                                                    id = msg.split(' ')[0]
                                                                                                    resp, data, octets = mailbox.retr(id)
                                                                                                    data = "\n".join(data)
                                                                                                    count, tmpData = processEmail(mailbox, data,idList, account, count, id, tmpData)
                                                                Severity: Major
                                                                Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                                  Avoid deeply nested control flow statements.
                                                                  Open

                                                                                              if self.setup[13] > 0:
                                                                                                  eg.TriggerEvent(suff, payload = parts[self.setup[13]-1], prefix = 'E-mail')
                                                                                              else:
                                                                                                  eg.TriggerEvent(suff, prefix = 'E-mail')
                                                                                          if self.setup[14]: #~ delete
                                                                  Severity: Major
                                                                  Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                                    Avoid deeply nested control flow statements.
                                                                    Open

                                                                                            if messId == obsData[ix][0]:
                                                                                                if mode == 1:
                                                                                                    resultMessage = GetParts(msg, True)
                                                                                                    resultMessage[3] = indx
                                                                                                    resultMessage[4] = sel
                                                                    Severity: Major
                                                                    Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                                      Avoid deeply nested control flow statements.
                                                                      Open

                                                                                              if not self.notifFrame.IsShown():
                                                                                                  self.notifFrame.Show(True)
                                                                                      if self.refresh:
                                                                      Severity: Major
                                                                      Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                                        Avoid deeply nested control flow statements.
                                                                        Open

                                                                                                if mode == 0:
                                                                                                    MAXLINES = 0 #Delete -> not need read
                                                                                                resp, txt, octets = mailbox.top(id, MAXLINES)
                                                                        Severity: Major
                                                                        Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                                          Function Configure has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                          Open

                                                                              def Configure(
                                                                          Severity: Minor
                                                                          Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                                            Avoid deeply nested control flow statements.
                                                                            Open

                                                                                                    if mode == 1:
                                                                                                        typ, txt = mailbox.fetch(id, '(RFC822)')
                                                                                                        mailbox.store(id, "-FLAGS", '(\Seen)') #Reset UNSEEN flag
                                                                                                    else:
                                                                                                        typ, txt = mailbox.fetch(id, '(RFC822.HEADER)')
                                                                            Severity: Major
                                                                            Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                                              Avoid deeply nested control flow statements.
                                                                              Open

                                                                                                              if resp != '+OK':
                                                                                                                  resp, data, octets = mailbox.retr(id)
                                                                                                              data = "\n".join(data)
                                                                              Severity: Major
                                                                              Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                                                Avoid deeply nested control flow statements.
                                                                                Open

                                                                                                        if resp != '+OK':
                                                                                                            resp, txt, octets = mailbox.retr(id)
                                                                                                        txt = "\n".join(txt)
                                                                                Severity: Major
                                                                                Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                                                  Avoid deeply nested control flow statements.
                                                                                  Open

                                                                                                          if messId == obsData[ix][0]:
                                                                                                              if mode == 1:
                                                                                                                  resultMessage = GetParts(msg, True)
                                                                                                                  resultMessage[3] = indx
                                                                                                                  resultMessage[4] = sel
                                                                                  Severity: Major
                                                                                  Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                                                    Avoid deeply nested control flow statements.
                                                                                    Open

                                                                                                                if wnd1.GetSelection() == -1:
                                                                                                                    break
                                                                                                                if wnd2.GetValue() == '':
                                                                                    Severity: Major
                                                                                    Found in plugins/E-mail/__init__.py - About 45 mins to fix

                                                                                      Avoid deeply nested control flow statements.
                                                                                      Open

                                                                                                                      for id in lst:
                                                                                                                          typ, data = mailbox.fetch(id, '(RFC822)')
                                                                                                                          mailbox.store(id, "-FLAGS", '(\Seen)') #Reset UNSEEN flag
                                                                                                                          data = data[0][1]
                                                                                                                          count, tmpData = processEmail(mailbox, data,idList, account, count, id, tmpData)
                                                                                      Severity: Major
                                                                                      Found in plugins/E-mail/__init__.py - About 45 mins to fix

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

                                                                                            def ShowSendMailDlg(
                                                                                                self,
                                                                                                sbjct = '',
                                                                                                From = '',
                                                                                                To = '',
                                                                                        Severity: Minor
                                                                                        Found in plugins/E-mail/__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

                                                                                        Identical blocks of code found in 3 locations. Consider refactoring.
                                                                                        Open

                                                                                        def Move(lst,index,direction):
                                                                                            tmpList = lst[:]
                                                                                            max = len(lst)-1
                                                                                            #Last to first position, other down
                                                                                            if index == max and direction == 1:
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 2 other locations - About 1 day to fix
                                                                                        plugins/Multitap/__init__.py on lines 78..95
                                                                                        plugins/RemoteEventMapper/__init__.py on lines 994..1011

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 205.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                if len(panel.cfgs) > 0:
                                                                                                    listBoxCtrl.Set([n[0] for n in panel.cfgs])
                                                                                                    listBoxCtrl.SetSelection(0)
                                                                                                    setValue(panel.cfgs[0])
                                                                                                    self.oldSel=0
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 6 hrs to fix
                                                                                        plugins/Multitap/__init__.py on lines 949..960

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 137.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onListClick(evt):
                                                                                                    sel = listBoxCtrl.GetSelection()
                                                                                                    label = labelCtrl.GetValue()
                                                                                                    if label.strip()<>"":
                                                                                                        if [n[0] for n in panel.cfgs].count(label)==1:
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 5 hrs to fix
                                                                                        plugins/E-mail/__init__.py on lines 1589..1599

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 122.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onClick(evt):
                                                                                                    sel = listBoxCtrl.GetSelection()
                                                                                                    label = labelCtrl.GetValue()
                                                                                                    if label.strip()<>"":
                                                                                                        if [n[0] for n in self.texts].count(label)==1:
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 5 hrs to fix
                                                                                        plugins/E-mail/__init__.py on lines 3924..3934

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 122.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onButtonDown2(evt):
                                                                                                    sel = self.oldSel
                                                                                                    newSel,self.groups[sel][1]=Move(self.groups[sel][1],listBoxCtrl2.GetSelection(),1)
                                                                                                    listBoxCtrl2.Set(self.groups[sel][1])
                                                                                                    listBoxCtrl2.SetSelection(newSel)
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 4 hrs to fix
                                                                                        plugins/E-mail/__init__.py on lines 2005..2011

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 105.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onButtonUp2(evt):
                                                                                                    sel = self.oldSel
                                                                                                    newSel,self.groups[sel][1]=Move(self.groups[sel][1],listBoxCtrl2.GetSelection(),-1)
                                                                                                    listBoxCtrl2.Set(self.groups[sel][1])
                                                                                                    listBoxCtrl2.SetSelection(newSel)
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 4 hrs to fix
                                                                                        plugins/E-mail/__init__.py on lines 2014..2020

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 105.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                def OnTxtChange(evt):
                                                                                                    if self.texts<>[]:
                                                                                                        sel = self.oldSel
                                                                                                        label = labelCtrl.GetValue().strip()
                                                                                                        self.texts[sel][0]=label
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 4 hrs to fix
                                                                                        plugins/E-mail/__init__.py on lines 1879..1887

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 103.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                def OnTxtChange(evt):
                                                                                                    if self.groups<>[]:
                                                                                                        sel = self.oldSel
                                                                                                        label = labelCtrl.GetValue().strip()
                                                                                                        self.groups[sel][0]=label
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 4 hrs to fix
                                                                                        plugins/E-mail/__init__.py on lines 1569..1577

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 103.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                        if m == -1:
                                                                                                            break
                                                                                                        else:
                                                                                                            item = sel[m]
                                                                                                            ix = [i[4] for i in obsData].index(item)
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 3 hrs to fix
                                                                                        plugins/E-mail/__init__.py on lines 919..926

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 93.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                                if m == -1:
                                                                                                                    Error = False
                                                                                                                    break
                                                                                                                else:
                                                                                                                    item = sel[m]
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 3 hrs to fix
                                                                                        plugins/E-mail/__init__.py on lines 856..862

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 93.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                        Open

                                                                                                if w1 > w2:
                                                                                                    btnDEL=wx.Button(self,-1,text.delete)
                                                                                                    btnApp=wx.Button(self,-1,text.insert,size=btnDEL.GetSize())
                                                                                                else:
                                                                                                    btnApp=wx.Button(self,-1,text.insert)
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 4 other locations - About 2 hrs to fix
                                                                                        plugins/E-mail/__init__.py on lines 1483..1488
                                                                                        plugins/E-mail/__init__.py on lines 3741..3746
                                                                                        plugins/Multitap/__init__.py on lines 298..303
                                                                                        plugins/Multitap/__init__.py on lines 936..941

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 87.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                        Open

                                                                                                if w1 > w2:
                                                                                                    btnDEL=wx.Button(self,-1,text.delete)
                                                                                                    btnApp=wx.Button(self,-1,text.insert,size=btnDEL.GetSize())
                                                                                                else:
                                                                                                    btnApp=wx.Button(self,-1,text.insert)
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 4 other locations - About 2 hrs to fix
                                                                                        plugins/E-mail/__init__.py on lines 1171..1176
                                                                                        plugins/E-mail/__init__.py on lines 3741..3746
                                                                                        plugins/Multitap/__init__.py on lines 298..303
                                                                                        plugins/Multitap/__init__.py on lines 936..941

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 87.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 5 locations. Consider refactoring.
                                                                                        Open

                                                                                                if w1 > w2:
                                                                                                    btnDEL=wx.Button(panel,-1,text.delete)
                                                                                                    btnApp=wx.Button(panel,-1,text.insert,size=btnDEL.GetSize())
                                                                                                else:
                                                                                                    btnApp=wx.Button(panel,-1,text.insert)
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 4 other locations - About 2 hrs to fix
                                                                                        plugins/E-mail/__init__.py on lines 1171..1176
                                                                                        plugins/E-mail/__init__.py on lines 1483..1488
                                                                                        plugins/Multitap/__init__.py on lines 298..303
                                                                                        plugins/Multitap/__init__.py on lines 936..941

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 87.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 10 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onButtonUp(evt):
                                                                                                    newSel,self.groups=Move(self.groups,listBoxCtrl.GetSelection(),-1)
                                                                                                    listBoxCtrl.Set([n[0] for n in self.groups])
                                                                                                    listBoxCtrl.SetSelection(newSel)
                                                                                                    self.oldSel = newSel
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 9 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1322..1327
                                                                                        plugins/E-mail/__init__.py on lines 1330..1335
                                                                                        plugins/E-mail/__init__.py on lines 1602..1607
                                                                                        plugins/E-mail/__init__.py on lines 1610..1615
                                                                                        plugins/E-mail/__init__.py on lines 1919..1924
                                                                                        plugins/E-mail/__init__.py on lines 3937..3942
                                                                                        plugins/E-mail/__init__.py on lines 3945..3950
                                                                                        plugins/Multitap/__init__.py on lines 994..999
                                                                                        plugins/Multitap/__init__.py on lines 1002..1007

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 76.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 10 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onButtonDown(evt):
                                                                                                    newSel,self.groups=Move(self.groups,listBoxCtrl.GetSelection(),1)
                                                                                                    listBoxCtrl.Set([n[0] for n in self.groups])
                                                                                                    listBoxCtrl.SetSelection(newSel)
                                                                                                    self.oldSel = newSel
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 9 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1322..1327
                                                                                        plugins/E-mail/__init__.py on lines 1330..1335
                                                                                        plugins/E-mail/__init__.py on lines 1602..1607
                                                                                        plugins/E-mail/__init__.py on lines 1610..1615
                                                                                        plugins/E-mail/__init__.py on lines 1911..1916
                                                                                        plugins/E-mail/__init__.py on lines 3937..3942
                                                                                        plugins/E-mail/__init__.py on lines 3945..3950
                                                                                        plugins/Multitap/__init__.py on lines 994..999
                                                                                        plugins/Multitap/__init__.py on lines 1002..1007

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 76.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 10 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onButtonDown(evt):
                                                                                                    newSel,self.servers=Move(self.servers,listBoxCtrl.GetSelection(),1)
                                                                                                    listBoxCtrl.Set([n[0] for n in self.servers])
                                                                                                    listBoxCtrl.SetSelection(newSel)
                                                                                                    self.oldSel = newSel
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 9 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1322..1327
                                                                                        plugins/E-mail/__init__.py on lines 1602..1607
                                                                                        plugins/E-mail/__init__.py on lines 1610..1615
                                                                                        plugins/E-mail/__init__.py on lines 1911..1916
                                                                                        plugins/E-mail/__init__.py on lines 1919..1924
                                                                                        plugins/E-mail/__init__.py on lines 3937..3942
                                                                                        plugins/E-mail/__init__.py on lines 3945..3950
                                                                                        plugins/Multitap/__init__.py on lines 994..999
                                                                                        plugins/Multitap/__init__.py on lines 1002..1007

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 76.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 10 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onButtonUp(evt):
                                                                                                    newSel,self.servers=Move(self.servers,listBoxCtrl.GetSelection(),-1)
                                                                                                    listBoxCtrl.Set([n[0] for n in self.servers])
                                                                                                    listBoxCtrl.SetSelection(newSel)
                                                                                                    self.oldSel = newSel
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 9 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1330..1335
                                                                                        plugins/E-mail/__init__.py on lines 1602..1607
                                                                                        plugins/E-mail/__init__.py on lines 1610..1615
                                                                                        plugins/E-mail/__init__.py on lines 1911..1916
                                                                                        plugins/E-mail/__init__.py on lines 1919..1924
                                                                                        plugins/E-mail/__init__.py on lines 3937..3942
                                                                                        plugins/E-mail/__init__.py on lines 3945..3950
                                                                                        plugins/Multitap/__init__.py on lines 994..999
                                                                                        plugins/Multitap/__init__.py on lines 1002..1007

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 76.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 10 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onButtonUp(evt):
                                                                                                    newSel,self.texts=Move(self.texts,listBoxCtrl.GetSelection(),-1)
                                                                                                    listBoxCtrl.Set([n[0] for n in self.texts])
                                                                                                    listBoxCtrl.SetSelection(newSel)
                                                                                                    self.oldSel = newSel
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 9 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1322..1327
                                                                                        plugins/E-mail/__init__.py on lines 1330..1335
                                                                                        plugins/E-mail/__init__.py on lines 1610..1615
                                                                                        plugins/E-mail/__init__.py on lines 1911..1916
                                                                                        plugins/E-mail/__init__.py on lines 1919..1924
                                                                                        plugins/E-mail/__init__.py on lines 3937..3942
                                                                                        plugins/E-mail/__init__.py on lines 3945..3950
                                                                                        plugins/Multitap/__init__.py on lines 994..999
                                                                                        plugins/Multitap/__init__.py on lines 1002..1007

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 76.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 10 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onButtonUp(evt):
                                                                                                    newSel,panel.cfgs=Move(panel.cfgs,listBoxCtrl.GetSelection(),-1)
                                                                                                    listBoxCtrl.Set([n[0] for n in panel.cfgs])
                                                                                                    listBoxCtrl.SetSelection(newSel)
                                                                                                    self.oldSel = newSel
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 9 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1322..1327
                                                                                        plugins/E-mail/__init__.py on lines 1330..1335
                                                                                        plugins/E-mail/__init__.py on lines 1602..1607
                                                                                        plugins/E-mail/__init__.py on lines 1610..1615
                                                                                        plugins/E-mail/__init__.py on lines 1911..1916
                                                                                        plugins/E-mail/__init__.py on lines 1919..1924
                                                                                        plugins/E-mail/__init__.py on lines 3945..3950
                                                                                        plugins/Multitap/__init__.py on lines 994..999
                                                                                        plugins/Multitap/__init__.py on lines 1002..1007

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 76.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 10 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onButtonDown(evt):
                                                                                                    newSel,panel.cfgs=Move(panel.cfgs,listBoxCtrl.GetSelection(),1)
                                                                                                    listBoxCtrl.Set([n[0] for n in panel.cfgs])
                                                                                                    listBoxCtrl.SetSelection(newSel)
                                                                                                    self.oldSel = newSel
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 9 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1322..1327
                                                                                        plugins/E-mail/__init__.py on lines 1330..1335
                                                                                        plugins/E-mail/__init__.py on lines 1602..1607
                                                                                        plugins/E-mail/__init__.py on lines 1610..1615
                                                                                        plugins/E-mail/__init__.py on lines 1911..1916
                                                                                        plugins/E-mail/__init__.py on lines 1919..1924
                                                                                        plugins/E-mail/__init__.py on lines 3937..3942
                                                                                        plugins/Multitap/__init__.py on lines 994..999
                                                                                        plugins/Multitap/__init__.py on lines 1002..1007

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 76.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 10 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onButtonDown(evt):
                                                                                                    newSel,self.texts=Move(self.texts,listBoxCtrl.GetSelection(),1)
                                                                                                    listBoxCtrl.Set([n[0] for n in self.texts])
                                                                                                    listBoxCtrl.SetSelection(newSel)
                                                                                                    self.oldSel = newSel
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 9 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1322..1327
                                                                                        plugins/E-mail/__init__.py on lines 1330..1335
                                                                                        plugins/E-mail/__init__.py on lines 1602..1607
                                                                                        plugins/E-mail/__init__.py on lines 1911..1916
                                                                                        plugins/E-mail/__init__.py on lines 1919..1924
                                                                                        plugins/E-mail/__init__.py on lines 3937..3942
                                                                                        plugins/E-mail/__init__.py on lines 3945..3950
                                                                                        plugins/Multitap/__init__.py on lines 994..999
                                                                                        plugins/Multitap/__init__.py on lines 1002..1007

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 76.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                            def __init__(self, parent, plugin):
                                                                                                wx.MiniFrame.__init__(
                                                                                                    self,
                                                                                                    parent,
                                                                                                    -1,
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1668..1679

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 70.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                            def __init__(self, parent, plugin):
                                                                                                wx.MiniFrame.__init__(
                                                                                                    self,
                                                                                                    parent,
                                                                                                    -1,
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1425..1436

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 70.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onIncServer(evt):
                                                                                                    if panel.cfgs<>[]:
                                                                                                        val = incServerCtrl.GetValue().strip()
                                                                                                        sel = self.oldSel
                                                                                                        panel.cfgs[sel][5] = val
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 6 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1247..1253
                                                                                        plugins/E-mail/__init__.py on lines 1294..1300
                                                                                        plugins/E-mail/__init__.py on lines 1580..1586
                                                                                        plugins/E-mail/__init__.py on lines 3809..3815
                                                                                        plugins/E-mail/__init__.py on lines 3818..3824
                                                                                        plugins/E-mail/__init__.py on lines 3845..3851

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 69.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onServerName(event):
                                                                                                    if self.servers<>[]:
                                                                                                        val = outServerCtrl.GetValue().strip()
                                                                                                        sel = self.oldSel
                                                                                                        self.servers[sel][1] = val
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 6 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1294..1300
                                                                                        plugins/E-mail/__init__.py on lines 1580..1586
                                                                                        plugins/E-mail/__init__.py on lines 3809..3815
                                                                                        plugins/E-mail/__init__.py on lines 3818..3824
                                                                                        plugins/E-mail/__init__.py on lines 3827..3833
                                                                                        plugins/E-mail/__init__.py on lines 3845..3851

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 69.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onMailAddress(evt):
                                                                                                    if panel.cfgs<>[]:
                                                                                                        val = mailAddressCtrl.GetValue().strip()
                                                                                                        sel = self.oldSel
                                                                                                        panel.cfgs[sel][3] = val
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 6 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1247..1253
                                                                                        plugins/E-mail/__init__.py on lines 1294..1300
                                                                                        plugins/E-mail/__init__.py on lines 1580..1586
                                                                                        plugins/E-mail/__init__.py on lines 3818..3824
                                                                                        plugins/E-mail/__init__.py on lines 3827..3833
                                                                                        plugins/E-mail/__init__.py on lines 3845..3851

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 69.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onUser(event):
                                                                                                    if self.servers<>[]:
                                                                                                        val = userCtrl.GetValue().strip()
                                                                                                        sel = self.oldSel
                                                                                                        self.servers[sel][5] = val
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 6 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1247..1253
                                                                                        plugins/E-mail/__init__.py on lines 1580..1586
                                                                                        plugins/E-mail/__init__.py on lines 3809..3815
                                                                                        plugins/E-mail/__init__.py on lines 3818..3824
                                                                                        plugins/E-mail/__init__.py on lines 3827..3833
                                                                                        plugins/E-mail/__init__.py on lines 3845..3851

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 69.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                        Open

                                                                                                def ontextName(event):
                                                                                                    if self.texts<>[]:
                                                                                                        val = outTextCtrl.GetValue().strip()
                                                                                                        sel = self.oldSel
                                                                                                        self.texts[sel][1] = val
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 6 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1247..1253
                                                                                        plugins/E-mail/__init__.py on lines 1294..1300
                                                                                        plugins/E-mail/__init__.py on lines 3809..3815
                                                                                        plugins/E-mail/__init__.py on lines 3818..3824
                                                                                        plugins/E-mail/__init__.py on lines 3827..3833
                                                                                        plugins/E-mail/__init__.py on lines 3845..3851

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 69.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onUserLogin(evt):
                                                                                                    if panel.cfgs<>[]:
                                                                                                        val = userLoginCtrl.GetValue().strip()
                                                                                                        sel = self.oldSel
                                                                                                        panel.cfgs[sel][7] = val
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 6 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1247..1253
                                                                                        plugins/E-mail/__init__.py on lines 1294..1300
                                                                                        plugins/E-mail/__init__.py on lines 1580..1586
                                                                                        plugins/E-mail/__init__.py on lines 3809..3815
                                                                                        plugins/E-mail/__init__.py on lines 3818..3824
                                                                                        plugins/E-mail/__init__.py on lines 3827..3833

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 69.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 7 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onReplAddress(evt):
                                                                                                    if panel.cfgs<>[]:
                                                                                                        val = replAddressCtrl.GetValue().strip()
                                                                                                        sel = self.oldSel
                                                                                                        panel.cfgs[sel][4] = val
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 6 other locations - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1247..1253
                                                                                        plugins/E-mail/__init__.py on lines 1294..1300
                                                                                        plugins/E-mail/__init__.py on lines 1580..1586
                                                                                        plugins/E-mail/__init__.py on lines 3809..3815
                                                                                        plugins/E-mail/__init__.py on lines 3827..3833
                                                                                        plugins/E-mail/__init__.py on lines 3845..3851

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 69.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                    if item[0] != '' and item[0] in panel.passINC:
                                                                                                        userPasswordCtrl.ChangeValue(panel.passINC[item[0]])
                                                                                                    else:
                                                                                                        userPasswordCtrl.ChangeValue('')
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 1074..1077

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 68.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                    if item[0] != '' and item[0] in self.passSMTP:
                                                                                                        passwCtrl.ChangeValue(self.passSMTP[item[0]])
                                                                                                    else:
                                                                                                        passwCtrl.ChangeValue('')
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 1 hr to fix
                                                                                        plugins/E-mail/__init__.py on lines 3595..3598

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 68.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onPort(event):
                                                                                                    if self.servers<>[]:
                                                                                                        val = outPortCtrl.GetValue()
                                                                                                        sel = self.oldSel
                                                                                                        self.servers[sel][2] = val
                                                                                        Severity: Minor
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 55 mins to fix
                                                                                        plugins/E-mail/__init__.py on lines 3836..3842

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 65.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                                def onIncPort(evt):
                                                                                                    if panel.cfgs<>[]:
                                                                                                        val = incPortCtrl.GetValue()
                                                                                                        sel = self.oldSel
                                                                                                        panel.cfgs[sel][6] = val
                                                                                        Severity: Minor
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 55 mins to fix
                                                                                        plugins/E-mail/__init__.py on lines 1256..1262

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 65.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Similar blocks of code found in 3 locations. Consider refactoring.
                                                                                        Open

                                                                                            class text:
                                                                                                fromLabel = 'From:'
                                                                                                toLabel = 'To:'
                                                                                                copyLabel = 'Copy:'
                                                                                                subjectLabel = 'Subject:'
                                                                                        Severity: Major
                                                                                        Found in plugins/E-mail/__init__.py and 2 other locations - About 40 mins to fix
                                                                                        plugins/KIRA/__init__.py on lines 64..117
                                                                                        plugins/System/__init__.py on lines 1535..1547

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 62.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        Identical blocks of code found in 2 locations. Consider refactoring.
                                                                                        Open

                                                                                            def AbortAllObservations(self, close=False):
                                                                                                thrds = list(enumerate(self.observThreads))
                                                                                                thrds.reverse()
                                                                                                for i, item in thrds:
                                                                                                    ot = self.observThreads[item]
                                                                                        Severity: Minor
                                                                                        Found in plugins/E-mail/__init__.py and 1 other location - About 40 mins to fix
                                                                                        plugins/FileOperations/__init__.py on lines 205..210

                                                                                        Duplicated Code

                                                                                        Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                        Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                        When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                        Tuning

                                                                                        This issue has a mass of 62.

                                                                                        We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                                                        The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                                                        If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                                                        See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                                                        Refactorings

                                                                                        Further Reading

                                                                                        There are no issues that match your filters.

                                                                                        Category
                                                                                        Status