hackedteam/core-blackberry

View on GitHub
bb-tools/proguard4.7/src/proguard/ConfigurationParser.java

Summary

Maintainability
F
1 wk
Test Coverage

Method parseMemberSpecificationArguments has a Cognitive Complexity of 157 (exceeds 5 allowed). Consider refactoring.
Open

    private void parseMemberSpecificationArguments(String             externalClassName,
                                                   ClassSpecification classSpecification)
    throws ParseException, IOException
    {
        // Clear the annotation name.
Severity: Minor
Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 3 days 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 ConfigurationParser.java has 873 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/*
 * ProGuard -- shrinking, optimization, obfuscation, and preverification
 *             of Java bytecode.
 *
 * Copyright (c) 2002-2011 Eric Lafortune (eric@graphics.cornell.edu)
Severity: Major
Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 2 days to fix

    Method parseClassSpecificationArguments has a Cognitive Complexity of 73 (exceeds 5 allowed). Consider refactoring.
    Open

        private ClassSpecification parseClassSpecificationArguments()
        throws ParseException, IOException
        {
            // Clear the annotation type.
            String annotationType = null;
    Severity: Minor
    Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.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

    Method parse has a Cognitive Complexity of 59 (exceeds 5 allowed). Consider refactoring.
    Open

        public void parse(Configuration configuration)
        throws ParseException, IOException
        {
            while (nextWord != null)
            {
    Severity: Minor
    Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.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

    Method parseMemberSpecificationArguments has 174 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private void parseMemberSpecificationArguments(String             externalClassName,
                                                       ClassSpecification classSpecification)
        throws ParseException, IOException
        {
            // Clear the annotation name.
    Severity: Major
    Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 6 hrs to fix

      Method parseClassPathArgument has a Cognitive Complexity of 34 (exceeds 5 allowed). Consider refactoring.
      Open

          private ClassPath parseClassPathArgument(ClassPath classPath,
                                                   boolean   isOutput)
          throws ParseException, IOException
          {
              // Create a new List if necessary.
      Severity: Minor
      Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 5 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 parseClassSpecificationArguments has 123 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private ClassSpecification parseClassSpecificationArguments()
          throws ParseException, IOException
          {
              // Clear the annotation type.
              String annotationType = null;
      Severity: Major
      Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 4 hrs to fix

        Method parseCommaSeparatedList has a Cognitive Complexity of 28 (exceeds 5 allowed). Consider refactoring.
        Open

            private List parseCommaSeparatedList(String  expectedDescription,
                                                 boolean readFirstWord,
                                                 boolean allowEmptyList,
                                                 boolean expectClosingParenthesis,
                                                 boolean isFileName,
        Severity: Minor
        Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - 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

        ConfigurationParser has 31 methods (exceeds 20 allowed). Consider refactoring.
        Open

        public class ConfigurationParser
        {
            private WordReader reader;
            private String     nextWord;
            private String     lastComments;
        Severity: Minor
        Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 3 hrs to fix

          Method parse has 64 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public void parse(Configuration configuration)
              throws ParseException, IOException
              {
                  while (nextWord != null)
                  {
          Severity: Major
          Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 2 hrs to fix

            Method parseCommaSeparatedList has 63 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private List parseCommaSeparatedList(String  expectedDescription,
                                                     boolean readFirstWord,
                                                     boolean allowEmptyList,
                                                     boolean expectClosingParenthesis,
                                                     boolean isFileName,
            Severity: Major
            Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 2 hrs to fix

              Consider simplifying this complex logical expression.
              Open

                          if (!(Character.isJavaIdentifierPart(c) ||
                                c == '.' ||
                                c == '[' ||
                                c == ']' ||
                                c == '<' ||
              Severity: Critical
              Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 2 hrs to fix

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

                    private ClassPath parseClassPathArgument(ClassPath classPath,
                                                             boolean   isOutput)
                    throws ParseException, IOException
                    {
                        // Create a new List if necessary.
                Severity: Major
                Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 2 hrs to fix

                  Method parseKeepClassSpecificationArguments has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      private List parseKeepClassSpecificationArguments(List    keepClassSpecifications,
                                                                        boolean markClasses,
                                                                        boolean markConditionally,
                                                                        boolean allowShrinking)
                      throws ParseException, IOException
                  Severity: Minor
                  Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 1 hr to fix

                    Method parseCommaSeparatedList has 10 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        private List parseCommaSeparatedList(String  expectedDescription,
                                                             boolean readFirstWord,
                                                             boolean allowEmptyList,
                                                             boolean expectClosingParenthesis,
                                                             boolean isFileName,
                    Severity: Major
                    Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 1 hr to fix

                      Method replaceSystemProperties has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          private String replaceSystemProperties(String word) throws ParseException
                          {
                              int fromIndex = 0;
                              while (true)
                              {
                      Severity: Minor
                      Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 1 hr to fix

                        Method parseKeepClassSpecificationArguments has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                        Open

                            private List parseKeepClassSpecificationArguments(List    keepClassSpecifications,
                                                                              boolean markClasses,
                                                                              boolean markConditionally,
                                                                              boolean allowShrinking)
                            throws ParseException, IOException
                        Severity: Minor
                        Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 55 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 (counter > 0)
                                                {
                                                    entry.setEarFilter(filters[--counter]);
                                                    if (counter > 0)
                                                    {
                        Severity: Major
                        Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - About 45 mins to fix

                          Method replaceSystemProperties has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                          Open

                              private String replaceSystemProperties(String word) throws ParseException
                              {
                                  int fromIndex = 0;
                                  while (true)
                                  {
                          Severity: Minor
                          Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java - 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

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

                                      int accessFlag =
                                          strippedWord.equals(ClassConstants.EXTERNAL_ACC_PUBLIC)       ? ClassConstants.INTERNAL_ACC_PUBLIC       :
                                          strippedWord.equals(ClassConstants.EXTERNAL_ACC_PRIVATE)      ? ClassConstants.INTERNAL_ACC_PRIVATE      :
                                          strippedWord.equals(ClassConstants.EXTERNAL_ACC_PROTECTED)    ? ClassConstants.INTERNAL_ACC_PROTECTED    :
                                          strippedWord.equals(ClassConstants.EXTERNAL_ACC_STATIC)       ? ClassConstants.INTERNAL_ACC_STATIC       :
                          Severity: Major
                          Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java and 1 other location - About 3 hrs to fix
                          bb-tools/proguard4.7/src/proguard/ant/MemberSpecificationElement.java on lines 189..204

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

                          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

                                          {
                                              throw new ParseException("Expecting separating '" + ConfigurationConstants.ARGUMENT_SEPARATOR_KEYWORD +
                                                                       "' or '" + ConfigurationConstants.SEPARATOR_KEYWORD +
                                                                       "', or closing '" + ConfigurationConstants.CLOSE_ARGUMENTS_KEYWORD +
                                                                       "' before " + reader.locationDescription());
                          Severity: Minor
                          Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java and 1 other location - About 35 mins to fix
                          bb-tools/proguard4.7/src/proguard/ConfigurationParser.java on lines 481..486

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

                          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

                                      {
                                          throw new ParseException("Expecting keyword '" + ConfigurationConstants.ALLOW_SHRINKING_SUBOPTION +
                                                                   "', '"                + ConfigurationConstants.ALLOW_OPTIMIZATION_SUBOPTION +
                                                                   "', or '"             + ConfigurationConstants.ALLOW_OBFUSCATION_SUBOPTION +
                                                                   "' before " + reader.locationDescription());
                          Severity: Minor
                          Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java and 1 other location - About 35 mins to fix
                          bb-tools/proguard4.7/src/proguard/ConfigurationParser.java on lines 276..281

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

                          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

                              private void checkMethodAccessFlags(int requiredSetMemberAccessFlags,
                                                                  int requiredUnsetMemberAccessFlags)
                              throws ParseException
                              {
                                  if (((requiredSetMemberAccessFlags |
                          Severity: Minor
                          Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java and 1 other location - About 35 mins to fix
                          bb-tools/proguard4.7/src/proguard/ConfigurationParser.java on lines 1226..1237

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

                          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

                              private void checkFieldAccessFlags(int requiredSetMemberAccessFlags,
                                                                 int requiredUnsetMemberAccessFlags)
                              throws ParseException
                              {
                                  if (((requiredSetMemberAccessFlags |
                          Severity: Minor
                          Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java and 1 other location - About 35 mins to fix
                          bb-tools/proguard4.7/src/proguard/ConfigurationParser.java on lines 1244..1255

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

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

                                          readNextWord("keyword '" + ConfigurationConstants.CLASS_KEYWORD +
                                                       "', '"      + ClassConstants.EXTERNAL_ACC_INTERFACE +
                                                       "', or '"   + ClassConstants.EXTERNAL_ACC_ENUM + "'",
                                                       false, true);
                          Severity: Minor
                          Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java and 2 other locations - About 30 mins to fix
                          bb-tools/proguard4.7/src/proguard/ConfigurationParser.java on lines 453..456
                          bb-tools/proguard4.7/src/proguard/ConfigurationParser.java on lines 514..517

                          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

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

                                  readNextWord("keyword '" + ConfigurationConstants.CLASS_KEYWORD +
                                               "', '"      + ClassConstants.EXTERNAL_ACC_INTERFACE +
                                               "', or '"   + ClassConstants.EXTERNAL_ACC_ENUM + "'",
                                               false, true);
                          Severity: Minor
                          Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java and 2 other locations - About 30 mins to fix
                          bb-tools/proguard4.7/src/proguard/ConfigurationParser.java on lines 453..456
                          bb-tools/proguard4.7/src/proguard/ConfigurationParser.java on lines 610..613

                          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

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

                                      readNextWord("keyword '" + ConfigurationConstants.CLASS_KEYWORD +
                                                   "', '"      + ClassConstants.EXTERNAL_ACC_INTERFACE +
                                                   "', or '"   + ClassConstants.EXTERNAL_ACC_ENUM + "'",
                                                   false, true);
                          Severity: Minor
                          Found in bb-tools/proguard4.7/src/proguard/ConfigurationParser.java and 2 other locations - About 30 mins to fix
                          bb-tools/proguard4.7/src/proguard/ConfigurationParser.java on lines 514..517
                          bb-tools/proguard4.7/src/proguard/ConfigurationParser.java on lines 610..613

                          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

                          There are no issues that match your filters.

                          Category
                          Status