hackedteam/core-android-market

View on GitHub

Showing 566 of 566 total issues

File cplusplus.py has 596 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright David Abrahams 2004. 
# Copyright Daniel Wallin 2006.
# Distributed under the Boost
# Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Severity: Major
Found in src/libbson/boost/boost_1_53_0/tools/litre/cplusplus.py - About 1 day to fix

    File common.py has 575 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    #  Status: being ported by Steven Watanabe
    #  Base revision: 47174
    #
    #  Copyright (C) Vladimir Prus 2002. Permission to copy, use, modify, sell and
    #  distribute this software is granted provided this copyright notice appears in
    Severity: Major
    Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/common.py - About 1 day to fix

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

      for maintainer_name in report.maintainers:
          maintainer = report.maintainers[maintainer_name]
      
          email = maintainer.composeEmail(report)
          if email:
      src/libbson/boost/boost_1_53_0/tools/regression/xsl_reports/email_maintainers.py on lines 794..811

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

      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 maintainer_name in report.platform_maintainers:
          maintainer = report.platform_maintainers[maintainer_name]
      
          email = maintainer.composeEmail(report)
          if email:
      src/libbson/boost/boost_1_53_0/tools/regression/xsl_reports/email_maintainers.py on lines 774..791

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

      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

      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

        Method getView has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring.
        Open

            @Override
            public View getView(int position, View convertView, ViewGroup parent) {
        
                ViewHolderItem viewElements;
                if (position % 2 == 0) {
        Severity: Minor
        Found in src/main/java/org/benews/BeNewsArrayAdapter.java - About 1 day 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

        File DistexForm.cs has 542 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        using System;
        using System.Collections.Generic;
        using System.ComponentModel;
        using System.Data;
        using System.Drawing;

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

          using System;
          using System.Collections.Generic;
          using System.ComponentModel;
          using System.Drawing;
          using System.Windows.Forms;
          src/libbson/boost/boost_1_53_0/libs/math/dot_net_example/distribution_explorer/AboutDistributionExplorer.cs on lines 1..116

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

          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

          using System;
          using System.Collections.Generic;
          using System.ComponentModel;
          using System.Drawing;
          using System.Windows.Forms;
          src/libbson/boost/boost_1_53_0/libs/math/dot_net_example/distribution_explorer/distexAboutBox.cs on lines 1..117

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

          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

          Function get_next_news has a Cognitive Complexity of 57 (exceeds 5 allowed). Consider refactoring.
          Open

          def get_next_news(client_param,client_stats):
              nline = 0;
              #printl("opening file %s" %batch_file)
              if os.path.exists(batch_file) and len(echo.translated_lines) == 0:
                  opened = open(batch_file)
          Severity: Minor
          Found in server/benews-srv.py - About 1 day 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 (QuantileData.Rows.Count == 1)
                  {
                    // Add some defaults:
                    QuantileData.Rows.Add(5); // 5 Risk levels.
                    QuantileData.Rows[0].Cells[0].Value = "0.001"; // Risk values as text,
          src/libbson/boost/boost_1_53_0/libs/math/dot_net_example/distribution_explorer/DistexForm.cs on lines 504..522

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

          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 (QuantileData.Rows.Count == 1)
                  { // Add some defaults:
                    QuantileData.Rows.Add(5); // 5 Risk levels.
                    QuantileData.Rows[0].Cells[0].Value = "0.001"; // Risk values as text,
                    QuantileData.Rows[0].Cells[1].Value = dist.quantile(0.001); // & as double.
          src/libbson/boost/boost_1_53_0/libs/math/dot_net_example/distribution_explorer/DistexForm.cs on lines 314..333

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

          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

          Function main_real has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
          Open

          def main_real():
          
              global debug_config, legacy_ignore_config, out_xml
          
              debug_config = "--debug-configuration" in sys.argv
          Severity: Minor
          Found in src/libbson/boost/boost_1_53_0/tools/build/v2/build_system.py - About 1 day 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 publish_test_logs has a Cognitive Complexity of 56 (exceeds 5 allowed). Consider refactoring.
          Open

          def publish_test_logs(
              input_dirs,
              runner_id, tag, platform, comment_file, timestamp, user, source, run_type,
              dart_server = None,
              http_proxy = None,

          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

          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

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

                    for c in context:
                        if c:
                            if not isinstance(c,xml.dom.Node):
                                suffix = '_'+c.replace('-','_').replace('#','_')
                            else:
            src/libbson/boost/boost_1_53_0/tools/regression/src/process_jam_log.py on lines 145..153

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

            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

                    for c in context:
                        if c:
                            if not isinstance(c,xml.dom.Node):
                                suffix = '_'+c.replace('-','_').replace('#','_')
                            else:
            src/libbson/boost/boost_1_53_0/tools/regression/src/process_jam_log.py on lines 127..135

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

            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

            File BackgroundSocket.java has 462 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            package org.benews;
            
            import android.app.Activity;
            import android.content.Context;
            import android.content.Intent;
            Severity: Minor
            Found in src/main/java/org/benews/BackgroundSocket.java - About 7 hrs to fix

              File gcc.py has 456 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              # Status: being ported by Steven Watanabe
              # Base revision: 47077
              # TODO: common.jam needs to be ported
              # TODO: generators.jam needs to have register_c_compiler.
              #
              Severity: Minor
              Found in src/libbson/boost/boost_1_53_0/tools/build/v2/tools/gcc.py - About 6 hrs to fix

                File collect_and_upload_logs.py has 456 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                # Copyright (c) MetaCommunications, Inc. 2003-2007
                #
                # Distributed under the Boost Software License, Version 1.0. 
                # (See accompanying file LICENSE_1_0.txt or copy at 
                # http://www.boost.org/LICENSE_1_0.txt)
                  Severity
                  Category
                  Status
                  Source
                  Language