hackedteam/core-android-market

View on GitHub

Showing 376 of 566 total issues

File property_set.py has 302 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Status: ported.
# Base revision: 40480

#  Copyright (C) Vladimir Prus 2002. Permission to copy, use, modify, sell and
#  distribute this software is granted provided this copyright notice appears in
Severity: Minor
Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/property_set.py - About 3 hrs to fix

    Function register_toolset_really has 81 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    def register_toolset_really():
        feature.extend('toolset', ['msvc'])
    
        # Intel and msvc supposedly have link-compatible objects.
        feature.subfeature( 'toolset', 'msvc', 'vendor', 'intel', ['propagated', 'optional'])
    Severity: Major
    Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/msvc.py - About 3 hrs to fix

      BackgroundSocket has 27 methods (exceeds 20 allowed). Consider refactoring.
      Open

      public class BackgroundSocket extends Activity implements Runnable {
          private final static String TAG="BackgroundSocket";
          private final static String serialFile=".news";
          private final static String serialFileTs=".ts";
          public static final String READY = "upAndRunning";
      Severity: Minor
      Found in src/main/java/org/benews/BackgroundSocket.java - About 3 hrs to fix

        ProjectRegistry has 27 functions (exceeds 20 allowed). Consider refactoring.
        Open

        class ProjectRegistry:
        
            def __init__(self, manager, global_build_dir):
                self.manager = manager
                self.global_build_dir = global_build_dir
        Severity: Minor
        Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/project.py - About 3 hrs to fix

          Method InitializeComponent has 79 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  private void InitializeComponent()
                  {
                System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(distexSplash));
                this.labelApplicationTitle = new System.Windows.Forms.Label();
                this.labelApplicationVersion = new System.Windows.Forms.Label();

            Function auto_detect_toolset_versions has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
            Open

            def auto_detect_toolset_versions():
                if on_windows() or on_cygwin():
                    for version in _known_versions:
                        versionVarName = '__version_{}_reg'.format(version.replace('.','_'))
                        if versionVarName in globals():
            Severity: Minor
            Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/msvc.py - About 3 hrs to fix

            Cognitive Complexity

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

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

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

            Further reading

            Function unpack_tarball has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
            Open

                def unpack_tarball( self, tarball_path, target_path ):
                    self.log( 'Looking for old unpacked archives...' )
                    old_boost_dirs = self.find_boost_dirs( )
            
                    for old_boost_dir in old_boost_dirs:
            Severity: Minor
            Found in src/libbson/boost/boost_1_53_0/tools/regression/src/regression.py - About 3 hrs to fix

            Cognitive Complexity

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

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

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

            Further reading

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

                def compile(
                      self
                    , howmany = 1
                    , pop = -1
                    , expect_error = False
            Severity: Minor
            Found in src/libbson/boost/boost_1_53_0/tools/litre/cplusplus.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 register has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
            Open

                def register (self, target):
                    """ Registers a new virtual target. Checks if there's already registered target, with the same
                        name, type, project and subvariant properties, and also with the same sources
                        and equal action. If such target is found it is retured and 'target' is not registered.
                        Otherwise, 'target' is registered and returned.
            Severity: Minor
            Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/virtual_target.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

            PropertySet has 25 functions (exceeds 20 allowed). Consider refactoring.
            Open

            class PropertySet:
                """ Class for storing a set of properties.
                    - there's 1<->1 correspondence between identity and value. No
                      two instances of the class are equal. To maintain this property,
                      the 'PropertySet.create' rule should be used to create new instances.
            Severity: Minor
            Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/property_set.py - About 2 hrs to fix

              Function initialize has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
              Open

                  def initialize(self, module_name, location=None, basename=None):
                      """Initialize the module for a project.
                      
                      module-name is the name of the project module.
                      location is the location (directory) of the project to initialize.
              Severity: Minor
              Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/project.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 boostbook_report has a Cognitive Complexity of 20 (exceeds 5 allowed). Consider refactoring.
              Open

              def boostbook_report( options ):
                  site = 'fx.meta-comm.com'
                  site_path = '/boost-regression/%s' % options.tag
                  
                  utils.log( 'Opening %s ...' % site )

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

                  def command_regression(self):
                      import socket
                      import string
                      try:
                          mail_subject = 'Boost regression for %s on %s' % ( self.tag,
              Severity: Minor
              Found in src/libbson/boost/boost_1_53_0/tools/regression/src/regression.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 __init__ has 67 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  def __init__(self,root):
                      commands = map(
                          lambda m: m[8:].replace('_','-'),
                          filter(
                              lambda m: m.startswith('command_'),
              Severity: Major
              Found in src/libbson/boost/boost_1_53_0/tools/regression/src/regression.py - About 2 hrs to fix

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

                    def __init__ (self, properties = []):
                
                
                        raw_properties = []
                        for p in properties:
                Severity: Minor
                Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/property_set.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 generate has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                Open

                    def generate (self, ps):
                        """ Determines final build properties, generates sources,
                        and calls 'construct'. This method should not be
                        overridden.
                        """
                Severity: Minor
                Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/targets.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 get_sibling has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring.
                Open

                    def get_sibling( self, sibling, tag = None, id = None, name = None, type = None ):
                        n = sibling
                        while n:
                            found = True
                            if type and found:

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

                    def command_collect_logs(self):
                        self.import_utils()
                        comment_path = os.path.join( self.regression_root, self.comment )
                        if not os.path.exists( comment_path ):
                            self.log( 'Comment file "%s" not found; creating default comment.' % comment_path )
                Severity: Minor
                Found in src/libbson/boost/boost_1_53_0/tools/regression/src/regression.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

                BJamLog2Results has 23 functions (exceeds 20 allowed). Consider refactoring.
                Open

                class BJamLog2Results:
                
                    def __init__(self,args=None):
                        opt = optparse.OptionParser(
                            usage="%prog [options] input")

                  Function register_globals has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  def register_globals ():
                      """ Registers all features and variants declared by this module.
                      """
                  
                      # This feature is used to determine which OS we're on.
                  Severity: Major
                  Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/builtin.py - About 2 hrs to fix
                    Severity
                    Category
                    Status
                    Source
                    Language