angular/angular.js

View on GitHub

Showing 4,250 of 4,250 total issues

Similar blocks of code found in 35 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"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in src/ngLocale/angular-locale_th-th.js and 34 other locations - About 2 days to fix
src/ngLocale/angular-locale_id-id.js on lines 2..125
src/ngLocale/angular-locale_id.js on lines 2..125
src/ngLocale/angular-locale_in.js on lines 2..125
src/ngLocale/angular-locale_ja-jp.js on lines 2..125
src/ngLocale/angular-locale_ja.js on lines 2..125
src/ngLocale/angular-locale_km-kh.js on lines 2..125
src/ngLocale/angular-locale_km.js on lines 2..125
src/ngLocale/angular-locale_ko-kp.js on lines 2..125
src/ngLocale/angular-locale_ko-kr.js on lines 2..125
src/ngLocale/angular-locale_ko.js on lines 2..125
src/ngLocale/angular-locale_lo-la.js on lines 2..125
src/ngLocale/angular-locale_lo.js on lines 2..125
src/ngLocale/angular-locale_ms-bn.js on lines 2..125
src/ngLocale/angular-locale_ms-my.js on lines 2..125
src/ngLocale/angular-locale_ms-sg.js on lines 2..125
src/ngLocale/angular-locale_ms.js on lines 2..125
src/ngLocale/angular-locale_my-mm.js on lines 2..125
src/ngLocale/angular-locale_my.js on lines 2..125
src/ngLocale/angular-locale_th.js on lines 2..125
src/ngLocale/angular-locale_vi-vn.js on lines 2..125
src/ngLocale/angular-locale_vi.js on lines 2..125
src/ngLocale/angular-locale_zh-cn.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-cn.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-hk.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-mo.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-sg.js on lines 2..125
src/ngLocale/angular-locale_zh-hans.js on lines 2..125
src/ngLocale/angular-locale_zh-hant-hk.js on lines 2..125
src/ngLocale/angular-locale_zh-hant-mo.js on lines 2..125
src/ngLocale/angular-locale_zh-hant-tw.js on lines 2..125
src/ngLocale/angular-locale_zh-hant.js on lines 2..125
src/ngLocale/angular-locale_zh-hk.js on lines 2..125
src/ngLocale/angular-locale_zh-tw.js on lines 2..125
src/ngLocale/angular-locale_zh.js on lines 2..125

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

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 35 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"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in src/ngLocale/angular-locale_id.js and 34 other locations - About 2 days to fix
src/ngLocale/angular-locale_id-id.js on lines 2..125
src/ngLocale/angular-locale_in.js on lines 2..125
src/ngLocale/angular-locale_ja-jp.js on lines 2..125
src/ngLocale/angular-locale_ja.js on lines 2..125
src/ngLocale/angular-locale_km-kh.js on lines 2..125
src/ngLocale/angular-locale_km.js on lines 2..125
src/ngLocale/angular-locale_ko-kp.js on lines 2..125
src/ngLocale/angular-locale_ko-kr.js on lines 2..125
src/ngLocale/angular-locale_ko.js on lines 2..125
src/ngLocale/angular-locale_lo-la.js on lines 2..125
src/ngLocale/angular-locale_lo.js on lines 2..125
src/ngLocale/angular-locale_ms-bn.js on lines 2..125
src/ngLocale/angular-locale_ms-my.js on lines 2..125
src/ngLocale/angular-locale_ms-sg.js on lines 2..125
src/ngLocale/angular-locale_ms.js on lines 2..125
src/ngLocale/angular-locale_my-mm.js on lines 2..125
src/ngLocale/angular-locale_my.js on lines 2..125
src/ngLocale/angular-locale_th-th.js on lines 2..125
src/ngLocale/angular-locale_th.js on lines 2..125
src/ngLocale/angular-locale_vi-vn.js on lines 2..125
src/ngLocale/angular-locale_vi.js on lines 2..125
src/ngLocale/angular-locale_zh-cn.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-cn.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-hk.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-mo.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-sg.js on lines 2..125
src/ngLocale/angular-locale_zh-hans.js on lines 2..125
src/ngLocale/angular-locale_zh-hant-hk.js on lines 2..125
src/ngLocale/angular-locale_zh-hant-mo.js on lines 2..125
src/ngLocale/angular-locale_zh-hant-tw.js on lines 2..125
src/ngLocale/angular-locale_zh-hant.js on lines 2..125
src/ngLocale/angular-locale_zh-hk.js on lines 2..125
src/ngLocale/angular-locale_zh-tw.js on lines 2..125
src/ngLocale/angular-locale_zh.js on lines 2..125

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

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 35 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"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in src/ngLocale/angular-locale_id-id.js and 34 other locations - About 2 days to fix
src/ngLocale/angular-locale_id.js on lines 2..125
src/ngLocale/angular-locale_in.js on lines 2..125
src/ngLocale/angular-locale_ja-jp.js on lines 2..125
src/ngLocale/angular-locale_ja.js on lines 2..125
src/ngLocale/angular-locale_km-kh.js on lines 2..125
src/ngLocale/angular-locale_km.js on lines 2..125
src/ngLocale/angular-locale_ko-kp.js on lines 2..125
src/ngLocale/angular-locale_ko-kr.js on lines 2..125
src/ngLocale/angular-locale_ko.js on lines 2..125
src/ngLocale/angular-locale_lo-la.js on lines 2..125
src/ngLocale/angular-locale_lo.js on lines 2..125
src/ngLocale/angular-locale_ms-bn.js on lines 2..125
src/ngLocale/angular-locale_ms-my.js on lines 2..125
src/ngLocale/angular-locale_ms-sg.js on lines 2..125
src/ngLocale/angular-locale_ms.js on lines 2..125
src/ngLocale/angular-locale_my-mm.js on lines 2..125
src/ngLocale/angular-locale_my.js on lines 2..125
src/ngLocale/angular-locale_th-th.js on lines 2..125
src/ngLocale/angular-locale_th.js on lines 2..125
src/ngLocale/angular-locale_vi-vn.js on lines 2..125
src/ngLocale/angular-locale_vi.js on lines 2..125
src/ngLocale/angular-locale_zh-cn.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-cn.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-hk.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-mo.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-sg.js on lines 2..125
src/ngLocale/angular-locale_zh-hans.js on lines 2..125
src/ngLocale/angular-locale_zh-hant-hk.js on lines 2..125
src/ngLocale/angular-locale_zh-hant-mo.js on lines 2..125
src/ngLocale/angular-locale_zh-hant-tw.js on lines 2..125
src/ngLocale/angular-locale_zh-hant.js on lines 2..125
src/ngLocale/angular-locale_zh-hk.js on lines 2..125
src/ngLocale/angular-locale_zh-tw.js on lines 2..125
src/ngLocale/angular-locale_zh.js on lines 2..125

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

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 35 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"};
$provide.value("$locale", {
  "DATETIME_FORMATS": {
    "AMPMS": [
Severity: Major
Found in src/ngLocale/angular-locale_ko.js and 34 other locations - About 2 days to fix
src/ngLocale/angular-locale_id-id.js on lines 2..125
src/ngLocale/angular-locale_id.js on lines 2..125
src/ngLocale/angular-locale_in.js on lines 2..125
src/ngLocale/angular-locale_ja-jp.js on lines 2..125
src/ngLocale/angular-locale_ja.js on lines 2..125
src/ngLocale/angular-locale_km-kh.js on lines 2..125
src/ngLocale/angular-locale_km.js on lines 2..125
src/ngLocale/angular-locale_ko-kp.js on lines 2..125
src/ngLocale/angular-locale_ko-kr.js on lines 2..125
src/ngLocale/angular-locale_lo-la.js on lines 2..125
src/ngLocale/angular-locale_lo.js on lines 2..125
src/ngLocale/angular-locale_ms-bn.js on lines 2..125
src/ngLocale/angular-locale_ms-my.js on lines 2..125
src/ngLocale/angular-locale_ms-sg.js on lines 2..125
src/ngLocale/angular-locale_ms.js on lines 2..125
src/ngLocale/angular-locale_my-mm.js on lines 2..125
src/ngLocale/angular-locale_my.js on lines 2..125
src/ngLocale/angular-locale_th-th.js on lines 2..125
src/ngLocale/angular-locale_th.js on lines 2..125
src/ngLocale/angular-locale_vi-vn.js on lines 2..125
src/ngLocale/angular-locale_vi.js on lines 2..125
src/ngLocale/angular-locale_zh-cn.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-cn.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-hk.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-mo.js on lines 2..125
src/ngLocale/angular-locale_zh-hans-sg.js on lines 2..125
src/ngLocale/angular-locale_zh-hans.js on lines 2..125
src/ngLocale/angular-locale_zh-hant-hk.js on lines 2..125
src/ngLocale/angular-locale_zh-hant-mo.js on lines 2..125
src/ngLocale/angular-locale_zh-hant-tw.js on lines 2..125
src/ngLocale/angular-locale_zh-hant.js on lines 2..125
src/ngLocale/angular-locale_zh-hk.js on lines 2..125
src/ngLocale/angular-locale_zh-tw.js on lines 2..125
src/ngLocale/angular-locale_zh.js on lines 2..125

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

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Function exports has 413 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(grunt) {

  // this loads all the node_modules that start with `grunt-` as plugins
  require('load-grunt-tasks')(grunt);

Severity: Major
Found in Gruntfile.js - About 2 days to fix

    Function init has 409 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        return function init(element, initialOptions) {
          // all of the animation functions should create
          // a copy of the options data, however, if a
          // parent service has already created a copy then
          // we should stick to using that
    Severity: Major
    Found in src/ngAnimate/animateCss.js - About 2 days to fix

      File Angular.js has 834 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      'use strict';
      
      /* We need to tell ESLint what variables are being exported */
      /* exported
        angular,
      Severity: Major
      Found in src/Angular.js - About 2 days to fix

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

               function($$rAF,   $rootScope,   $rootElement,   $document,   $$Map,
                        $$animation,   $$AnimateRunner,   $templateRequest,   $$jqLite,   $$forceReflow,
                        $$isDocumentHidden) {
        
            var activeAnimationsLookup = new $$Map();
        Severity: Major
        Found in src/ngAnimate/animateQueue.js - About 1 day to fix

          Function ngRepeatDirective has a Cognitive Complexity of 99 (exceeds 5 allowed). Consider refactoring.
          Open

          var ngRepeatDirective = ['$parse', '$animate', '$compile', function($parse, $animate, $compile) {
            var NG_REMOVED = '$$NG_REMOVED';
            var ngRepeatMinErr = minErr('ngRepeat');
          
            var updateScope = function(scope, index, valueIdentifier, value, keyIdentifier, key, arrayLength) {
          Severity: Minor
          Found in src/ng/directive/ngRepeat.js - About 1 day to fix

          Cognitive Complexity

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

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

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

          Further reading

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

          function $ParseProvider() {
            var cache = createMap();
            var literals = {
              'true': true,
              'false': false,
          Severity: Minor
          Found in src/ng/parse.js - About 1 day to fix

          Cognitive Complexity

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

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

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

          Further reading

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

          function $InterpolateProvider() {
            var startSymbol = '{{';
            var endSymbol = '}}';
          
            /**
          Severity: Minor
          Found in src/ng/interpolate.js - About 1 day to fix

          Cognitive Complexity

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

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

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

          Further reading

          Function createHttpBackendMock has a Cognitive Complexity of 93 (exceeds 5 allowed). Consider refactoring.
          Open

          function createHttpBackendMock($rootScope, $timeout, $delegate, $browser) {
            var definitions = [],
                expectations = [],
                matchLatestDefinition = false,
                responses = [],
          Severity: Minor
          Found in src/ngMock/angular-mocks.js - About 1 day to fix

          Cognitive Complexity

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

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

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

          Further reading

          Function applyDirectivesToNode has 364 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn,
                                             jqCollection, originalReplaceDirective, preLinkFns, postLinkFns,
                                             previousCompileContext) {
                previousCompileContext = previousCompileContext || {};
          
          
          Severity: Major
          Found in src/ng/compile.js - About 1 day to fix

            File jqLite.js has 759 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/jqLite.js - About 1 day to fix

              File pluralRules.js has 744 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              // Copyright 2012 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/pluralRules.js - About 1 day to fix

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

                goog.i18n.DateTimeSymbols_fa = {
                  ZERODIGIT: 0x06F0,
                  ERAS: ['ق.م.', 'م.'],
                  ERANAMES: ['قبل از میلاد', 'میلادی'],
                  NARROWMONTHS: ['ژ', 'ف', 'م', 'آ', 'م', 'ژ', 'ژ', 'ا', 'س', 'ا', 'ن', 'د'],
                Severity: Major
                Found in i18n/closure/datetimeSymbols.js and 5 other locations - About 1 day to fix
                i18n/closure/datetimeSymbols.js on lines 239..264
                i18n/closure/datetimeSymbols.js on lines 390..415
                i18n/closure/datetimeSymbols.js on lines 2210..2235
                i18n/closure/datetimeSymbols.js on lines 2301..2326
                i18n/closure/datetimeSymbols.js on lines 2362..2387

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

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

                goog.i18n.DateTimeSymbols_mr = {
                  ZERODIGIT: 0x0966,
                  ERAS: ['इ. स. पू.', 'इ. स.'],
                  ERANAMES: ['ईसवीसनपूर्व', 'ईसवीसन'],
                  NARROWMONTHS: ['जा', 'फे', 'मा', 'ए', 'मे', 'जू', 'जु', 'ऑ', 'स', 'ऑ', 'नो', 'डि'],
                Severity: Major
                Found in i18n/closure/datetimeSymbols.js and 5 other locations - About 1 day to fix
                i18n/closure/datetimeSymbols.js on lines 239..264
                i18n/closure/datetimeSymbols.js on lines 390..415
                i18n/closure/datetimeSymbols.js on lines 1159..1184
                i18n/closure/datetimeSymbols.js on lines 2301..2326
                i18n/closure/datetimeSymbols.js on lines 2362..2387

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

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

                goog.i18n.DateTimeSymbols_ne = {
                  ZERODIGIT: 0x0966,
                  ERAS: ['ईसा पूर्व', 'सन्'],
                  ERANAMES: ['ईसा पूर्व', 'सन्'],
                  NARROWMONTHS: ['१', '२', '३', '४', '५', '६', '७', '८', '९', '१०', '११', '१२'],
                Severity: Major
                Found in i18n/closure/datetimeSymbols.js and 5 other locations - About 1 day to fix
                i18n/closure/datetimeSymbols.js on lines 239..264
                i18n/closure/datetimeSymbols.js on lines 390..415
                i18n/closure/datetimeSymbols.js on lines 1159..1184
                i18n/closure/datetimeSymbols.js on lines 2210..2235
                i18n/closure/datetimeSymbols.js on lines 2301..2326

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

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

                goog.i18n.DateTimeSymbols_bn = {
                  ZERODIGIT: 0x09E6,
                  ERAS: ['খ্রিস্টপূর্ব', 'খৃষ্টাব্দ'],
                  ERANAMES: ['খ্রিস্টপূর্ব', 'খৃষ্টাব্দ'],
                  NARROWMONTHS: ['জা', 'ফে', 'মা', 'এ', 'মে', 'জুন', 'জু', 'আ', 'সে', 'অ', 'ন', 'ডি'],
                Severity: Major
                Found in i18n/closure/datetimeSymbols.js and 5 other locations - About 1 day to fix
                i18n/closure/datetimeSymbols.js on lines 239..264
                i18n/closure/datetimeSymbols.js on lines 1159..1184
                i18n/closure/datetimeSymbols.js on lines 2210..2235
                i18n/closure/datetimeSymbols.js on lines 2301..2326
                i18n/closure/datetimeSymbols.js on lines 2362..2387

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

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

                goog.i18n.DateTimeSymbols_my = {
                  ZERODIGIT: 0x1040,
                  ERAS: ['ဘီစီ', 'အေဒီ'],
                  ERANAMES: ['ခရစ်တော် မပေါ်မီနှစ်', 'ခရစ်နှစ်'],
                  NARROWMONTHS: ['ဇ', 'ဖ', 'မ', 'ဧ', 'မ', 'ဇ', 'ဇ', 'ဩ', 'စ', 'အ', 'န', 'ဒ'],
                Severity: Major
                Found in i18n/closure/datetimeSymbols.js and 5 other locations - About 1 day to fix
                i18n/closure/datetimeSymbols.js on lines 239..264
                i18n/closure/datetimeSymbols.js on lines 390..415
                i18n/closure/datetimeSymbols.js on lines 1159..1184
                i18n/closure/datetimeSymbols.js on lines 2210..2235
                i18n/closure/datetimeSymbols.js on lines 2362..2387

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

                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