hackedteam/core-android-market

View on GitHub

Showing 566 of 566 total issues

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

def upload_to_ftp( tag, results_file, ftp_proxy, debug_level, ftp_url ):

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

        def get_child( self, root, tag = None, id = None, name = None, type = None ):
    Severity: Minor
    Found in src/libbson/boost/boost_1_53_0/tools/regression/src/process_jam_log.py - About 35 mins to fix

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

      def register_suffixes (suffixes, type):
          """ Specifies that targets with suffix from 'suffixes' have the type 'type'. 
              If a different type is already specified for any of syffixes, issues an error.
          """
          for s in suffixes:
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/type.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 run_really has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def run_really (self, project, name, prop_set, sources):
      
              # consumed: Targets that this generator will consume directly.
              # bypassed: Targets that can't be consumed and will be returned as-is.
              
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/generators.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 change has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def change (properties, feature, value = None):
          """ Returns a modified version of properties with all values of the
              given feature replaced by the given value.
              If 'value' is None the feature will be removed.
          """
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/property.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 programs_path has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def programs_path ():
          raw = []
          names = ['PATH', 'Path', 'path']
          
          for name in names:
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/util/path.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 unique has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def unique (values, stable=False):
          if stable:
              s = set()
              r = []
              for v in values:
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/util/sequence.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 flags has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def flags(rule_or_module, variable_name, condition, values = []):
          """ Specifies the flags (variables) that must be set on targets under certain
              conditions, described by arguments.
              rule_or_module:   If contains dot, should be a rule name.
                                The flags will be applied when that rule is
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/toolset.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 evaluate_conditionals_in_context has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def evaluate_conditionals_in_context (properties, context):
          """ Removes all conditional properties which conditions are not met
              For those with met conditions, removes the condition. Properies
              in conditions are looked up in 'context'
          """
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/property.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 _line_directive has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def _line_directive(self, line, source, offset = None):
              if self.line_hash is None:
                  return '\n'
              
              if offset is None:
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/litre/cplusplus.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 get has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def get(name, default_value=None, implied_value=None):
      
          global options
      
          matches = b2.util.regex.transform(sys.argv, "--" + re.escape(name) + "=(.*)")
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/util/option.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 construct_result has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def construct_result (self, consumed, project, name, prop_set):
              """ Constructs the dependency graph that will be returned by this 
                  generator.
                      consumed:        Already prepared list of consumable targets
                                       If generator requires several source files will contain 
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/generators.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 add_defaults has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def add_defaults (properties):
          """ Given a set of properties, add default values for features not
              represented in the set. 
              Note: if there's there's ordinary feature F1 and composite feature
              F2, which includes some value for F1, and both feature have default values,
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/feature.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 grist has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def grist (self):
              """Helper to 'actual_name', above. Compute unique prefix used to distinguish
                  this target from other targets with the same name which create different
                  file.
              """
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/virtual_target.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 reset has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def reset ():
          """ Clear the module state. This is mainly for testing purposes.
              Note that this must be called _after_ resetting the module 'feature'.
          """    
          global __had_unspecified_value, __had_value, __declared_subfeature
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/common.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 get_absolute_tool_path has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def get_absolute_tool_path(command):
          """
              Given an invocation command,
              return the absolute path to the command. This works even if commnad
              has not path element and is present in PATH.
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/common.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 main_target_sources has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def main_target_sources (self, sources, main_target_name, no_renaming=0):
              """Return the list of sources to use, if main target rule is invoked
              with 'sources'. If there are any objects in 'sources', they are treated
              as main target instances, and the name of such targets are adjusted to
              be '<name_of_this_target>__<name_of_source_target>'. Such renaming
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/targets.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 extra_usage_requirements has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

          def extra_usage_requirements (self, created_targets, prop_set):
              
              result = property_set.empty ()
              extra = []
                              
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/builtin.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 add_prefix_and_suffix has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      def add_prefix_and_suffix(specified_name, type, property_set):
          """Appends the suffix appropriate to 'type/property-set' combination
          to the specified name and returns the result."""
      
          property_set = b2.util.jam_to_value_maybe(property_set)
      Severity: Minor
      Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/virtual_target.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

      Severity
      Category
      Status
      Source
      Language