ericduran/chromeHAR

View on GitHub

Showing 463 of 463 total issues

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

      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-sanitize/angular-sanitize.js and 1 other location - About 1 hr to fix
      bower_components/angular/angular.js on lines 487..492

      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

              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

      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 htmlSanitizeWriter has 41 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function htmlSanitizeWriter(buf){
          var ignore = false;
          var out = angular.bind(buf, buf.push);
          return {
            start: function(tag, attrs, unary){
        Severity: Minor
        Found in bower_components/angular-sanitize/angular-sanitize.js - About 1 hr to fix

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

          function addCombinator( matcher, combinator, base ) {
              var dir = combinator.dir,
                  checkNonElements = base && dir === "parentNode",
                  doneName = done++;
          
          
          Severity: Minor
          Found in bower_components/jquery/jquery.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 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 val has 40 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    val: function( value ) {
                        var hooks, ret, isFunction,
                            elem = this[0];
                
                        if ( !arguments.length ) {
                Severity: Minor
                Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                  jQuery.extend = jQuery.fn.extend = function() {
                      var options, name, src, copy, copyIsArray, clone,
                          target = arguments[0] || {},
                          i = 1,
                          length = arguments.length,
                  Severity: Minor
                  Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                        stop: function( type, clearQueue, gotoEnd ) {
                            var stopQueue = function( hooks ) {
                                var stop = hooks.stop;
                                delete hooks.stop;
                                stop( gotoEnd );
                    Severity: Minor
                    Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                          on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
                              var origFn, type;
                      
                              // Types can be a map of types/handlers
                              if ( typeof types === "object" ) {
                      Severity: Minor
                      Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                                    result = hasMembers ? (whitespace ? "[\n" + indentation + results.join(",\n" + indentation) + "\n" + prefix + "]" : ("[" + results.join(",") + "]")) : "[]";
                        Severity: Major
                        Found in bower_components/json3/lib/json3.js and 1 other location - About 1 hr to fix
                        bower_components/json3/lib/json3.js on lines 472..472

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

                        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

                                    result = hasMembers ? (whitespace ? "{\n" + indentation + results.join(",\n" + indentation) + "\n" + prefix + "}" : ("{" + results.join(",") + "}")) : "{}";
                        Severity: Major
                        Found in bower_components/json3/lib/json3.js and 1 other location - About 1 hr to fix
                        bower_components/json3/lib/json3.js on lines 454..454

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

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

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

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

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

                        Refactorings

                        Further Reading

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