hackedteam/core-android-market

View on GitHub
src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py

Summary

Maintainability
F
1 wk
Test Coverage

File doxproc.py has 550 lines of code (exceeds 250 allowed). Consider refactoring.
Open

#!/usr/bin/python
# Copyright 2006 Rene Rivera
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)

Severity: Major
Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py - About 1 day to fix

    Doxygen2BoostBook has 55 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Doxygen2BoostBook:
        
        def __init__( self, **kwargs ):
            ##
            self.args = kwargs
    Severity: Major
    Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py - About 7 hrs to fix

      Function _translate_doxygenindex has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
      Open

          def _translate_doxygenindex( self, node ):
              #~ print '_translate_doxygenindex:', node.nodeName
              if self.args['index']:
                  entries = []
                  classes = []
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.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 _translate_templateparamlist has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
      Open

          def _translate_templateparamlist( self, templateparamlist, target=None, **kwargs ):
              template = target.appendChild(self._createNode('template'))
              for param in templateparamlist.childNodes:
                  if param.nodeName == 'param':
                      type = self._getChildData('type',root=param)
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.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 _getChild has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def _getChild( self, tag = None, id = None, name = None, root = None ):
              if not root:
                  root = self.boostbook.documentElement
              for n in root.childNodes:
                  found = True
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.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 _generate has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
      Open

          def _generate( self ):
              if not self.generated:
                  self.generated = True
                  symbols = self.symbols.keys()
                  symbols.sort()
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.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 _translateNode has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
      Open

          def _translateNode( self, *context, **kwargs ):
              node = None
              names = [ ]
              for c in context:
                  if c:
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.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

      Avoid deeply nested control flow statements.
      Open

                              for m in n.childNodes:
                                  if m.nodeName == 'member':
                                      cpp = self._cppName(self._getChildData('name',root=m))
                                      entry = {
                                          'name' : cpp['name'],
      Severity: Major
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py - About 45 mins to fix

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

            def _rewriteIDs( self, node ):
                if node.nodeName in ('link'):
                    if (self.idmap.has_key(node.getAttribute('linkend'))):
                        #~ A link, and we have someplace to repoint it at.
                        node.setAttribute('linkend',self.idmap[node.getAttribute('linkend')])
        Severity: Minor
        Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.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 n.getAttribute('kind') in ('class','struct'):
                                    classes.append(entry)
                                entries.append(entry)
        Severity: Major
        Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py - About 45 mins to fix

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

          def main( xmldir=None, output=None, id=None, title=None, index=False ):
          Severity: Minor
          Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py - About 35 mins to fix

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

                def _translateChildren( self, parent, **kwargs ):
                    target = kwargs['target']
                    for n in parent.childNodes:
                        child = self._translateNode(n,target=target)
                        if child:
            Severity: Minor
            Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.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 _createNode has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
            Open

                def _createNode( self, tag, **kwargs ):
                    result = self.boostbook.createElement(tag)
                    for k in kwargs.keys():
                        if kwargs[k] != '':
                            if k == 'id':
            Severity: Minor
            Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.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 _resolveContainer has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
            Open

                def _resolveContainer( self, cpp, root ):
                    container = root
                    for ns in cpp['namespace']:
                        node = self._getChild('namespace',name=ns,root=container)
                        if not node:
            Severity: Minor
            Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.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

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

            def main( xmldir=None, output=None, id=None, title=None, index=False ):
                #~ print '--- main: xmldir = %s, output = %s' % (xmldir,output)
                
                input = glob.glob( os.path.abspath( os.path.join( xmldir, "*.xml" ) ) )
                input.sort
            Severity: Minor
            Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.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

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

                def _translate_index_(self, entries, target=None, **kwargs ):
                    i = 0
                    targetID = target.getAttribute('id')
                    while i < len(entries):
                        dividerKey = entries[i]['name'][0].upper()
            Severity: Minor
            Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.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 2 locations. Consider refactoring.
            Open

                        if id and found:
                            if n.hasAttribute('id'):
                                found = found and n.getAttribute('id') == id
                            else:
                                found = found and n.hasAttribute('id') and n.getAttribute('id') == id
            src/libbson/boost/boost_1_53_0/tools/regression/src/process_jam_log.py on lines 404..408

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

            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 _createText( self, tag, data, **kwargs ):
                    result = self._createNode(tag,**kwargs)
                    data = data.strip()
                    if len(data) > 0:
                        result.appendChild(self.boostbook.createTextNode(data))
            src/libbson/boost/boost_1_53_0/tools/regression/src/process_jam_log.py on lines 460..465

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

            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

                        classes.sort(lambda x,y: cmp(x['name'].lower(),y['name'].lower()))
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 291..291

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

            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

                        entries.sort(lambda x,y: cmp(x['name'].lower(),y['name'].lower()))
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 292..292

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

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

                    enum = target.appendChild(self._createNode('enum',
                        id=memberdef.getAttribute('id'),
                        name=self._getChildData('name',root=memberdef)))
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 551..553
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 652..654
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 691..693

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

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

                    typedef = target.appendChild(self._createNode('typedef',
                        id=memberdef.getAttribute('id'),
                        name=self._getChildData('name',root=memberdef)))
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 652..654
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 670..672
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 691..693

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

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

                    value = target.appendChild(self._createNode('enumvalue',
                        id=enumvalue.getAttribute('id'),
                        name=self._getChildData('name',root=enumvalue)))
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 551..553
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 652..654
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 670..672

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

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

                    data_member = target.appendChild(self._createNode('data-member',
                        id=memberdef.getAttribute('id'),
                        name=self._getChildData('name',root=memberdef)))
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 551..553
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 670..672
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 691..693

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

            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

                    for n in sectiondef.childNodes:
                        if hasattr(n,'getAttribute'):
                            self._translateNode(n,n.getAttribute('kind'),target=members,**kwargs)
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 475..477

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

            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

                    for n in sectiondef.childNodes:
                        if hasattr(n,'getAttribute'):
                            self._translateNode(n,n.getAttribute('kind'),target=target,**kwargs)
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 499..501

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

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

                    self._setID(enumvalue.getAttribute('id'),
                        scope+'::'+self._getChildData('name',root=enumvalue))
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 549..550
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 650..651
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 668..669

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

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

                    self._setID(memberdef.getAttribute('id'),
                        scope+'::'+self._getChildData('name',root=memberdef))
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 650..651
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 668..669
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 689..690

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

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

                    self._setID(memberdef.getAttribute('id'),
                        scope+'::'+self._getChildData('name',root=memberdef))
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 549..550
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 668..669
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 689..690

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

            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 name and found:
                            found = found and n.hasAttribute('name') and n.getAttribute('name') == name
            src/libbson/boost/boost_1_53_0/tools/regression/src/process_jam_log.py on lines 409..410

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

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

                    self._setID(memberdef.getAttribute('id'),
                        scope+'::'+self._getChildData('name',root=memberdef))
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 549..550
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 650..651
            src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py on lines 689..690

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

            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

                map( lambda x: options.__setitem__( x[0], x[1] ), option_pairs )
            Severity: Minor
            Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/doxproc.py and 1 other location - About 35 mins to fix
            src/libbson/boost/boost_1_53_0/tools/regression/xsl_reports/utils/accept_args.py on lines 11..11

            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