angular/angular.js

View on GitHub

Showing 4,250 of 4,250 total issues

File numberSymbolsExt.js has 9878 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Copyright 2011 The Closure Library 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: Major
Found in i18n/closure/numberSymbolsExt.js - About 1 mo to fix

    Function $CompileProvider has a Cognitive Complexity of 1149 (exceeds 5 allowed). Consider refactoring.
    Open

    function $CompileProvider($provide, $$sanitizeUriProvider) {
      var hasDirectives = {},
          Suffix = 'Directive',
          COMMENT_DIRECTIVE_REGEXP = /^\s*directive:\s*([\w-]+)\s+(.*)$/,
          CLASS_DIRECTIVE_REGEXP = /(([\w-]+)(?::([^;]+))?;?)/,
    Severity: Minor
    Found in src/ng/compile.js - About 3 wks to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function IDC_Y has a Cognitive Complexity of 651 (exceeds 5 allowed). Consider refactoring.
    Open

    function IDC_Y(cp) {
      if (0x0030 <= cp && cp <= 0x0039) return true;
      if (0x0041 <= cp && cp <= 0x005A) return true;
      if (cp === 0x005F) return true;
      if (0x0061 <= cp && cp <= 0x007A) return true;
    Severity: Minor
    Found in src/ngParseExt/ucd.js - About 1 wk to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function IDS_Y has a Cognitive Complexity of 557 (exceeds 5 allowed). Consider refactoring.
    Open

    function IDS_Y(cp) {
      if (0x0041 <= cp && cp <= 0x005A) return true;
      if (0x0061 <= cp && cp <= 0x007A) return true;
      if (cp === 0x00AA) return true;
      if (cp === 0x00B5) return true;
    Severity: Minor
    Found in src/ngParseExt/ucd.js - About 1 wk to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function $RootScopeProvider has a Cognitive Complexity of 462 (exceeds 5 allowed). Consider refactoring.
    Open

    function $RootScopeProvider() {
      var TTL = 10;
      var $rootScopeMinErr = minErr('$rootScope');
      var lastDirtyWatch = null;
      var applyAsyncId = null;
    Severity: Minor
    Found in src/ng/rootScope.js - About 1 wk to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function $CompileProvider has 1774 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function $CompileProvider($provide, $$sanitizeUriProvider) {
      var hasDirectives = {},
          Suffix = 'Directive',
          COMMENT_DIRECTIVE_REGEXP = /^\s*directive:\s*([\w-]+)\s+(.*)$/,
          CLASS_DIRECTIVE_REGEXP = /(([\w-]+)(?::([^;]+))?;?)/,
    Severity: Major
    Found in src/ng/compile.js - About 1 wk to fix

      File datetimeSymbols.js has 3111 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      // Copyright 2011 The Closure Library 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: Major
      Found in i18n/closure/datetimeSymbols.js - About 1 wk to fix

        Function $get has 1469 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function($injector,   $interpolate,   $exceptionHandler,   $templateRequest,   $parse,
                     $controller,   $rootScope,   $sce,   $animate) {
        
            var SIMPLE_ATTR_NAME = /^\w/;
            var specialAttrHolder = window.document.createElement('div');
        Severity: Major
        Found in src/ng/compile.js - About 1 wk to fix

          Function $AnimateCssProvider has a Cognitive Complexity of 331 (exceeds 5 allowed). Consider refactoring.
          Open

          var $AnimateCssProvider = ['$animateProvider', /** @this */ function($animateProvider) {
          
            this.$get = ['$window', '$$jqLite', '$$AnimateRunner', '$timeout', '$$animateCache',
                         '$$forceReflow', '$sniffer', '$$rAFScheduler', '$$animateQueue',
                 function($window,   $$jqLite,   $$AnimateRunner,   $timeout,   $$animateCache,
          Severity: Minor
          Found in src/ngAnimate/animateCss.js - About 6 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 numberSymbols.js has 2216 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          // Copyright 2011 The Closure Library 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: Major
          Found in i18n/closure/numberSymbols.js - About 6 days to fix

            File compile.js has 1828 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            'use strict';
            
            /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
             *     Any commits to this file should be reviewed with security in mind.  *
             *   Changes to this file can potentially create security vulnerabilities. *
            Severity: Major
            Found in src/ng/compile.js - About 4 days to fix

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

              angular.module("ngLocale", [], ["$provide", function($provide) {
              var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
              function getDecimals(n) {
                n = n + '';
                var i = n.indexOf('.');
              Severity: Major
              Found in src/ngLocale/angular-locale_pl.js and 1 other location - About 4 days to fix
              src/ngLocale/angular-locale_pl-pl.js on lines 2..143

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

              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

              angular.module("ngLocale", [], ["$provide", function($provide) {
              var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
              function getDecimals(n) {
                n = n + '';
                var i = n.indexOf('.');
              Severity: Major
              Found in src/ngLocale/angular-locale_pl-pl.js and 1 other location - About 4 days to fix
              src/ngLocale/angular-locale_pl.js on lines 2..143

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

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

              angular.module("ngLocale", [], ["$provide", function($provide) {
              var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
              function getDecimals(n) {
                n = n + '';
                var i = n.indexOf('.');
              Severity: Major
              Found in src/ngLocale/angular-locale_ru-by.js and 8 other locations - About 4 days to fix
              src/ngLocale/angular-locale_ru-kg.js on lines 2..143
              src/ngLocale/angular-locale_ru-kz.js on lines 2..143
              src/ngLocale/angular-locale_ru-md.js on lines 2..143
              src/ngLocale/angular-locale_ru-ru.js on lines 2..143
              src/ngLocale/angular-locale_ru-ua.js on lines 2..143
              src/ngLocale/angular-locale_ru.js on lines 2..143
              src/ngLocale/angular-locale_uk-ua.js on lines 2..143
              src/ngLocale/angular-locale_uk.js on lines 2..143

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

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

              angular.module("ngLocale", [], ["$provide", function($provide) {
              var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
              function getDecimals(n) {
                n = n + '';
                var i = n.indexOf('.');
              Severity: Major
              Found in src/ngLocale/angular-locale_ru-ua.js and 8 other locations - About 4 days to fix
              src/ngLocale/angular-locale_ru-by.js on lines 2..143
              src/ngLocale/angular-locale_ru-kg.js on lines 2..143
              src/ngLocale/angular-locale_ru-kz.js on lines 2..143
              src/ngLocale/angular-locale_ru-md.js on lines 2..143
              src/ngLocale/angular-locale_ru-ru.js on lines 2..143
              src/ngLocale/angular-locale_ru.js on lines 2..143
              src/ngLocale/angular-locale_uk-ua.js on lines 2..143
              src/ngLocale/angular-locale_uk.js on lines 2..143

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

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

              angular.module("ngLocale", [], ["$provide", function($provide) {
              var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
              function getDecimals(n) {
                n = n + '';
                var i = n.indexOf('.');
              Severity: Major
              Found in src/ngLocale/angular-locale_uk-ua.js and 8 other locations - About 4 days to fix
              src/ngLocale/angular-locale_ru-by.js on lines 2..143
              src/ngLocale/angular-locale_ru-kg.js on lines 2..143
              src/ngLocale/angular-locale_ru-kz.js on lines 2..143
              src/ngLocale/angular-locale_ru-md.js on lines 2..143
              src/ngLocale/angular-locale_ru-ru.js on lines 2..143
              src/ngLocale/angular-locale_ru-ua.js on lines 2..143
              src/ngLocale/angular-locale_ru.js on lines 2..143
              src/ngLocale/angular-locale_uk.js on lines 2..143

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

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

              angular.module("ngLocale", [], ["$provide", function($provide) {
              var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
              function getDecimals(n) {
                n = n + '';
                var i = n.indexOf('.');
              Severity: Major
              Found in src/ngLocale/angular-locale_ru.js and 8 other locations - About 4 days to fix
              src/ngLocale/angular-locale_ru-by.js on lines 2..143
              src/ngLocale/angular-locale_ru-kg.js on lines 2..143
              src/ngLocale/angular-locale_ru-kz.js on lines 2..143
              src/ngLocale/angular-locale_ru-md.js on lines 2..143
              src/ngLocale/angular-locale_ru-ru.js on lines 2..143
              src/ngLocale/angular-locale_ru-ua.js on lines 2..143
              src/ngLocale/angular-locale_uk-ua.js on lines 2..143
              src/ngLocale/angular-locale_uk.js on lines 2..143

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

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

              angular.module("ngLocale", [], ["$provide", function($provide) {
              var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
              function getDecimals(n) {
                n = n + '';
                var i = n.indexOf('.');
              Severity: Major
              Found in src/ngLocale/angular-locale_ru-kz.js and 8 other locations - About 4 days to fix
              src/ngLocale/angular-locale_ru-by.js on lines 2..143
              src/ngLocale/angular-locale_ru-kg.js on lines 2..143
              src/ngLocale/angular-locale_ru-md.js on lines 2..143
              src/ngLocale/angular-locale_ru-ru.js on lines 2..143
              src/ngLocale/angular-locale_ru-ua.js on lines 2..143
              src/ngLocale/angular-locale_ru.js on lines 2..143
              src/ngLocale/angular-locale_uk-ua.js on lines 2..143
              src/ngLocale/angular-locale_uk.js on lines 2..143

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

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

              angular.module("ngLocale", [], ["$provide", function($provide) {
              var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
              function getDecimals(n) {
                n = n + '';
                var i = n.indexOf('.');
              Severity: Major
              Found in src/ngLocale/angular-locale_ru-md.js and 8 other locations - About 4 days to fix
              src/ngLocale/angular-locale_ru-by.js on lines 2..143
              src/ngLocale/angular-locale_ru-kg.js on lines 2..143
              src/ngLocale/angular-locale_ru-kz.js on lines 2..143
              src/ngLocale/angular-locale_ru-ru.js on lines 2..143
              src/ngLocale/angular-locale_ru-ua.js on lines 2..143
              src/ngLocale/angular-locale_ru.js on lines 2..143
              src/ngLocale/angular-locale_uk-ua.js on lines 2..143
              src/ngLocale/angular-locale_uk.js on lines 2..143

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

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

              angular.module("ngLocale", [], ["$provide", function($provide) {
              var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
              function getDecimals(n) {
                n = n + '';
                var i = n.indexOf('.');
              Severity: Major
              Found in src/ngLocale/angular-locale_ru-ru.js and 8 other locations - About 4 days to fix
              src/ngLocale/angular-locale_ru-by.js on lines 2..143
              src/ngLocale/angular-locale_ru-kg.js on lines 2..143
              src/ngLocale/angular-locale_ru-kz.js on lines 2..143
              src/ngLocale/angular-locale_ru-md.js on lines 2..143
              src/ngLocale/angular-locale_ru-ua.js on lines 2..143
              src/ngLocale/angular-locale_ru.js on lines 2..143
              src/ngLocale/angular-locale_uk-ua.js on lines 2..143
              src/ngLocale/angular-locale_uk.js on lines 2..143

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

              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