tensorflow/models

View on GitHub
research/object_detection/builders/preprocessor_builder.py

Summary

Maintainability
F
6 days
Test Coverage

Function build has a Cognitive Complexity of 76 (exceeds 5 allowed). Consider refactoring.
Open

def build(preprocessor_step_config):
  """Builds preprocessing step based on the configuration.

  Args:
    preprocessor_step_config: PreprocessingStep configuration proto.
Severity: Minor
Found in research/object_detection/builders/preprocessor_builder.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

File preprocessor_builder.py has 368 lines of code (exceeds 250 allowed). Consider refactoring.
Open

# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Severity: Minor
Found in research/object_detection/builders/preprocessor_builder.py - About 4 hrs to fix

    Avoid too many return statements within this function.
    Open

        return (preprocessor.remap_labels, {
    Severity: Major
    Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return (preprocessor.resize_image,
      Severity: Major
      Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return preprocessor.random_square_crop_by_scale, {
        Severity: Major
        Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return (preprocessor.ssd_random_crop,
          Severity: Major
          Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return (preprocessor.random_self_concat_image, {
            Severity: Major
            Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return (preprocessor.autoaugment_image, {
              Severity: Major
              Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return (preprocessor.ssd_random_crop_pad, {})
                Severity: Major
                Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return (preprocessor.ssd_random_crop_pad_fixed_aspect_ratio, kwargs)
                  Severity: Major
                  Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return (preprocessor.random_absolute_pad_image,
                    Severity: Major
                    Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return (preprocessor.drop_label_probabilistically, {
                      Severity: Major
                      Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return (preprocessor.random_resize_method,
                        Severity: Major
                        Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                              return (preprocessor.ssd_random_crop, {})
                          Severity: Major
                          Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return (preprocessor.ssd_random_crop_pad,
                            Severity: Major
                            Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return (preprocessor.ssd_random_crop_fixed_aspect_ratio,
                              Severity: Major
                              Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return preprocessor.random_jitter_boxes, kwargs
                                Severity: Major
                                Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                      return (preprocessor.ssd_random_crop_fixed_aspect_ratio, {})
                                  Severity: Major
                                  Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                        return (preprocessor.random_crop_image,
                                    Severity: Major
                                    Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                          return (preprocessor.random_crop_pad_image, kwargs)
                                      Severity: Major
                                      Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                            return (preprocessor.random_pad_image,
                                        Severity: Major
                                        Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

                                          Avoid too many return statements within this function.
                                          Open

                                              return preprocessor.random_scale_crop_and_pad_to_square, {
                                          Severity: Major
                                          Found in research/object_detection/builders/preprocessor_builder.py - About 30 mins to fix

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

                                            PREPROCESSING_FUNCTION_MAP = {
                                                'normalize_image':
                                                    preprocessor.normalize_image,
                                                'random_pixel_value_scale':
                                                    preprocessor.random_pixel_value_scale,
                                            Severity: Major
                                            Found in research/object_detection/builders/preprocessor_builder.py and 1 other location - About 4 hrs to fix
                                            official/nlp/modeling/networks/xlnet_base.py on lines 537..575

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

                                            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

                                                if pad_color:
                                                  if len(pad_color) != 3:
                                                    tf.logging.warn('pad_color should have 3 elements (RGB) if set!')
                                            
                                                  pad_color = tf.cast([x for x in config.pad_color], dtype=tf.float32)
                                            Severity: Major
                                            Found in research/object_detection/builders/preprocessor_builder.py and 2 other locations - About 2 hrs to fix
                                            research/object_detection/builders/preprocessor_builder.py on lines 236..240
                                            research/object_detection/builders/preprocessor_builder.py on lines 257..261

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

                                            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

                                                if pad_color:
                                                  if len(pad_color) != 3:
                                                    tf.logging.warn('pad_color should have 3 elements (RGB) if set!')
                                            
                                                  pad_color = tf.cast([x for x in config.pad_color], dtype=tf.float32)
                                            Severity: Major
                                            Found in research/object_detection/builders/preprocessor_builder.py and 2 other locations - About 2 hrs to fix
                                            research/object_detection/builders/preprocessor_builder.py on lines 217..221
                                            research/object_detection/builders/preprocessor_builder.py on lines 257..261

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

                                            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

                                                if pad_color:
                                                  if len(pad_color) != 3:
                                                    tf.logging.warn('pad_color should have 3 elements (RGB) if set!')
                                            
                                                  pad_color = tf.cast([x for x in config.pad_color], dtype=tf.float32)
                                            Severity: Major
                                            Found in research/object_detection/builders/preprocessor_builder.py and 2 other locations - About 2 hrs to fix
                                            research/object_detection/builders/preprocessor_builder.py on lines 217..221
                                            research/object_detection/builders/preprocessor_builder.py on lines 236..240

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

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

                                              if step_type == 'random_horizontal_flip':
                                                config = preprocessor_step_config.random_horizontal_flip
                                                return (preprocessor.random_horizontal_flip,
                                                        {
                                                            'keypoint_flip_permutation': tuple(
                                            Severity: Major
                                            Found in research/object_detection/builders/preprocessor_builder.py and 2 other locations - About 1 hr to fix
                                            research/object_detection/builders/preprocessor_builder.py on lines 167..173
                                            research/object_detection/builders/preprocessor_builder.py on lines 176..182

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

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

                                              if step_type == 'random_rotation90':
                                                config = preprocessor_step_config.random_rotation90
                                                return (preprocessor.random_rotation90,
                                                        {
                                                            'keypoint_rot_permutation': tuple(
                                            Severity: Major
                                            Found in research/object_detection/builders/preprocessor_builder.py and 2 other locations - About 1 hr to fix
                                            research/object_detection/builders/preprocessor_builder.py on lines 158..164
                                            research/object_detection/builders/preprocessor_builder.py on lines 167..173

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

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

                                              if step_type == 'random_vertical_flip':
                                                config = preprocessor_step_config.random_vertical_flip
                                                return (preprocessor.random_vertical_flip,
                                                        {
                                                            'keypoint_flip_permutation': tuple(
                                            Severity: Major
                                            Found in research/object_detection/builders/preprocessor_builder.py and 2 other locations - About 1 hr to fix
                                            research/object_detection/builders/preprocessor_builder.py on lines 158..164
                                            research/object_detection/builders/preprocessor_builder.py on lines 176..182

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

                                            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

                                                if min_padded_size_ratio:
                                                  if len(min_padded_size_ratio) != 2:
                                                    raise ValueError('min_padded_size_ratio should have 2 elements if set!')
                                                  kwargs['min_padded_size_ratio'] = tuple(min_padded_size_ratio)
                                            Severity: Major
                                            Found in research/object_detection/builders/preprocessor_builder.py and 1 other location - About 1 hr to fix
                                            research/object_detection/builders/preprocessor_builder.py on lines 405..408

                                            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

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

                                                if max_padded_size_ratio:
                                                  if len(max_padded_size_ratio) != 2:
                                                    raise ValueError('max_padded_size_ratio should have 2 elements if set!')
                                                  kwargs['max_padded_size_ratio'] = tuple(max_padded_size_ratio)
                                            Severity: Major
                                            Found in research/object_detection/builders/preprocessor_builder.py and 1 other location - About 1 hr to fix
                                            research/object_detection/builders/preprocessor_builder.py on lines 400..403

                                            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

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

                                              if step_type == 'drop_label_probabilistically':
                                                config = preprocessor_step_config.drop_label_probabilistically
                                                return (preprocessor.drop_label_probabilistically, {
                                                    'dropped_label': config.label,
                                                    'drop_probability': config.drop_probability,
                                            Severity: Major
                                            Found in research/object_detection/builders/preprocessor_builder.py and 2 other locations - About 45 mins to fix
                                            research/object_detection/builders/preprocessor_builder.py on lines 296..300
                                            research/object_detection/builders/preprocessor_builder.py on lines 337..341

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

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

                                              if step_type == 'remap_labels':
                                                config = preprocessor_step_config.remap_labels
                                                return (preprocessor.remap_labels, {
                                                    'original_labels': config.original_labels,
                                                    'new_label': config.new_label
                                            Severity: Major
                                            Found in research/object_detection/builders/preprocessor_builder.py and 2 other locations - About 45 mins to fix
                                            research/object_detection/builders/preprocessor_builder.py on lines 296..300
                                            research/object_detection/builders/preprocessor_builder.py on lines 330..334

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

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

                                              if step_type == 'random_self_concat_image':
                                                config = preprocessor_step_config.random_self_concat_image
                                                return (preprocessor.random_self_concat_image, {
                                                    'concat_vertical_probability': config.concat_vertical_probability,
                                                    'concat_horizontal_probability': config.concat_horizontal_probability
                                            Severity: Major
                                            Found in research/object_detection/builders/preprocessor_builder.py and 2 other locations - About 45 mins to fix
                                            research/object_detection/builders/preprocessor_builder.py on lines 330..334
                                            research/object_detection/builders/preprocessor_builder.py on lines 337..341

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

                                            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