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

    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

    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

    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

    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

          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

              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

              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

              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

              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

              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

              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

              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

              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-kg.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-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
              Severity
              Category
              Status
              Source
              Language