librenms/librenms

View on GitHub

Showing 31,573 of 31,573 total issues

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

<?php

return [

    /*
Severity: Major
Found in lang/sr/wireless.php and 3 other locations - About 2 days to fix
lang/en/wireless.php on lines 1..135
lang/it/wireless.php on lines 1..135
lang/uk/wireless.php on lines 1..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 514.

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

        'poller_modules' => [
            'unix-agent' => [
                'description' => 'Unix Agent',
            ],
            'os' => [
Severity: Major
Found in lang/fr/settings.php and 2 other locations - About 2 days to fix
lang/it/settings.php on lines 1032..1171
lang/uk/settings.php on lines 1023..1162

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

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

        'poller_modules' => [
            'unix-agent' => [
                'description' => 'Unix Agent',
            ],
            'os' => [
Severity: Major
Found in lang/it/settings.php and 2 other locations - About 2 days to fix
lang/fr/settings.php on lines 772..911
lang/uk/settings.php on lines 1023..1162

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

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

        'poller_modules' => [
            'unix-agent' => [
                'description' => 'Unix Agent',
            ],
            'os' => [
Severity: Major
Found in lang/uk/settings.php and 2 other locations - About 2 days to fix
lang/fr/settings.php on lines 772..911
lang/it/settings.php on lines 1032..1171

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

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

<?php

return [

    /*
Severity: Major
Found in lang/zh-CN/validation.php and 2 other locations - About 2 days to fix
lang/ru/validation.php on lines 1..149
lang/zh-TW/validation.php on lines 1..149

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

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

<?php

return [

    /*
Severity: Major
Found in lang/ru/validation.php and 2 other locations - About 2 days to fix
lang/zh-CN/validation.php on lines 1..149
lang/zh-TW/validation.php on lines 1..149

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

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

<?php

return [

    /*
Severity: Major
Found in lang/zh-TW/validation.php and 2 other locations - About 2 days to fix
lang/ru/validation.php on lines 1..149
lang/zh-CN/validation.php on lines 1..149

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

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 custom-edit.blade.php has 1018 lines of code (exceeds 250 allowed). Consider refactoring.
Open

@extends('layouts.librenmsv1')

@section('title', __('map.custom.title.edit'))

@section('content')
Severity: Major
Found in resources/views/map/custom-edit.blade.php - About 2 days to fix

    File settings.php has 1018 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    
    return [
        'readonly' => '在 config.php 裡被設定成唯讀,請由 config.php 移除它來啟用。',
        'groups' => [
    Severity: Major
    Found in lang/zh-TW/settings.php - About 2 days to fix

      Function discovery_process has a Cognitive Complexity of 126 (exceeds 5 allowed). Consider refactoring.
      Open

      function discovery_process(&$valid, $os, $sensor_class, $pre_cache)
      {
          $discovery = $os->getDiscovery('sensors');
          $device = $os->getDeviceArray();
      
      
      Severity: Minor
      Found in includes/discovery/functions.inc.php - About 2 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

      Device has 121 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Device extends BaseModel
      {
          use PivotEventTrait, HasFactory;
      
          public $timestamps = false;
      Severity: Major
      Found in app/Models/Device.php - About 2 days to fix

        File cape.inc.php has 943 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        <?php
        
        use LibreNMS\Exceptions\JsonAppException;
        use LibreNMS\RRD\RrdDefinition;
        
        
        Severity: Major
        Found in includes/polling/applications/cape.inc.php - About 2 days to fix

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

          foreach ($rrd_filenames as $key => $rrd_filename) {
              if ($rrd_inverted[$key]) {
                  $in = 'out';
                  $out = 'in';
              } else {
          Severity: Major
          Found in includes/html/graphs/generic_multi_data.inc.php and 1 other location - About 2 days to fix
          includes/html/graphs/generic_multi_bits.inc.php on lines 22..52

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

          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

          foreach ($rrd_filenames as $key => $rrd_filename) {
              if ($rrd_inverted[$key]) {
                  $in = 'out';
                  $out = 'in';
              } else {
          Severity: Major
          Found in includes/html/graphs/generic_multi_bits.inc.php and 1 other location - About 2 days to fix
          includes/html/graphs/generic_multi_data.inc.php on lines 30..60

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

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

          <?php
          
          $name = 'cape';
          $app_id = $app['app_id'];
          $unit_text = 'Domains Per Run';
          Severity: Major
          Found in includes/html/graphs/application/cape_domains.inc.php and 9 other locations - About 2 days to fix
          includes/html/graphs/application/cape_anti_issues.inc.php on lines 1..70
          includes/html/graphs/application/cape_api_calls.inc.php on lines 1..70
          includes/html/graphs/application/cape_crash_issues.inc.php on lines 1..70
          includes/html/graphs/application/cape_dropped_files.inc.php on lines 1..70
          includes/html/graphs/application/cape_files_written.inc.php on lines 1..70
          includes/html/graphs/application/cape_malscore.inc.php on lines 1..70
          includes/html/graphs/application/cape_registry_keys_modified.inc.php on lines 1..70
          includes/html/graphs/application/cape_signatures_alert.inc.php on lines 1..70
          includes/html/graphs/application/cape_signatures_total.inc.php on lines 1..70

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

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

          <?php
          
          $name = 'cape';
          $app_id = $app['app_id'];
          $unit_text = 'Files Written Per Run';
          Severity: Major
          Found in includes/html/graphs/application/cape_files_written.inc.php and 9 other locations - About 2 days to fix
          includes/html/graphs/application/cape_anti_issues.inc.php on lines 1..70
          includes/html/graphs/application/cape_api_calls.inc.php on lines 1..70
          includes/html/graphs/application/cape_crash_issues.inc.php on lines 1..70
          includes/html/graphs/application/cape_domains.inc.php on lines 1..70
          includes/html/graphs/application/cape_dropped_files.inc.php on lines 1..70
          includes/html/graphs/application/cape_malscore.inc.php on lines 1..70
          includes/html/graphs/application/cape_registry_keys_modified.inc.php on lines 1..70
          includes/html/graphs/application/cape_signatures_alert.inc.php on lines 1..70
          includes/html/graphs/application/cape_signatures_total.inc.php on lines 1..70

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

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

          <?php
          
          $name = 'cape';
          $app_id = $app['app_id'];
          $unit_text = 'Reg Keys Modded Per Run';
          includes/html/graphs/application/cape_anti_issues.inc.php on lines 1..70
          includes/html/graphs/application/cape_api_calls.inc.php on lines 1..70
          includes/html/graphs/application/cape_crash_issues.inc.php on lines 1..70
          includes/html/graphs/application/cape_domains.inc.php on lines 1..70
          includes/html/graphs/application/cape_dropped_files.inc.php on lines 1..70
          includes/html/graphs/application/cape_files_written.inc.php on lines 1..70
          includes/html/graphs/application/cape_malscore.inc.php on lines 1..70
          includes/html/graphs/application/cape_signatures_alert.inc.php on lines 1..70
          includes/html/graphs/application/cape_signatures_total.inc.php on lines 1..70

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

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

          <?php
          
          $name = 'cape';
          $app_id = $app['app_id'];
          $unit_text = 'Signatures Total Per Run';
          includes/html/graphs/application/cape_anti_issues.inc.php on lines 1..70
          includes/html/graphs/application/cape_api_calls.inc.php on lines 1..70
          includes/html/graphs/application/cape_crash_issues.inc.php on lines 1..70
          includes/html/graphs/application/cape_domains.inc.php on lines 1..70
          includes/html/graphs/application/cape_dropped_files.inc.php on lines 1..70
          includes/html/graphs/application/cape_files_written.inc.php on lines 1..70
          includes/html/graphs/application/cape_malscore.inc.php on lines 1..70
          includes/html/graphs/application/cape_registry_keys_modified.inc.php on lines 1..70
          includes/html/graphs/application/cape_signatures_alert.inc.php on lines 1..70

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

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

          <?php
          
          $name = 'cape';
          $app_id = $app['app_id'];
          $unit_text = 'Signatures Alert Per Run';
          includes/html/graphs/application/cape_anti_issues.inc.php on lines 1..70
          includes/html/graphs/application/cape_api_calls.inc.php on lines 1..70
          includes/html/graphs/application/cape_crash_issues.inc.php on lines 1..70
          includes/html/graphs/application/cape_domains.inc.php on lines 1..70
          includes/html/graphs/application/cape_dropped_files.inc.php on lines 1..70
          includes/html/graphs/application/cape_files_written.inc.php on lines 1..70
          includes/html/graphs/application/cape_malscore.inc.php on lines 1..70
          includes/html/graphs/application/cape_registry_keys_modified.inc.php on lines 1..70
          includes/html/graphs/application/cape_signatures_total.inc.php on lines 1..70

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

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

          <?php
          
          $name = 'cape';
          $app_id = $app['app_id'];
          $unit_text = 'Anti Issues Per Run';
          Severity: Major
          Found in includes/html/graphs/application/cape_anti_issues.inc.php and 9 other locations - About 2 days to fix
          includes/html/graphs/application/cape_api_calls.inc.php on lines 1..70
          includes/html/graphs/application/cape_crash_issues.inc.php on lines 1..70
          includes/html/graphs/application/cape_domains.inc.php on lines 1..70
          includes/html/graphs/application/cape_dropped_files.inc.php on lines 1..70
          includes/html/graphs/application/cape_files_written.inc.php on lines 1..70
          includes/html/graphs/application/cape_malscore.inc.php on lines 1..70
          includes/html/graphs/application/cape_registry_keys_modified.inc.php on lines 1..70
          includes/html/graphs/application/cape_signatures_alert.inc.php on lines 1..70
          includes/html/graphs/application/cape_signatures_total.inc.php on lines 1..70

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

          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

          Severity
          Category
          Status
          Source
          Language