hackedteam/core-android-market

View on GitHub

Showing 376 of 566 total issues

Function load_jamfile has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
Open

    def load_jamfile(self, dir, jamfile_module):
        """Load a Jamfile at the given directory. Returns nothing.
        Will attempt to load the file as indicated by the JAMFILE patterns.
        Effect of calling this rule twice with the same 'dir' is underfined."""
      
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 evaluate_requirements has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
Open

    def evaluate_requirements(self, requirements, context, what):
        # Apply non-conditional requirements. 
        # It's possible that that further conditional requirement change 
        # a value set by non-conditional requirements. For example:
        #
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 find_really has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
Open

    def find_really(self, id):
        """ Find and return the target with the specified id, treated
            relative to self.
        """
        result = None        
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 targets_to_stage has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
Open

    def targets_to_stage(self, source_targets, ps):
        """Given the list of source targets explicitly passed to 'stage', returns the
        list of targets which must be staged."""

        result = []
Severity: Minor
Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/stage.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_data has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
Open

    def get_data( self, node, strip = False, default = None ):
        data = None
        if node:
            data_node = None
            if not data_node:

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

def make_result_pages( 
          test_results_file
        , expected_results_file
        , failures_markup_file
        , tag
Severity: Minor
Found in src/libbson/boost/boost_1_53_0/tools/regression/xsl_reports/report.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

Method getView has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

        ViewHolderItem viewElements;
        if (position % 2 == 0) {
Severity: Major
Found in src/main/java/org/benews/BeNewsArrayAdapter.java - About 2 hrs to fix

    Function adjust_user_config has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
    Open

    def adjust_user_config( config_file
                            , docbook_xsl_dir
                            , docbook_dtd_dir
                            , xsltproc
                            , doxygen
    Severity: Minor
    Found in src/libbson/boost/boost_1_53_0/tools/boostbook/setup_boostbook.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 __select_alternatives has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
    Open

        def __select_alternatives (self, property_set, debug):
            """ Returns the best viable alternative for this property_set
                See the documentation for selection rules.
                # TODO: shouldn't this be 'alternative' (singular)?
            """
    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 _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 mkdir has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
    Open

    def mkdir(engine, target):
        # If dir exists, do not update it. Do this even for $(DOT).
        bjam.call('NOUPDATE', target)
    
        global __mkdir_set
    Severity: Minor
    Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/common.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 make_result_pages has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
    Open

    def make_result_pages(
              extended_test_results
            , expected_results_file
            , failures_markup_file
            , tag

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

        def parseLibraryMaintainersFile(self):
            """
            Parse the maintainers file in ../../../libs/maintainers.txt to
            collect information about the maintainers of broken libraries.
            """

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

        def parsePlatformMaintainersFile(self):
            """
            Parse the platform maintainers file in
            ../../../libs/platform_maintainers.txt to collect information
            about the maintainers of the various platforms.

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

        def parseIssuesEmail(self):
            """
            Try to parse the issues e-mail file. Returns True if everything was
            successful, false otherwise.
            """

    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

    ProjectRules has 21 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class ProjectRules:
        """Class keeping all rules that are made available to Jamfile."""
    
        def __init__(self, registry):
            self.registry = registry
    Severity: Minor
    Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build/project.py - About 2 hrs to fix

      Class DistexForm has 21 methods (exceeds 20 allowed). Consider refactoring.
      Open

        public partial class DistexForm : Form
        {
      
          EventLog log = new EventLog();
          /// <summary>

        Method doInBackground has 54 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                @Override
                protected ByteBuffer doInBackground(HashMap<String,String>... args) {
                    ByteBuffer wrapped = null;
                    byte obj[];
                    try {
        Severity: Major
        Found in src/main/java/org/benews/BackgroundSocket.java - About 2 hrs to fix

          Function collect_and_upload_logs has 17 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          def collect_and_upload_logs( 

            Function find_jamfile has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring.
            Open

                def find_jamfile (self, dir, parent_root=0, no_errors=0):
                    """Find the Jamfile at the given location. This returns the
                    exact names of all the Jamfiles in the given directory. The optional
                    parent-root argument causes this to search not the given directory
                    but the ones above it up to the directory given in it."""
            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

            Severity
            Category
            Status
            Source
            Language