ericduran/chromeHAR

View on GitHub
bower_components/angular/angular.js

Summary

Maintainability
F
2 mos
Test Coverage

File angular.js has 6446 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/**
 * @license AngularJS v1.0.8
 * (c) 2010-2012 Google, Inc. http://angularjs.org
 * License: MIT
 */
Severity: Major
Found in bower_components/angular/angular.js - About 2 wks to fix

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

    function $CompileProvider($provide) {
      var hasDirectives = {},
          Suffix = 'Directive',
          COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,
          CLASS_DIRECTIVE_REGEXP = /(([\d\w\-_]+)(?:\:([^;]+))?;?)/,
    Severity: Major
    Found in bower_components/angular/angular.js - About 3 days to fix

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

          function($injector,   $interpolate,   $exceptionHandler,   $http,   $templateCache,   $parse,
                   $controller,   $rootScope,   $document) {
      
          var Attributes = function(element, attr) {
            this.$$element = element;
      Severity: Major
      Found in bower_components/angular/angular.js - About 3 days to fix

        Function parser has 335 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function parser(text, json, $filter, csp){
          var ZERO = valueFn(0),
              value,
              tokens = lex(text, csp),
              assignment = _assignment,
        Severity: Major
        Found in bower_components/angular/angular.js - About 1 day to fix

          Function selectDirective has 302 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var selectDirective = ['$compile', '$parse', function($compile,   $parse) {
                                   //0000111110000000000022220000000000000000000000333300000000000000444444444444444440000000005555555555555555500000006666666666666666600000000000000077770
            var NG_OPTIONS_REGEXP = /^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w\d]*)|(?:\(\s*([\$\w][\$\w\d]*)\s*,\s*([\$\w][\$\w\d]*)\s*\)))\s+in\s+(.*)$/,
                nullModelCtrl = {$setViewValue: noop};
          
          
          Severity: Major
          Found in bower_components/angular/angular.js - About 1 day to fix

            Function $RootScopeProvider has 276 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function $RootScopeProvider(){
              var TTL = 10;
            
              this.digestTtl = function(value) {
                if (arguments.length) {
            Severity: Major
            Found in bower_components/angular/angular.js - About 1 day to fix

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

                    function( $injector,   $exceptionHandler,   $parse) {
              
                  /**
                   * @ngdoc function
                   * @name ng.$rootScope.Scope
              Severity: Major
              Found in bower_components/angular/angular.js - About 1 day to fix

                Function link has 253 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    link: function(scope, element, attr, ctrls) {
                      // if ngModel is not defined, we don't need to do anything
                      if (!ctrls[1]) return;
                
                      var selectCtrl = ctrls[0],
                Severity: Major
                Found in bower_components/angular/angular.js - About 1 day to fix

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

                      function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn, jqCollection) {
                        var terminalPriority = -Number.MAX_VALUE,
                            preLinkFns = [],
                            postLinkFns = [],
                            newScopeDirective = null,
                  Severity: Major
                  Found in bower_components/angular/angular.js - About 1 day to fix

                    Function lex has 213 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function lex(text, csp){
                      var tokens = [],
                          token,
                          index = 0,
                          json = [],
                    Severity: Major
                    Found in bower_components/angular/angular.js - About 1 day to fix

                      Function $HttpProvider has 191 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function $HttpProvider() {
                        var JSON_START = /^\s*(\[|\{[^\{])/,
                            JSON_END = /[\}\]]\s*$/,
                            PROTECTION_PREFIX = /^\)\]\}',?\n/;
                      
                      
                      Severity: Major
                      Found in bower_components/angular/angular.js - About 7 hrs to fix

                        Function Options has 172 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                              function Options(scope, selectElement, ctrl) {
                                var match;
                        
                                if (! (match = optionsExp.match(NG_OPTIONS_REGEXP))) {
                                  throw Error(
                        Severity: Major
                        Found in bower_components/angular/angular.js - About 6 hrs to fix

                          Function createInjector has 168 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          function createInjector(modulesToLoad) {
                            var INSTANTIATING = {},
                                providerSuffix = 'Provider',
                                path = [],
                                loadedModules = new HashMap(),
                          Severity: Major
                          Found in bower_components/angular/angular.js - About 6 hrs to fix

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

                                  function($httpBackend, $browser, $cacheFactory, $rootScope, $q, $injector) {
                            
                                var defaultCache = $cacheFactory('$http'),
                                    responseInterceptors = [];
                            
                            
                            Severity: Major
                            Found in bower_components/angular/angular.js - About 6 hrs to fix

                              Function Browser has 153 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              function Browser(window, document, $log, $sniffer) {
                                var self = this,
                                    rawDocument = document[0],
                                    location = window.location,
                                    history = window.history,
                              Severity: Major
                              Found in bower_components/angular/angular.js - About 6 hrs to fix

                                Function $RouteProvider has 144 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                function $RouteProvider(){
                                  var routes = {};
                                
                                  /**
                                   * @ngdoc method
                                Severity: Major
                                Found in bower_components/angular/angular.js - About 5 hrs to fix

                                  Function qFactory has 140 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function qFactory(nextTick, exceptionHandler) {
                                  
                                    /**
                                     * @ngdoc
                                     * @name ng.$q#defer
                                  Severity: Major
                                  Found in bower_components/angular/angular.js - About 5 hrs to fix

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

                                          function( $rootScope,   $location,   $routeParams,   $q,   $injector,   $http,   $templateCache) {
                                    
                                        /**
                                         * @ngdoc object
                                         * @name ng.$route
                                    Severity: Major
                                    Found in bower_components/angular/angular.js - About 5 hrs to fix

                                      Function render has 113 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                              function render() {
                                                var optionGroups = {'':[]}, // Temporary location for the option groups before we render them
                                                    optionGroupNames = [''],
                                                    optionGroupName,
                                                    optionGroup,
                                      Severity: Major
                                      Found in bower_components/angular/angular.js - About 4 hrs to fix

                                        Function $LocationProvider has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                        function $LocationProvider(){
                                          var hashPrefix = '',
                                              html5Mode = false;
                                        
                                          /**
                                        Severity: Major
                                        Found in bower_components/angular/angular.js - About 4 hrs to fix

                                          Function publishExternalAPI has 103 lines of code (exceeds 25 allowed). Consider refactoring.
                                          Open

                                          function publishExternalAPI(angular){
                                            extend(angular, {
                                              'bootstrap': bootstrap,
                                              'copy': copy,
                                              'extend': extend,
                                          Severity: Major
                                          Found in bower_components/angular/angular.js - About 4 hrs to fix

                                            Function nodeLinkFn has 96 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open

                                                  function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {
                                                    var attrs, $element, i, ii, linkFn, controller;
                                            
                                                    if (compileNode === linkNode) {
                                                      attrs = templateAttrs;
                                            Severity: Major
                                            Found in bower_components/angular/angular.js - About 3 hrs to fix

                                              Function textInputType has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open

                                              function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
                                              
                                                var listener = function() {
                                                  var value = trim(element.val());
                                              
                                              
                                              Severity: Major
                                              Found in bower_components/angular/angular.js - About 3 hrs to fix

                                                Function $CacheFactoryProvider has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                                                Open

                                                function $CacheFactoryProvider() {
                                                
                                                  this.$get = function() {
                                                    var caches = {};
                                                
                                                
                                                Severity: Major
                                                Found in bower_components/angular/angular.js - About 3 hrs to fix

                                                  Function compile has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open

                                                    compile: function(element, attr, linker) {
                                                      return function(scope, iterStartElement, attr){
                                                        var expression = attr.ngRepeat;
                                                        var match = expression.match(/^\s*(.+)\s+in\s+(.*)\s*$/),
                                                          lhs, rhs, valueIdent, keyIdent;
                                                  Severity: Major
                                                  Found in bower_components/angular/angular.js - About 3 hrs to fix

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

                                                      this.$get = function() {
                                                        var caches = {};
                                                    
                                                        function cacheFactory(cacheId, options) {
                                                          if (cacheId in caches) {
                                                    Severity: Major
                                                    Found in bower_components/angular/angular.js - About 3 hrs to fix

                                                      Function NgModelController has 86 lines of code (exceeds 25 allowed). Consider refactoring.
                                                      Open

                                                          function($scope, $exceptionHandler, $attr, $element, $parse) {
                                                        this.$viewValue = Number.NaN;
                                                        this.$modelValue = Number.NaN;
                                                        this.$parsers = [];
                                                        this.$formatters = [];
                                                      Severity: Major
                                                      Found in bower_components/angular/angular.js - About 3 hrs to fix

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

                                                              function( $rootScope,   $browser,   $sniffer,   $rootElement) {
                                                            var $location,
                                                                basePath,
                                                                pathPrefix,
                                                                initUrl = $browser.url(),
                                                        Severity: Major
                                                        Found in bower_components/angular/angular.js - About 3 hrs to fix

                                                          Function filterFilter has 80 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open

                                                          function filterFilter() {
                                                            return function(array, expression) {
                                                              if (!isArray(array)) return array;
                                                              var predicates = [];
                                                              predicates.check = function(value) {
                                                          Severity: Major
                                                          Found in bower_components/angular/angular.js - About 3 hrs to fix

                                                            Function createHttpBackend has 79 lines of code (exceeds 25 allowed). Consider refactoring.
                                                            Open

                                                            function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument, locationProtocol) {
                                                              // TODO(vojta): fix the signature
                                                              return function(method, url, post, callback, headers, timeout, withCredentials) {
                                                                $browser.$$incOutstandingRequestCount();
                                                                url = url || $browser.url();
                                                            Severity: Major
                                                            Found in bower_components/angular/angular.js - About 3 hrs to fix

                                                              Function $InterpolateProvider has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                                                              Open

                                                              function $InterpolateProvider() {
                                                                var startSymbol = '{{';
                                                                var endSymbol = '}}';
                                                              
                                                                /**
                                                              Severity: Major
                                                              Found in bower_components/angular/angular.js - About 3 hrs to fix

                                                                Function cacheFactory has 72 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open

                                                                    function cacheFactory(cacheId, options) {
                                                                      if (cacheId in caches) {
                                                                        throw Error('cacheId ' + cacheId + ' taken');
                                                                      }
                                                                
                                                                
                                                                Severity: Major
                                                                Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                  Function FormController has 71 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open

                                                                  function FormController(element, attrs) {
                                                                    var form = this,
                                                                        parentForm = element.parent().controller('form') || nullFormCtrl,
                                                                        invalidCount = 0, // used to easily determine if we are valid
                                                                        errors = form.$error = {};
                                                                  Severity: Major
                                                                  Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                    Function ngRepeatWatch has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                    Open

                                                                          scope.$watch(function ngRepeatWatch(scope){
                                                                            var index, length,
                                                                                collection = scope.$eval(rhs),
                                                                                cursor = iterStartElement,     // current position of the node
                                                                                // Same as lastOrder but it has the current state. It will become the
                                                                    Severity: Major
                                                                    Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                      Function ngModule has 66 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                      Open

                                                                          function ngModule($provide) {
                                                                            $provide.provider('$compile', $CompileProvider).
                                                                              directive({
                                                                                  a: htmlAnchorDirective,
                                                                                  input: inputDirective,
                                                                      Severity: Major
                                                                      Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                        Function createInternalInjector has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                        Open

                                                                          function createInternalInjector(cache, factory) {
                                                                        
                                                                            function getService(serviceName) {
                                                                              if (typeof serviceName !== 'string') {
                                                                                throw Error('Service name expected');
                                                                        Severity: Major
                                                                        Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                          Function updateRoute has 64 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                          Open

                                                                              function updateRoute() {
                                                                                var next = parseRoute(),
                                                                                    last = $route.current;
                                                                          
                                                                                if (next && last && next.$$route === last.$$route
                                                                          Severity: Major
                                                                          Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                            Function $digest has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                            Open

                                                                                  $digest: function() {
                                                                                    var watch, value, last,
                                                                                        watchers,
                                                                                        asyncQueue,
                                                                                        length,
                                                                            Severity: Major
                                                                            Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                              Function compileTemplateUrl has 61 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                              Open

                                                                                  function compileTemplateUrl(directives, beforeTemplateNodeLinkFn, $compileNode, tAttrs,
                                                                                      $rootElement, replace, childTranscludeFn) {
                                                                                    var linkQueue = [],
                                                                                        afterTemplateNodeLinkFn,
                                                                                        afterTemplateChildLinkFn,
                                                                              Severity: Major
                                                                              Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                                Function readIdent has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                Open

                                                                                  function readIdent() {
                                                                                    var ident = "",
                                                                                        start = index,
                                                                                        lastDot, peekIndex, methodName, ch;
                                                                                
                                                                                
                                                                                Severity: Major
                                                                                Found in bower_components/angular/angular.js - About 2 hrs to fix

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

                                                                                    this.$get = ['$parse', function($parse) {
                                                                                      var startSymbolLength = startSymbol.length,
                                                                                          endSymbolLength = endSymbol.length;
                                                                                  
                                                                                      /**
                                                                                  Severity: Major
                                                                                  Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                                    Function $http has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                    Open

                                                                                        function $http(config) {
                                                                                          config.method = uppercase(config.method);
                                                                                    
                                                                                          var reqTransformFn = config.transformRequest || $config.transformRequest,
                                                                                              respTransformFn = config.transformResponse || $config.transformResponse,
                                                                                    Severity: Major
                                                                                    Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                                      Function formatNumber has 57 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                      Open

                                                                                      function formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {
                                                                                        if (isNaN(number) || !isFinite(number)) return '';
                                                                                      
                                                                                        var isNegative = number < 0;
                                                                                        number = Math.abs(number);
                                                                                      Severity: Major
                                                                                      Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                                        Function sendReq has 56 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                        Open

                                                                                            function sendReq(config, reqData, reqHeaders) {
                                                                                              var deferred = $q.defer(),
                                                                                                  promise = deferred.promise,
                                                                                                  cache,
                                                                                                  cachedResp,
                                                                                        Severity: Major
                                                                                        Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                                          Function $LocaleProvider has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                          Open

                                                                                          function $LocaleProvider(){
                                                                                            this.$get = function() {
                                                                                              return {
                                                                                                id: 'en-us',
                                                                                          
                                                                                          
                                                                                          Severity: Major
                                                                                          Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                                            Function cspSafeGetterFn has 55 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                            Open

                                                                                            function cspSafeGetterFn(key0, key1, key2, key3, key4) {
                                                                                              return function(scope, locals) {
                                                                                                var pathVal = (locals && locals.hasOwnProperty(key0)) ? locals : scope,
                                                                                                    promise;
                                                                                            
                                                                                            
                                                                                            Severity: Major
                                                                                            Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                                              Function compileNodes has 54 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                              Open

                                                                                                  function compileNodes(nodeList, transcludeFn, $rootElement, maxPriority) {
                                                                                                    var linkFns = [],
                                                                                                        nodeLinkFn, childLinkFn, directives, attrs, linkFnFound;
                                                                                              
                                                                                                    for(var i = 0; i < nodeList.length; i++) {
                                                                                              Severity: Major
                                                                                              Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                                                Function dateFilter has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                Open

                                                                                                function dateFilter($locale) {
                                                                                                
                                                                                                
                                                                                                  var R_ISO8601_STR = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
                                                                                                  function jsonStringToDate(string){
                                                                                                Severity: Major
                                                                                                Found in bower_components/angular/angular.js - About 2 hrs to fix

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

                                                                                                    this.$get = function() {
                                                                                                      return {
                                                                                                        id: 'en-us',
                                                                                                  
                                                                                                        NUMBER_FORMATS: {
                                                                                                  Severity: Major
                                                                                                  Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                                                    Function numberInputType has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                    Open

                                                                                                    function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {
                                                                                                      textInputType(scope, element, attr, ctrl, $sniffer, $browser);
                                                                                                    
                                                                                                      ctrl.$parsers.push(function(value) {
                                                                                                        var empty = isEmpty(value);
                                                                                                    Severity: Major
                                                                                                    Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                                                      Function collectDirectives has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                      Open

                                                                                                          function collectDirectives(node, directives, attrs, maxPriority) {
                                                                                                            var nodeType = node.nodeType,
                                                                                                                attrsMap = attrs.$attr,
                                                                                                                match,
                                                                                                                className;
                                                                                                      Severity: Major
                                                                                                      Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                                                        Function defer has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                        Open

                                                                                                          var defer = function() {
                                                                                                            var pending = [],
                                                                                                                value, deferred;
                                                                                                        
                                                                                                            deferred = {
                                                                                                        Severity: Major
                                                                                                        Found in bower_components/angular/angular.js - About 2 hrs to fix

                                                                                                          Function setupModuleLoader has 48 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                          Open

                                                                                                          function setupModuleLoader(window) {
                                                                                                          
                                                                                                            function ensure(obj, name, factory) {
                                                                                                              return obj[name] || (obj[name] = factory());
                                                                                                            }
                                                                                                          Severity: Minor
                                                                                                          Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                            Function orderByFilter has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                            Open

                                                                                                            function orderByFilter($parse){
                                                                                                              return function(array, sortPredicate, reverseOrder) {
                                                                                                                if (!isArray(array)) return array;
                                                                                                                if (!sortPredicate) return array;
                                                                                                                sortPredicate = isArray(sortPredicate) ? sortPredicate: [sortPredicate];
                                                                                                            Severity: Minor
                                                                                                            Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                              Function $interpolate has 46 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                              Open

                                                                                                                  function $interpolate(text, mustHaveExpression) {
                                                                                                                    var startIndex,
                                                                                                                        endIndex,
                                                                                                                        index = 0,
                                                                                                                        parts = [],
                                                                                                              Severity: Minor
                                                                                                              Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                Function bindFn has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                Open

                                                                                                                  bind: function bindFn(element, type, fn){
                                                                                                                    var events = JQLiteExpandoStore(element, 'events'),
                                                                                                                        handle = JQLiteExpandoStore(element, 'handle');
                                                                                                                
                                                                                                                    if (!events) JQLiteExpandoStore(element, 'events', events = {});
                                                                                                                Severity: Minor
                                                                                                                Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                  Function classDirective has 44 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                  Open

                                                                                                                  function classDirective(name, selector) {
                                                                                                                    name = 'ngClass' + name;
                                                                                                                    return ngDirective(function(scope, element, attr) {
                                                                                                                      var oldVal = undefined;
                                                                                                                  
                                                                                                                  
                                                                                                                  Severity: Minor
                                                                                                                  Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                    Function ngViewDirective has 43 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                    Open

                                                                                                                                   function($http,   $templateCache,   $route,   $anchorScroll,   $compile,
                                                                                                                                            $controller) {
                                                                                                                      return {
                                                                                                                        restrict: 'ECA',
                                                                                                                        terminal: true,
                                                                                                                    Severity: Minor
                                                                                                                    Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                      Function readString has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                      Open

                                                                                                                        function readString(quote) {
                                                                                                                          var start = index;
                                                                                                                          index++;
                                                                                                                          var string = "";
                                                                                                                          var rawString = quote;
                                                                                                                      Severity: Minor
                                                                                                                      Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                        Function getterFn has 42 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                        Open

                                                                                                                        function getterFn(path, csp) {
                                                                                                                          if (getterFnCache.hasOwnProperty(path)) {
                                                                                                                            return getterFnCache[path];
                                                                                                                          }
                                                                                                                        
                                                                                                                        
                                                                                                                        Severity: Minor
                                                                                                                        Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                          Function formDirectiveFactory has 41 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                          Open

                                                                                                                          var formDirectiveFactory = function(isNgForm) {
                                                                                                                            return ['$timeout', function($timeout) {
                                                                                                                              var formDirective = {
                                                                                                                                name: 'form',
                                                                                                                                restrict: 'E',
                                                                                                                          Severity: Minor
                                                                                                                          Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                            Function createEventHandler has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                            Open

                                                                                                                            function createEventHandler(element, events) {
                                                                                                                              var eventHandler = function (event, type) {
                                                                                                                                if (!event.preventDefault) {
                                                                                                                                  event.preventDefault = function() {
                                                                                                                                    event.returnValue = false; //ie
                                                                                                                            Severity: Minor
                                                                                                                            Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                              Function module has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                              Open

                                                                                                                                  return function module(name, requires, configFn) {
                                                                                                                                    if (requires && modules.hasOwnProperty(name)) {
                                                                                                                                      modules[name] = null;
                                                                                                                                    }
                                                                                                                                    return ensure(modules, name, function() {
                                                                                                                              Severity: Minor
                                                                                                                              Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                Function controller has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                Open

                                                                                                                                    controller: ['$element', '$scope', '$attrs', function($element, $scope, $attrs) {
                                                                                                                                      var self = this,
                                                                                                                                          optionsMap = {},
                                                                                                                                          ngModelCtrl = nullModelCtrl,
                                                                                                                                          nullOption,
                                                                                                                                Severity: Minor
                                                                                                                                Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                  Function optionDirective has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                  Open

                                                                                                                                  var optionDirective = ['$interpolate', function($interpolate) {
                                                                                                                                    var nullSelectCtrl = {
                                                                                                                                      addOption: noop,
                                                                                                                                      removeOption: noop
                                                                                                                                    };
                                                                                                                                  Severity: Minor
                                                                                                                                  Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                    Function ngIncludeDirective has 39 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                    Open

                                                                                                                                                      function($http,   $templateCache,   $anchorScroll,   $compile) {
                                                                                                                                      return {
                                                                                                                                        restrict: 'ECA',
                                                                                                                                        terminal: true,
                                                                                                                                        compile: function(element, attr) {
                                                                                                                                    Severity: Minor
                                                                                                                                    Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                      Function loadModules has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                      Open

                                                                                                                                        function loadModules(modulesToLoad){
                                                                                                                                          var runBlocks = [];
                                                                                                                                          forEach(modulesToLoad, function(module) {
                                                                                                                                            if (loadedModules.get(module)) return;
                                                                                                                                            loadedModules.put(module, true);
                                                                                                                                      Severity: Minor
                                                                                                                                      Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                        Function angularInit has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                        Open

                                                                                                                                        function angularInit(element, bootstrap) {
                                                                                                                                          var elements = [element],
                                                                                                                                              appElement,
                                                                                                                                              module,
                                                                                                                                              names = ['ng:app', 'ng-app', 'x-ng-app', 'data-ng-app'],
                                                                                                                                        Severity: Minor
                                                                                                                                        Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                          Function link has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                          Open

                                                                                                                                              link: function(scope, element, attr) {
                                                                                                                                                var lastScope,
                                                                                                                                                    onloadExp = attr.onload || '';
                                                                                                                                          
                                                                                                                                                scope.$on('$routeChangeSuccess', update);
                                                                                                                                          Severity: Minor
                                                                                                                                          Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                            Function $broadcast has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                            Open

                                                                                                                                                  $broadcast: function(name, args) {
                                                                                                                                                    var target = this,
                                                                                                                                                        current = target,
                                                                                                                                                        next = target,
                                                                                                                                                        event = {
                                                                                                                                            Severity: Minor
                                                                                                                                            Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                              Function $set has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                              Open

                                                                                                                                                    $set: function(key, value, writeAttr, attrName) {
                                                                                                                                                      var booleanKey = getBooleanAttrName(this.$$element[0], key),
                                                                                                                                                          $$observers = this.$$observers,
                                                                                                                                                          normalizedVal;
                                                                                                                                              
                                                                                                                                              
                                                                                                                                              Severity: Minor
                                                                                                                                              Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                Function equals has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                Open

                                                                                                                                                function equals(o1, o2) {
                                                                                                                                                  if (o1 === o2) return true;
                                                                                                                                                  if (o1 === null || o2 === null) return false;
                                                                                                                                                  if (o1 !== o1 && o2 !== o2) return true; // NaN === NaN
                                                                                                                                                  var t1 = typeof o1, t2 = typeof o2, length, key, keySet;
                                                                                                                                                Severity: Minor
                                                                                                                                                Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                  Function $LogProvider has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                  Open

                                                                                                                                                  function $LogProvider(){
                                                                                                                                                    this.$get = ['$window', function($window){
                                                                                                                                                      return {
                                                                                                                                                        /**
                                                                                                                                                         * @ngdoc method
                                                                                                                                                  Severity: Minor
                                                                                                                                                  Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                    Function eventHandler has 36 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                    Open

                                                                                                                                                      var eventHandler = function (event, type) {
                                                                                                                                                        if (!event.preventDefault) {
                                                                                                                                                          event.preventDefault = function() {
                                                                                                                                                            event.returnValue = false; //ie
                                                                                                                                                          };
                                                                                                                                                    Severity: Minor
                                                                                                                                                    Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                      Function compositeLinkFn has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                      Open

                                                                                                                                                            function compositeLinkFn(scope, nodeList, $rootElement, boundTranscludeFn) {
                                                                                                                                                              var nodeLinkFn, childLinkFn, node, childScope, childTranscludeFn, i, ii, n;
                                                                                                                                                      
                                                                                                                                                              // copy nodeList so that linking doesn't break due to live list updates.
                                                                                                                                                              var stableNodeList = [];
                                                                                                                                                      Severity: Minor
                                                                                                                                                      Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                        Function $emit has 35 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                        Open

                                                                                                                                                              $emit: function(name, args) {
                                                                                                                                                                var empty = [],
                                                                                                                                                                    namedListeners,
                                                                                                                                                                    scope = this,
                                                                                                                                                                    stopPropagation = false,
                                                                                                                                                        Severity: Minor
                                                                                                                                                        Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                          Function $TimeoutProvider has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                          Open

                                                                                                                                                          function $TimeoutProvider() {
                                                                                                                                                            this.$get = ['$rootScope', '$browser', '$q', '$exceptionHandler',
                                                                                                                                                                 function($rootScope,   $browser,   $q,   $exceptionHandler) {
                                                                                                                                                              var deferreds = {};
                                                                                                                                                          
                                                                                                                                                          
                                                                                                                                                          Severity: Minor
                                                                                                                                                          Found in bower_components/angular/angular.js - About 1 hr to fix

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

                                                                                                                                                              this.$get = ['$window', function($window){
                                                                                                                                                                return {
                                                                                                                                                                  /**
                                                                                                                                                                   * @ngdoc method
                                                                                                                                                                   * @name ng.$log#log
                                                                                                                                                            Severity: Minor
                                                                                                                                                            Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                              Consider simplifying this complex logical expression.
                                                                                                                                                              Open

                                                                                                                                                                      if (type == 'mouseenter' || type == 'mouseleave') {
                                                                                                                                                                        var contains = document.body.contains || document.body.compareDocumentPosition ?
                                                                                                                                                                        function( a, b ) {
                                                                                                                                                                          var adown = a.nodeType === 9 ? a.documentElement : a,
                                                                                                                                                                          bup = b && b.parentNode;
                                                                                                                                                              Severity: Critical
                                                                                                                                                              Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                Consider simplifying this complex logical expression.
                                                                                                                                                                Open

                                                                                                                                                                      if (t==e1 || t==e2 || t==e3 || t==e4 ||
                                                                                                                                                                          (!e1 && !e2 && !e3 && !e4)) {
                                                                                                                                                                        return token;
                                                                                                                                                                      }
                                                                                                                                                                Severity: Critical
                                                                                                                                                                Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                  Function compile has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                  Open

                                                                                                                                                                      compile: function(element, attr) {
                                                                                                                                                                        var srcExp = attr.ngInclude || attr.src,
                                                                                                                                                                            onloadExp = attr.onload || '',
                                                                                                                                                                            autoScrollExp = attr.autoscroll;
                                                                                                                                                                  
                                                                                                                                                                  
                                                                                                                                                                  Severity: Minor
                                                                                                                                                                  Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                    Function copy has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                    Open

                                                                                                                                                                    function copy(source, destination){
                                                                                                                                                                      if (isWindow(source) || isScope(source)) throw Error("Can't copy Window or Scope");
                                                                                                                                                                      if (!destination) {
                                                                                                                                                                        destination = source;
                                                                                                                                                                        if (source) {
                                                                                                                                                                    Severity: Minor
                                                                                                                                                                    Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                      Function registerDirective has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                      Open

                                                                                                                                                                         this.directive = function registerDirective(name, directiveFactory) {
                                                                                                                                                                          if (isString(name)) {
                                                                                                                                                                            assertArg(directiveFactory, 'directive');
                                                                                                                                                                            if (!hasDirectives.hasOwnProperty(name)) {
                                                                                                                                                                              hasDirectives[name] = [];
                                                                                                                                                                      Severity: Minor
                                                                                                                                                                      Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                        Function $setValidity has 32 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                        Open

                                                                                                                                                                          form.$setValidity = function(validationToken, isValid, control) {
                                                                                                                                                                            var queue = errors[validationToken];
                                                                                                                                                                        
                                                                                                                                                                            if (isValid) {
                                                                                                                                                                              if (queue) {
                                                                                                                                                                        Severity: Minor
                                                                                                                                                                        Found in bower_components/angular/angular.js - About 1 hr to fix

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

                                                                                                                                                                                 function($rootScope,   $browser,   $q,   $exceptionHandler) {
                                                                                                                                                                              var deferreds = {};
                                                                                                                                                                          
                                                                                                                                                                          
                                                                                                                                                                               /**
                                                                                                                                                                          Severity: Minor
                                                                                                                                                                          Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                            Function compile has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                            Open

                                                                                                                                                                                  compile: function() {
                                                                                                                                                                                    return {
                                                                                                                                                                                      pre: function(scope, formElement, attr, controller) {
                                                                                                                                                                                        if (!attr.action) {
                                                                                                                                                                                          // we can't use jq events because if a form is destroyed during submission the default
                                                                                                                                                                            Severity: Minor
                                                                                                                                                                            Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                              Function primary has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                              Open

                                                                                                                                                                                function primary() {
                                                                                                                                                                                  var primary;
                                                                                                                                                                                  if (expect('(')) {
                                                                                                                                                                                    primary = filterChain();
                                                                                                                                                                                    consume(')');
                                                                                                                                                                              Severity: Minor
                                                                                                                                                                              Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                Function cookies has 31 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                Open

                                                                                                                                                                                  self.cookies = function(name, value) {
                                                                                                                                                                                    var cookieLength, cookieArray, cookie, i, index;
                                                                                                                                                                                
                                                                                                                                                                                    if (name) {
                                                                                                                                                                                      if (value === undefined) {
                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                  Function LocationHashbangUrl has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                  Open

                                                                                                                                                                                  function LocationHashbangUrl(url, hashPrefix, appBaseUrl) {
                                                                                                                                                                                    var basePath;
                                                                                                                                                                                  
                                                                                                                                                                                    /**
                                                                                                                                                                                     * Parse given hashbang url into properties
                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                  Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                    Function when has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                    Open

                                                                                                                                                                                      var when = function(value, callback, errback) {
                                                                                                                                                                                        var result = defer(),
                                                                                                                                                                                            done;
                                                                                                                                                                                    
                                                                                                                                                                                        var wrappedCallback = function(value) {
                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                    Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                      Function bootstrap has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                      Open

                                                                                                                                                                                      function bootstrap(element, modules) {
                                                                                                                                                                                        var doBootstrap = function() {
                                                                                                                                                                                          element = jqLite(element);
                                                                                                                                                                                          modules = modules || [];
                                                                                                                                                                                          modules.unshift(['$provide', function($provide) {
                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                      Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                        Function compile has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                        Open

                                                                                                                                                                                            compile: function(element, attr) {
                                                                                                                                                                                              if (isUndefined(attr.value)) {
                                                                                                                                                                                                var interpolateFn = $interpolate(element.text(), true);
                                                                                                                                                                                                if (!interpolateFn) {
                                                                                                                                                                                                  attr.$set('value', element.text());
                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                        Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                          Function invoke has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                          Open

                                                                                                                                                                                              function invoke(fn, self, locals){
                                                                                                                                                                                                var args = [],
                                                                                                                                                                                                    $inject = annotate(fn),
                                                                                                                                                                                                    length, i,
                                                                                                                                                                                                    key;
                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                          Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                            Function JQLitePatchJQueryRemove has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                            Open

                                                                                                                                                                                            function JQLitePatchJQueryRemove(name, dispatchThis, filterElems, getterIfNoArguments) {
                                                                                                                                                                                              var originalJqFn = jQuery.fn[name];
                                                                                                                                                                                              originalJqFn = originalJqFn.$original || originalJqFn;
                                                                                                                                                                                              removePatch.$original = originalJqFn;
                                                                                                                                                                                              jQuery.fn[name] = removePatch;
                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                            Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                              Function ngPluralizeDirective has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                              Open

                                                                                                                                                                                              var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interpolate) {
                                                                                                                                                                                                var BRACE = /{}/g;
                                                                                                                                                                                                return {
                                                                                                                                                                                                  restrict: 'EA',
                                                                                                                                                                                                  link: function(scope, element, attr) {
                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                              Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                                Function $get has 9 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                Open

                                                                                                                                                                                                    function($injector,   $interpolate,   $exceptionHandler,   $http,   $templateCache,   $parse,
                                                                                                                                                                                                             $controller,   $rootScope,   $document) {
                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                                  Function $AnchorScrollProvider has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                                  Open

                                                                                                                                                                                                  function $AnchorScrollProvider() {
                                                                                                                                                                                                  
                                                                                                                                                                                                    var autoScrollingEnabled = true;
                                                                                                                                                                                                  
                                                                                                                                                                                                    this.disableAutoScrolling = function() {
                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                  Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                                    Function readNumber has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                                    Open

                                                                                                                                                                                                      function readNumber() {
                                                                                                                                                                                                        var number = "";
                                                                                                                                                                                                        var start = index;
                                                                                                                                                                                                        while (index < text.length) {
                                                                                                                                                                                                          var ch = lowercase(text.charAt(index));
                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                    Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                                      Function pre has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                                      Open

                                                                                                                                                                                                                pre: function(scope, formElement, attr, controller) {
                                                                                                                                                                                                                  if (!attr.action) {
                                                                                                                                                                                                                    // we can't use jq events because if a form is destroyed during submission the default
                                                                                                                                                                                                                    // action is not prevented. see #1238
                                                                                                                                                                                                                    //
                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                      Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                                        Function $new has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                                                                                                                                                        Open

                                                                                                                                                                                                              $new: function(isolate) {
                                                                                                                                                                                                                var Child,
                                                                                                                                                                                                                    child;
                                                                                                                                                                                                        
                                                                                                                                                                                                                if (isFunction(isolate)) {
                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                        Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                                                                                                          Open

                                                                                                                                                                                                            if (decodeURIComponent(match.path) == basePath && !isUndefined(match.hash) &&
                                                                                                                                                                                                                match.hash.indexOf(hashPrefix) === 0) {
                                                                                                                                                                                                              return url;
                                                                                                                                                                                                            // convert html5 url -> hashbang url
                                                                                                                                                                                                            } else {
                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                          Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                                                                                                            Open

                                                                                                                                                                                                              if (value && value.length !== 0) {
                                                                                                                                                                                                                var v = lowercase("" + value);
                                                                                                                                                                                                                value = !(v == 'f' || v == '0' || v == 'false' || v == 'no' || v == 'n' || v == '[]');
                                                                                                                                                                                                              } else {
                                                                                                                                                                                                                value = false;
                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                            Found in bower_components/angular/angular.js - About 1 hr to fix

                                                                                                                                                                                                              Function compileTemplateUrl has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                              Open

                                                                                                                                                                                                                  function compileTemplateUrl(directives, beforeTemplateNodeLinkFn, $compileNode, tAttrs,
                                                                                                                                                                                                                      $rootElement, replace, childTranscludeFn) {
                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                              Found in bower_components/angular/angular.js - About 50 mins to fix

                                                                                                                                                                                                                Function $get has 7 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                Open

                                                                                                                                                                                                                      function( $rootScope,   $location,   $routeParams,   $q,   $injector,   $http,   $templateCache) {
                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                Found in bower_components/angular/angular.js - About 50 mins to fix

                                                                                                                                                                                                                  Function $get has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                        function($httpBackend, $browser, $cacheFactory, $rootScope, $q, $injector) {
                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                  Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                    Function textInputType has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                    function textInputType(scope, element, attr, ctrl, $sniffer, $browser) {
                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                    Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                      Avoid deeply nested control flow statements.
                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                              for(key in o1) {
                                                                                                                                                                                                                                if (key.charAt(0) === '$' || isFunction(o1[key])) continue;
                                                                                                                                                                                                                                if (!equals(o1[key], o2[key])) return false;
                                                                                                                                                                                                                                keySet[key] = true;
                                                                                                                                                                                                                              }
                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                      Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                if (obj.hasOwnProperty(key)) {
                                                                                                                                                                                                                                  iterator.call(context, obj[key], key);
                                                                                                                                                                                                                                }
                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                        Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                          Function emailInputType has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                          function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {
                                                                                                                                                                                                                          Severity: Minor
                                                                                                                                                                                                                          Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                            Function createHttpBackend has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                            function createHttpBackend($browser, XHR, $browserDefer, callbacks, rawDocument, locationProtocol) {
                                                                                                                                                                                                                            Severity: Minor
                                                                                                                                                                                                                            Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                              Function ngViewDirective has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                             function($http,   $templateCache,   $route,   $anchorScroll,   $compile,
                                                                                                                                                                                                                                                      $controller) {
                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                              Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                          for(key=0; key<length; key++) {
                                                                                                                                                                                                                                            if (!equals(o1[key], o2[key])) return false;
                                                                                                                                                                                                                                          }
                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                                  Function urlInputType has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                  function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {
                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                            if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2) || isArray(o2)) return false;
                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                    Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                                      Function numberInputType has 6 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                      function numberInputType(scope, element, attr, ctrl, $sniffer, $browser) {
                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                      Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                                        Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                    if (lastCookies[name] === undefined) {
                                                                                                                                                                                                                                                      lastCookies[name] = unescape(cookie.substring(index + 1));
                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                        Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                                          Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                if (fn2) {
                                                                                                                                                                                                                                                  tokens.push({index:index, text:ch2, fn:fn2});
                                                                                                                                                                                                                                                  index += 2;
                                                                                                                                                                                                                                                } else if (fn) {
                                                                                                                                                                                                                                                  tokens.push({index:index, text:ch, fn:fn, json: was('[,:') && is('+-')});
                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                          Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                                            Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                              if ( b === a ) {
                                                                                                                                                                                                                                                                return true;
                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                            Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                                              Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                if (watch && (value = watch.get(current)) !== (last = watch.last) &&
                                                                                                                                                                                                                                                                    !(watch.eq
                                                                                                                                                                                                                                                                        ? equals(value, last)
                                                                                                                                                                                                                                                                        : (typeof value == 'number' && typeof last == 'number'
                                                                                                                                                                                                                                                                           && isNaN(value) && isNaN(last)))) {
                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                              Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                                                Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                            for (key in arg1) {
                                                                                                                                                                                                                                                              fn(this[i], key, arg1[key]);
                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                                                  Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                      if (keyName) locals[keyName] = key;
                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                                                    Avoid deeply nested control flow statements.
                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                            for(key in o2) {
                                                                                                                                                                                                                                                              if (!keySet[key] &&
                                                                                                                                                                                                                                                                  key.charAt(0) !== '$' &&
                                                                                                                                                                                                                                                                  o2[key] !== undefined &&
                                                                                                                                                                                                                                                                  !isFunction(o2[key])) return false;
                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                    Found in bower_components/angular/angular.js - About 45 mins to fix

                                                                                                                                                                                                                                                      Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                        if (watch && (value = watch.get(current)) !== (last = watch.last) &&
                                                                                                                                                                                                                                                                            !(watch.eq
                                                                                                                                                                                                                                                                                ? equals(value, last)
                                                                                                                                                                                                                                                                                : (typeof value == 'number' && typeof last == 'number'
                                                                                                                                                                                                                                                                                   && isNaN(value) && isNaN(last)))) {
                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                      Found in bower_components/angular/angular.js - About 40 mins to fix

                                                                                                                                                                                                                                                        Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                              if (!hasDirectives.hasOwnProperty(name)) {
                                                                                                                                                                                                                                                                hasDirectives[name] = [];
                                                                                                                                                                                                                                                                $provide.factory(name + Suffix, ['$injector', '$exceptionHandler',
                                                                                                                                                                                                                                                                  function($injector, $exceptionHandler) {
                                                                                                                                                                                                                                                                    var directives = [];
                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                        Found in bower_components/angular/angular.js - About 40 mins to fix

                                                                                                                                                                                                                                                          Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                            if (typeof obj.hasOwnProperty != 'function' &&
                                                                                                                                                                                                                                                                typeof obj.constructor != 'function') {
                                                                                                                                                                                                                                                              // This is here for IE8: it is a bogus object treat it as array;
                                                                                                                                                                                                                                                              return true;
                                                                                                                                                                                                                                                            } else  {
                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                          Found in bower_components/angular/angular.js - About 40 mins to fix

                                                                                                                                                                                                                                                            Consider simplifying this complex logical expression.
                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                  if (next && last && next.$$route === last.$$route
                                                                                                                                                                                                                                                                      && equals(next.pathParams, last.pathParams) && !next.reloadOnSearch && !forceReload) {
                                                                                                                                                                                                                                                                    last.params = next.params;
                                                                                                                                                                                                                                                                    copy(last.params, $routeParams);
                                                                                                                                                                                                                                                                    $rootScope.$broadcast('$routeUpdate', last);
                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                            Found in bower_components/angular/angular.js - About 40 mins to fix

                                                                                                                                                                                                                                                              Function formatNumber has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                              function formatNumber(number, pattern, groupSep, decimalSep, fractionSize) {
                                                                                                                                                                                                                                                              Severity: Minor
                                                                                                                                                                                                                                                              Found in bower_components/angular/angular.js - About 35 mins to fix

                                                                                                                                                                                                                                                                Function NgModelController has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                    function($scope, $exceptionHandler, $attr, $element, $parse) {
                                                                                                                                                                                                                                                                Severity: Minor
                                                                                                                                                                                                                                                                Found in bower_components/angular/angular.js - About 35 mins to fix

                                                                                                                                                                                                                                                                  Function directiveLinkingFn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                    /* nodesetLinkingFn */ nodesetLinkingFn,
                                                                                                                                                                                                                                                                    /* angular.Scope */ scope,
                                                                                                                                                                                                                                                                    /* Node */ node,
                                                                                                                                                                                                                                                                    /* Element */ rootElement,
                                                                                                                                                                                                                                                                    /* function(Function) */ boundTranscludeFn
                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js - About 35 mins to fix

                                                                                                                                                                                                                                                                    Function nodeLinkFn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                          function nodeLinkFn(childLinkFn, scope, linkNode, $rootElement, boundTranscludeFn) {
                                                                                                                                                                                                                                                                    Severity: Minor
                                                                                                                                                                                                                                                                    Found in bower_components/angular/angular.js - About 35 mins to fix

                                                                                                                                                                                                                                                                      Function applyDirectivesToNode has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                          function applyDirectivesToNode(directives, compileNode, templateAttrs, transcludeFn, jqCollection) {
                                                                                                                                                                                                                                                                      Severity: Minor
                                                                                                                                                                                                                                                                      Found in bower_components/angular/angular.js - About 35 mins to fix

                                                                                                                                                                                                                                                                        Function cspSafeGetterFn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                        function cspSafeGetterFn(key0, key1, key2, key3, key4) {
                                                                                                                                                                                                                                                                        Severity: Minor
                                                                                                                                                                                                                                                                        Found in bower_components/angular/angular.js - About 35 mins to fix

                                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                        !isFunction(o2[key])) return false;
                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                          Found in bower_components/angular/angular.js - About 30 mins to fix

                                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                              return false;
                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                            Found in bower_components/angular/angular.js - About 30 mins to fix

                                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                        return true;
                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                              Found in bower_components/angular/angular.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                    return pathVal;
                                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                                Found in bower_components/angular/angular.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                  Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                  Open

                                                                                                                                                                                                                                                                                          return isDate(o2) && o1.getTime() == o2.getTime();
                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                    Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                    Open

                                                                                                                                                                                                                                                                                            return o1.toString() == o2.toString();
                                                                                                                                                                                                                                                                                    Severity: Major
                                                                                                                                                                                                                                                                                    Found in bower_components/angular/angular.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                      Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                      Open

                                                                                                                                                                                                                                                                                              return true;
                                                                                                                                                                                                                                                                                      Severity: Major
                                                                                                                                                                                                                                                                                      Found in bower_components/angular/angular.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                        Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                        Open

                                                                                                                                                                                                                                                                                            if (!key4 || pathVal === null || pathVal === undefined) return pathVal;
                                                                                                                                                                                                                                                                                        Severity: Major
                                                                                                                                                                                                                                                                                        Found in bower_components/angular/angular.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                          Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                          Open

                                                                                                                                                                                                                                                                                                    if (!equals(o1[key], o2[key])) return false;
                                                                                                                                                                                                                                                                                          Severity: Major
                                                                                                                                                                                                                                                                                          Found in bower_components/angular/angular.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                            Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                            Open

                                                                                                                                                                                                                                                                                                    if (isScope(o1) || isScope(o2) || isWindow(o1) || isWindow(o2) || isArray(o2)) return false;
                                                                                                                                                                                                                                                                                            Severity: Major
                                                                                                                                                                                                                                                                                            Found in bower_components/angular/angular.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                              Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                              Open

                                                                                                                                                                                                                                                                                                        return false;
                                                                                                                                                                                                                                                                                              Severity: Major
                                                                                                                                                                                                                                                                                              Found in bower_components/angular/angular.js - About 30 mins to fix

                                                                                                                                                                                                                                                                                                Avoid too many return statements within this function.
                                                                                                                                                                                                                                                                                                Open

                                                                                                                                                                                                                                                                                                            if (!equals(o1[key], o2[key])) return false;
                                                                                                                                                                                                                                                                                                Severity: Major
                                                                                                                                                                                                                                                                                                Found in bower_components/angular/angular.js - About 30 mins to fix

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

                                                                                                                                                                                                                                                                                                    function jsonStringToDate(string){
                                                                                                                                                                                                                                                                                                      var match;
                                                                                                                                                                                                                                                                                                      if (match = string.match(R_ISO8601_STR)) {
                                                                                                                                                                                                                                                                                                        var date = new Date(0),
                                                                                                                                                                                                                                                                                                            tzHour = 0,
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 day to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular-mocks/angular-mocks.js on lines 415..430

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                  function emailInputType(scope, element, attr, ctrl, $sniffer, $browser) {
                                                                                                                                                                                                                                                                                                    textInputType(scope, element, attr, ctrl, $sniffer, $browser);
                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                    var emailValidator = function(value) {
                                                                                                                                                                                                                                                                                                      if (isEmpty(value) || EMAIL_REGEXP.test(value)) {
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 11921..11936

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                  function urlInputType(scope, element, attr, ctrl, $sniffer, $browser) {
                                                                                                                                                                                                                                                                                                    textInputType(scope, element, attr, ctrl, $sniffer, $browser);
                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                    var urlValidator = function(value) {
                                                                                                                                                                                                                                                                                                      if (isEmpty(value) || URL_REGEXP.test(value)) {
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 11938..11953

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

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

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

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

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

                                                                                                                                                                                                                                                                                                  Refactorings

                                                                                                                                                                                                                                                                                                  Further Reading

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

                                                                                                                                                                                                                                                                                                    if (attr.max) {
                                                                                                                                                                                                                                                                                                      var max = parseFloat(attr.max);
                                                                                                                                                                                                                                                                                                      var maxValidator = function(value) {
                                                                                                                                                                                                                                                                                                        if (!isEmpty(value) && value > max) {
                                                                                                                                                                                                                                                                                                          ctrl.$setValidity('max', false);
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 11877..11891

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

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

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

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

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

                                                                                                                                                                                                                                                                                                  Refactorings

                                                                                                                                                                                                                                                                                                  Further Reading

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

                                                                                                                                                                                                                                                                                                    if (attr.min) {
                                                                                                                                                                                                                                                                                                      var min = parseFloat(attr.min);
                                                                                                                                                                                                                                                                                                      var minValidator = function(value) {
                                                                                                                                                                                                                                                                                                        if (!isEmpty(value) && value < min) {
                                                                                                                                                                                                                                                                                                          ctrl.$setValidity('min', false);
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 11893..11907

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

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

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

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

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

                                                                                                                                                                                                                                                                                                  Refactorings

                                                                                                                                                                                                                                                                                                  Further Reading

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

                                                                                                                                                                                                                                                                                                    if (attr.ngMinlength) {
                                                                                                                                                                                                                                                                                                      var minlength = int(attr.ngMinlength);
                                                                                                                                                                                                                                                                                                      var minLengthValidator = function(value) {
                                                                                                                                                                                                                                                                                                        if (!isEmpty(value) && value.length < minlength) {
                                                                                                                                                                                                                                                                                                          ctrl.$setValidity('minlength', false);
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 11842..11856

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

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

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

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

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

                                                                                                                                                                                                                                                                                                  Refactorings

                                                                                                                                                                                                                                                                                                  Further Reading

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

                                                                                                                                                                                                                                                                                                    if (attr.ngMaxlength) {
                                                                                                                                                                                                                                                                                                      var maxlength = int(attr.ngMaxlength);
                                                                                                                                                                                                                                                                                                      var maxLengthValidator = function(value) {
                                                                                                                                                                                                                                                                                                        if (!isEmpty(value) && value.length > maxlength) {
                                                                                                                                                                                                                                                                                                          ctrl.$setValidity('maxlength', false);
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 11825..11839

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                            var contains = document.body.contains || document.body.compareDocumentPosition ?
                                                                                                                                                                                                                                                                                                            function( a, b ) {
                                                                                                                                                                                                                                                                                                              var adown = a.nodeType === 9 ? a.documentElement : a,
                                                                                                                                                                                                                                                                                                              bup = b && b.parentNode;
                                                                                                                                                                                                                                                                                                              return a === bup || !!( bup && bup.nodeType === 1 && (
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 4 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/jquery/jquery.js on lines 1535..1554

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                  function padNumber(num, digits, trim) {
                                                                                                                                                                                                                                                                                                    var neg = '';
                                                                                                                                                                                                                                                                                                    if (num < 0) {
                                                                                                                                                                                                                                                                                                      neg =  '-';
                                                                                                                                                                                                                                                                                                      num = -num;
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 3 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular-mocks/angular-mocks.js on lines 436..447

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

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

                                                                                                                                                                                                                                                                                                      if (pathVal && pathVal.then) {
                                                                                                                                                                                                                                                                                                        if (!("$$v" in pathVal)) {
                                                                                                                                                                                                                                                                                                          promise = pathVal;
                                                                                                                                                                                                                                                                                                          promise.$$v = undefined;
                                                                                                                                                                                                                                                                                                          promise.then(function(val) { promise.$$v = val; });
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6632..6639
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6643..6650
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6654..6661
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6665..6672

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

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

                                                                                                                                                                                                                                                                                                      if (pathVal && pathVal.then) {
                                                                                                                                                                                                                                                                                                        if (!("$$v" in pathVal)) {
                                                                                                                                                                                                                                                                                                          promise = pathVal;
                                                                                                                                                                                                                                                                                                          promise.$$v = undefined;
                                                                                                                                                                                                                                                                                                          promise.then(function(val) { promise.$$v = val; });
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6621..6628
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6643..6650
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6654..6661
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6665..6672

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

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

                                                                                                                                                                                                                                                                                                      if (pathVal && pathVal.then) {
                                                                                                                                                                                                                                                                                                        if (!("$$v" in pathVal)) {
                                                                                                                                                                                                                                                                                                          promise = pathVal;
                                                                                                                                                                                                                                                                                                          promise.$$v = undefined;
                                                                                                                                                                                                                                                                                                          promise.then(function(val) { promise.$$v = val; });
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6621..6628
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6632..6639
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6643..6650
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6665..6672

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

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

                                                                                                                                                                                                                                                                                                      if (pathVal && pathVal.then) {
                                                                                                                                                                                                                                                                                                        if (!("$$v" in pathVal)) {
                                                                                                                                                                                                                                                                                                          promise = pathVal;
                                                                                                                                                                                                                                                                                                          promise.$$v = undefined;
                                                                                                                                                                                                                                                                                                          promise.then(function(val) { promise.$$v = val; });
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6621..6628
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6632..6639
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6643..6650
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6654..6661

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

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

                                                                                                                                                                                                                                                                                                      if (pathVal && pathVal.then) {
                                                                                                                                                                                                                                                                                                        if (!("$$v" in pathVal)) {
                                                                                                                                                                                                                                                                                                          promise = pathVal;
                                                                                                                                                                                                                                                                                                          promise.$$v = undefined;
                                                                                                                                                                                                                                                                                                          promise.then(function(val) { promise.$$v = val; });
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 4 other locations - About 2 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6621..6628
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6632..6639
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6654..6661
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6665..6672

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                    function toggleValidCss(isValid, validationErrorKey) {
                                                                                                                                                                                                                                                                                                      validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
                                                                                                                                                                                                                                                                                                      element.
                                                                                                                                                                                                                                                                                                        removeClass((isValid ? INVALID_CLASS : VALID_CLASS) + validationErrorKey).
                                                                                                                                                                                                                                                                                                        addClass((isValid ? VALID_CLASS : INVALID_CLASS) + validationErrorKey);
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 12306..12311

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                    function toggleValidCss(isValid, validationErrorKey) {
                                                                                                                                                                                                                                                                                                      validationErrorKey = validationErrorKey ? '-' + snake_case(validationErrorKey, '-') : '';
                                                                                                                                                                                                                                                                                                      $element.
                                                                                                                                                                                                                                                                                                        removeClass((isValid ? INVALID_CLASS : VALID_CLASS) + validationErrorKey).
                                                                                                                                                                                                                                                                                                        addClass((isValid ? VALID_CLASS : INVALID_CLASS) + validationErrorKey);
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 2 hrs to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 11080..11085

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

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

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

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

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

                                                                                                                                                                                                                                                                                                  Refactorings

                                                                                                                                                                                                                                                                                                  Further Reading

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

                                                                                                                                                                                                                                                                                                            if (!(next = (current.$$childHead || (current !== target && current.$$nextSibling)))) {
                                                                                                                                                                                                                                                                                                              while(current !== target && !(next = current.$$nextSibling)) {
                                                                                                                                                                                                                                                                                                                current = current.$parent;
                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 8117..8121

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

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

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

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

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

                                                                                                                                                                                                                                                                                                  Refactorings

                                                                                                                                                                                                                                                                                                  Further Reading

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

                                                                                                                                                                                                                                                                                                              if (!(next = (current.$$childHead || (current !== target && current.$$nextSibling)))) {
                                                                                                                                                                                                                                                                                                                while(current !== target && !(next = current.$$nextSibling)) {
                                                                                                                                                                                                                                                                                                                  current = current.$parent;
                                                                                                                                                                                                                                                                                                                }
                                                                                                                                                                                                                                                                                                              }
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 8477..8481

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                    function _filterChain() {
                                                                                                                                                                                                                                                                                                      var left = expression();
                                                                                                                                                                                                                                                                                                      var token;
                                                                                                                                                                                                                                                                                                      while(true) {
                                                                                                                                                                                                                                                                                                        if ((token = expect('|'))) {
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6375..6385

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                    function logicalOR() {
                                                                                                                                                                                                                                                                                                      var left = logicalAND();
                                                                                                                                                                                                                                                                                                      var token;
                                                                                                                                                                                                                                                                                                      while(true) {
                                                                                                                                                                                                                                                                                                        if ((token = expect('||'))) {
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6319..6329

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                          for(i = 0, ii = postLinkFns.length; i < ii; i++) {
                                                                                                                                                                                                                                                                                                            try {
                                                                                                                                                                                                                                                                                                              linkFn = postLinkFns[i];
                                                                                                                                                                                                                                                                                                              linkFn(scope, $element, attrs,
                                                                                                                                                                                                                                                                                                                  linkFn.require && getControllers(linkFn.require, $element));
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 4565..4573

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                  function makeMap(str){
                                                                                                                                                                                                                                                                                                    var obj = {}, items = str.split(","), i;
                                                                                                                                                                                                                                                                                                    for ( i = 0; i < items.length; i++ )
                                                                                                                                                                                                                                                                                                      obj[ items[i] ] = true;
                                                                                                                                                                                                                                                                                                    return obj;
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular-sanitize/angular-sanitize.js on lines 194..198

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                          for(i = 0, ii = preLinkFns.length; i < ii; i++) {
                                                                                                                                                                                                                                                                                                            try {
                                                                                                                                                                                                                                                                                                              linkFn = preLinkFns[i];
                                                                                                                                                                                                                                                                                                              linkFn(scope, $element, attrs,
                                                                                                                                                                                                                                                                                                                  linkFn.require && getControllers(linkFn.require, $element));
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 4579..4587

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                      addEventListenerFn = (window.document.addEventListener
                                                                                                                                                                                                                                                                                                        ? function(element, type, fn) {element.addEventListener(type, fn, false);}
                                                                                                                                                                                                                                                                                                        : function(element, type, fn) {element.attachEvent('on' + type, fn);}),
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 1607..1609

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                  var ngShowDirective = ngDirective(function(scope, element, attr){
                                                                                                                                                                                                                                                                                                    scope.$watch(attr.ngShow, function ngShowWatchAction(value){
                                                                                                                                                                                                                                                                                                      element.css('display', toBoolean(value) ? '' : 'none');
                                                                                                                                                                                                                                                                                                    });
                                                                                                                                                                                                                                                                                                  });
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 14140..14144

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                            var wrappedErrback = function(reason) {
                                                                                                                                                                                                                                                                                                              try {
                                                                                                                                                                                                                                                                                                                result.resolve((errback || defaultErrback)(reason));
                                                                                                                                                                                                                                                                                                              } catch(e) {
                                                                                                                                                                                                                                                                                                                result.reject(e);
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6993..7000

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                  var ngHideDirective = ngDirective(function(scope, element, attr){
                                                                                                                                                                                                                                                                                                    scope.$watch(attr.ngHide, function ngHideWatchAction(value){
                                                                                                                                                                                                                                                                                                      element.css('display', toBoolean(value) ? 'none' : '');
                                                                                                                                                                                                                                                                                                    });
                                                                                                                                                                                                                                                                                                  });
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 14100..14104

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                      removeEventListenerFn = (window.document.removeEventListener
                                                                                                                                                                                                                                                                                                        ? function(element, type, fn) {element.removeEventListener(type, fn, false); }
                                                                                                                                                                                                                                                                                                        : function(element, type, fn) {element.detachEvent('on' + type, fn); });
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 1604..1606

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                            var wrappedCallback = function(value) {
                                                                                                                                                                                                                                                                                                              try {
                                                                                                                                                                                                                                                                                                                result.resolve((callback || defaultCallback)(value));
                                                                                                                                                                                                                                                                                                              } catch(e) {
                                                                                                                                                                                                                                                                                                                result.reject(e);
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 7002..7009

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                  function encodeUriQuery(val, pctEncodeSpaces) {
                                                                                                                                                                                                                                                                                                    return encodeURIComponent(val).
                                                                                                                                                                                                                                                                                                               replace(/%40/gi, '@').
                                                                                                                                                                                                                                                                                                               replace(/%3A/gi, ':').
                                                                                                                                                                                                                                                                                                               replace(/%24/g, '$').
                                                                                                                                                                                                                                                                                                  Severity: Major
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 1 hr to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular-resource/angular-resource.js on lines 276..283

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                      var wrappedCallback = function(value) {
                                                                                                                                                                                                                                                                                                        try {
                                                                                                                                                                                                                                                                                                          return (callback || defaultCallback)(value);
                                                                                                                                                                                                                                                                                                        } catch (e) {
                                                                                                                                                                                                                                                                                                          exceptionHandler(e);
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 7113..7120

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                      var wrappedErrback = function(reason) {
                                                                                                                                                                                                                                                                                                        try {
                                                                                                                                                                                                                                                                                                          return (errback || defaultErrback)(reason);
                                                                                                                                                                                                                                                                                                        } catch (e) {
                                                                                                                                                                                                                                                                                                          exceptionHandler(e);
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 50 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 7104..7111

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                            { // Decimal Pattern
                                                                                                                                                                                                                                                                                                              minInt: 1,
                                                                                                                                                                                                                                                                                                              minFrac: 0,
                                                                                                                                                                                                                                                                                                              maxFrac: 3,
                                                                                                                                                                                                                                                                                                              posPre: '',
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 9579..9589

                                                                                                                                                                                                                                                                                                  Duplicated Code

                                                                                                                                                                                                                                                                                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                                                  Tuning

                                                                                                                                                                                                                                                                                                  This issue has a mass of 49.

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

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

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

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

                                                                                                                                                                                                                                                                                                  Refactorings

                                                                                                                                                                                                                                                                                                  Further Reading

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

                                                                                                                                                                                                                                                                                                            },{ //Currency Pattern
                                                                                                                                                                                                                                                                                                              minInt: 1,
                                                                                                                                                                                                                                                                                                              minFrac: 2,
                                                                                                                                                                                                                                                                                                              maxFrac: 2,
                                                                                                                                                                                                                                                                                                              posPre: '\u00A4',
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 9569..9579

                                                                                                                                                                                                                                                                                                  Duplicated Code

                                                                                                                                                                                                                                                                                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                                                                                                                                                                                                                                                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                                                                                                                                                                                                                                                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                                                                                                                                                                                                                                                                  Tuning

                                                                                                                                                                                                                                                                                                  This issue has a mass of 49.

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

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

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

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

                                                                                                                                                                                                                                                                                                  Refactorings

                                                                                                                                                                                                                                                                                                  Further Reading

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

                                                                                                                                                                                                                                                                                                  function encodeUriSegment(val) {
                                                                                                                                                                                                                                                                                                    return encodeUriQuery(val, true).
                                                                                                                                                                                                                                                                                                               replace(/%26/gi, '&').
                                                                                                                                                                                                                                                                                                               replace(/%3D/gi, '=').
                                                                                                                                                                                                                                                                                                               replace(/%2B/gi, '+');
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 40 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular-resource/angular-resource.js on lines 257..262

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                        if (isObject(classVal) && !isArray(classVal)) {
                                                                                                                                                                                                                                                                                                          classVal = map(classVal, function(v, k) { if (v) return k });
                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 12845..12847

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                        for ( var i = 0; i < argsFn.length; i++) {
                                                                                                                                                                                                                                                                                                          args.push(argsFn[i](scope, locals));
                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 2 other locations - About 35 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6341..6343
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6557..6559

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                        if (isObject(classVal) && !isArray(classVal)) {
                                                                                                                                                                                                                                                                                                          classVal = map(classVal, function(v, k) { if (v) return k });
                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 12853..12855

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                            for ( var i = 0; i < argsFn.length; i++) {
                                                                                                                                                                                                                                                                                                              args.push(argsFn[i](self, locals));
                                                                                                                                                                                                                                                                                                            }
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 2 other locations - About 35 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6535..6537
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6557..6559

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                        for ( var i = 0; i < elementFns.length; i++) {
                                                                                                                                                                                                                                                                                                          array.push(elementFns[i](self, locals));
                                                                                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 2 other locations - About 35 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6341..6343
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6535..6537

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

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

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

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

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

                                                                                                                                                                                                                                                                                                  Refactorings

                                                                                                                                                                                                                                                                                                  Further Reading

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

                                                                                                                                                                                                                                                                                                      if (match.path.indexOf(pathPrefix) !== 0) {
                                                                                                                                                                                                                                                                                                        throw Error('Invalid url "' + newAbsoluteUrl + '", missing path prefix "' + pathPrefix + '" !');
                                                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 5297..5299

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

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

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

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

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

                                                                                                                                                                                                                                                                                                  Refactorings

                                                                                                                                                                                                                                                                                                  Further Reading

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

                                                                                                                                                                                                                                                                                                      if (match.path.indexOf(pathPrefix) !== 0) {
                                                                                                                                                                                                                                                                                                        throw Error('Invalid url "' + url + '", missing path prefix "' + pathPrefix + '" !');
                                                                                                                                                                                                                                                                                                      }
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 5326..5328

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                      return ch == ' ' || ch == '\r' || ch == '\t' ||
                                                                                                                                                                                                                                                                                                             ch == '\n' || ch == '\v' || ch == '\u00A0'; // IE treats non-breaking space as \u00A0
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 820..820

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

                                                                                                                                                                                                                                                                                                  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

                                                                                                                                                                                                                                                                                                      value = !(v == 'f' || v == '0' || v == 'false' || v == 'no' || v == 'n' || v == '[]');
                                                                                                                                                                                                                                                                                                  Severity: Minor
                                                                                                                                                                                                                                                                                                  Found in bower_components/angular/angular.js and 1 other location - About 35 mins to fix
                                                                                                                                                                                                                                                                                                  bower_components/angular/angular.js on lines 6044..6045

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

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

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

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

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

                                                                                                                                                                                                                                                                                                  Refactorings

                                                                                                                                                                                                                                                                                                  Further Reading

                                                                                                                                                                                                                                                                                                  There are no issues that match your filters.

                                                                                                                                                                                                                                                                                                  Category
                                                                                                                                                                                                                                                                                                  Status