hackedteam/vector-edk

View on GitHub
AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py

Summary

Maintainability
F
2 wks
Test Coverage

TexinfoParser has 260 functions (exceeds 20 allowed). Consider refactoring.
Open

class TexinfoParser:

    COPYRIGHT_SYMBOL = "©"
    FN_ID_PATTERN = "(%(id)s)"
    FN_SOURCE_PATTERN = '<A NAME=footnoteref%(id)s' \
Severity: Major
Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 5 days to fix

    File texi2html.py has 1558 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    #! /usr/bin/env python
    
    # Convert GNU texinfo files into HTML, one file per node.
    # Based on Texinfo 2.14.
    # Usage: texi2html [-d] [-d] [-c] inputfile outputdirectory
    Severity: Major
    Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 4 days to fix

      Function parserest has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring.
      Open

          def parserest(self, fp, initial_lineno):
              lineno = initial_lineno
              self.done = 0
              self.skip = 0
              self.stack = []
      Severity: Minor
      Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 7 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function expand has a Cognitive Complexity of 40 (exceeds 5 allowed). Consider refactoring.
      Open

          def expand(self, text):
              stack = []
              i = 0
              n = len(text)
              while i < n:
      Severity: Minor
      Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 6 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

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

          def popstack(self, type):
              if (self.node):
                  self.node.type = type
                  while self.nodestack:
                      if self.nodestack[-1].type > type:
      Severity: Minor
      Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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 increment has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
      Open

      def increment(s):
          if not s:
              return '1'
          for sequence in string.digits, string.lowercase, string.uppercase:
              lastc = s[-1]
      Severity: Minor
      Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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 prindex has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
      Open

          def prindex(self, name):
              iscodeindex = (name not in self.noncodeindices)
              index = self.whichindex[name]
              if not index: return
              if self.debugging:
      Severity: Minor
      Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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 process has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
      Open

          def process(self, accu):
              if self.debugging > 1:
                  print '!'*self.debugging, 'process:', self.skip, self.stack,
                  if accu: print accu[0][:30],
                  if accu[0][30:] or accu[1:]: print '...',
      Severity: Minor
      Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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 endnode has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def endnode(self):
              if self.savetext <> None:
                  print '*** Still saving text at end of node'
                  dummy = self.collectsavings()
              if self.footnotes:
      Severity: Minor
      Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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 __init__ has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          def __init__(self):
              self.unknown = {}       # statistics about unknown @-commands
              self.filenames = {}     # Check for identical filenames
              self.debugging = 0      # larger values produce more output
              self.print_headers = 0  # always print headers?
      Severity: Minor
      Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 1 hr to fix

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

            def makeimage(self):
                text = self.collectsavings()
                args = [s.strip() for s in text.split(',')]
                while len(args) < 5: args.append('')
                filename = args[0]
        Severity: Minor
        Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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 do_item has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
        Open

            def do_item(self, args):
                if self.itemindex: self.index(self.itemindex, args)
                if self.itemarg:
                    if self.itemarg[0] == '@' and self.itemarg[1] and \
                                    self.itemarg[1] in string.ascii_letters:
        Severity: Minor
        Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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 test has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        def test():
            import sys
            debugging = 0
            print_headers = 0
            cont = 0
        Severity: Minor
        Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 1 hr to fix

          Function listcontents has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
          Open

              def listcontents(self, title, maxlevel):
                  self.write('<H1>', title, '</H1>\n<UL COMPACT PLAIN>\n')
                  prevlevels = [0]
                  for level, title, node in self.contents:
                      if level > maxlevel:
          Severity: Minor
          Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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 test has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
          Open

          def test():
              import sys
              debugging = 0
              print_headers = 0
              cont = 0
          Severity: Minor
          Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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 __init__ has 7 arguments (exceeds 4 allowed). Consider refactoring.
          Open

              def __init__(self, dir, name, topname, title, next, prev, up):
          Severity: Major
          Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 50 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                if s == '00':
                                    s = '10'
                            else:
            Severity: Major
            Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 45 mins to fix

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

                  def command(self, line, mo):
                      a, b = mo.span(1)
                      cmd = line[a:b]
                      args = line[b:].strip()
                      if self.debugging > 1:
              Severity: Minor
              Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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

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

                  def link(self, label, nodename, rel=None, rev=None):
                      if nodename:
                          if nodename.lower() == '(dir)':
                              addr = '../dir.html'
                              title = ''
              Severity: Minor
              Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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

                                      if not self.skip:
                                          self.process(accu)
                                      accu = []
              Severity: Major
              Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                        if self.nofill:
                                            self.write('\n')
                                        else:
                                            self.write('<P>\n')
                                        accu = []
                Severity: Major
                Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 45 mins to fix

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

                  def findwordend(str, i, n):
                      level = 0
                      while i < n:
                          mo = fwprog.search(str, i)
                          if not mo:
                  Severity: Minor
                  Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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

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

                      def do_node(self, args):
                          self.endnode()
                          self.nodelineno = 0
                          parts = [s.strip() for s in args.split(',')]
                          while len(parts) < 4: parts.append('')
                  Severity: Minor
                  Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.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

                  Function addnode has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      def addnode(self,name,next,prev,up,filename):
                  Severity: Minor
                  Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 35 mins to fix

                    Function splitwords has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                    def splitwords(str, minlength):
                        words = []
                        i = 0
                        n = len(str)
                        while i < n:
                    Severity: Minor
                    Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 35 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 do_end has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def do_end(self, args):
                            words = args.split()
                            if not words:
                                print '*** @end w/o args'
                            else:
                    Severity: Minor
                    Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 35 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 heading has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def heading(self, type, args, level):
                            if level >= 0:
                                while len(self.numbering) <= level:
                                    self.numbering.append(0)
                                del self.numbering[level+1:]
                    Severity: Minor
                    Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 35 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 inmenu has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def inmenu(self):
                            #if 'menu' in self.stack:
                            #    print 'inmenu   :', self.skip, self.stack, self.stackinfo
                            stack = self.stack
                            while stack and stack[-1] in ('ifset','ifclear'):
                    Severity: Minor
                    Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 35 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 dumpmenu has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                    Open

                        def dumpmenu(self, menu, indent=0, outfile=sys.stdout):
                            if menu:
                                currentnode = self.current
                                if currentnode != self.topnode:    # XXX this is a hack
                                    print>>outfile, ' '*indent + '<UL>'
                    Severity: Minor
                    Found in AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py - About 35 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

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

                        def do_defvrx(self, args):
                            self.write('<DT>')
                            words = splitwords(args, 2)
                            [category, name], rest = words[:2], words[2:]
                            self.expand('@code{%s}' % name)
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 1384..1392

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

                    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 do_deftpx(self, args):
                            self.write('<DT>')
                            words = splitwords(args, 2)
                            [category, name], rest = words[:2], words[2:]
                            self.expand('@b{%s}' % name)
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 1264..1273

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

                    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 end_ifset(self):
                            try:
                                if self.stackinfo[len(self.stack) + 1]:
                                    self.skip = self.skip - 1
                                del self.stackinfo[len(self.stack) + 1]
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 977..983

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

                    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 end_ifclear(self):
                            try:
                                if self.stackinfo[len(self.stack) + 1]:
                                    self.skip = self.skip - 1
                                del self.stackinfo[len(self.stack) + 1]
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 962..968

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

                    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 5 locations. Consider refactoring.
                    Open

                            if not self.unknown.has_key(cmd):
                                self.unknown[cmd] = 1
                            else:
                                self.unknown[cmd] = self.unknown[cmd] + 1
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 520..523
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 537..540
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 894..897
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 919..922

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

                    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 5 locations. Consider refactoring.
                    Open

                            if not self.unknown.has_key(cmd):
                                self.unknown[cmd] = 1
                            else:
                                self.unknown[cmd] = self.unknown[cmd] + 1
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 520..523
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 529..532
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 894..897
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 919..922

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

                    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 5 locations. Consider refactoring.
                    Open

                            if not self.unknown.has_key(cmd):
                                self.unknown[cmd] = 1
                            else:
                                self.unknown[cmd] = self.unknown[cmd] + 1
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 529..532
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 537..540
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 894..897
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 919..922

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

                    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 5 locations. Consider refactoring.
                    Open

                            if not self.unknown.has_key(cmd):
                                self.unknown[cmd] = 1
                            else:
                                self.unknown[cmd] = self.unknown[cmd] + 1
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 520..523
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 529..532
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 537..540
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 894..897

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

                    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 5 locations. Consider refactoring.
                    Open

                            if not self.unknown.has_key(cmd):
                                self.unknown[cmd] = 1
                            else:
                                self.unknown[cmd] = self.unknown[cmd] + 1
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 520..523
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 529..532
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 537..540
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 919..922

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

                    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 self.nodestack[-1].type > type:
                                        self.nodestack[-1].finalize()
                                        self.nodestack[-1].flush()
                                        del self.nodestack[-1]
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 314..317

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

                    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

                                while self.nodestack:
                                    self.nodestack[-1].finalize()
                                    self.nodestack[-1].flush()
                                    del self.nodestack[-1]
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 1085..1088

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

                    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

                            line = line[:bgn] + line[a:b] + line[end:]
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/methfix.py on lines 167..167

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

                    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 args not in self.values.keys() \
                               or self.values[args] is None:
                                self.skip = self.skip + 1
                                self.stackinfo[len(self.stack)] = 1
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 971..974

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

                    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 args in self.values.keys() \
                               and self.values[args] is not None:
                                self.skip = self.skip + 1
                                self.stackinfo[len(self.stack)] = 1
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 956..959

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

                    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

                        if sys.argv[1] == '-p':
                            print_headers = 1
                            del sys.argv[1]
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 2034..2036
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 2037..2039

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

                    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

                        if sys.argv[1] == '-c':
                            cont = 1
                            del sys.argv[1]
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 2031..2033
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 2037..2039

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

                    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

                        if sys.argv[1] == '-3':
                            html3 = 1
                            del sys.argv[1]
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 2031..2033
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 2034..2036

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

                    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

                                    try:
                                        method = getattr(self, 'open_' + cmd)
                                    except AttributeError:
                                        self.unknown_open(cmd)
                                        continue
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 469..473
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 505..509

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

                    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

                                try:
                                    method = getattr(self, 'handle_' + cmd)
                                except AttributeError:
                                    self.unknown_handle(cmd)
                                    continue
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 469..473
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 498..502

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

                    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

                                    try:
                                        method = getattr(self, 'close_' + cmd)
                                    except AttributeError:
                                        self.unknown_close(cmd)
                                        continue
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 498..502
                    AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/texi2html.py on lines 505..509

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

                    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