ericduran/chromeHAR

View on GitHub

Showing 463 of 463 total issues

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

function extractComments(source) {
  var index = 0, length = source.length, results = [], symbol, position, original;
  while (index < length) {
    symbol = source[index];
    switch (symbol) {
Severity: Minor
Found in bower_components/json3/build.js - About 1 hr to fix

    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

      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

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

                  send: function( headers, complete ) {
                      var i, id,
                          xhr = options.xhr();
                      xhr.open( options.type, options.url, options.async, options.username, options.password );
                      // Apply custom fields if provided
      Severity: Minor
      Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

        function tokenize( selector, parseOnly ) {
            var matched, match, tokens, type,
                soFar, groups, preFilters,
                cached = tokenCache[ selector + " " ];
        
        
        Severity: Minor
        Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

            function $httpBackend(method, url, data, callback, headers) {
              var xhr = new MockXhr(),
                  expectation = expectations[0],
                  wasExpected = false;
          
          
          Severity: Minor
          Found in bower_components/angular-mocks/angular-mocks.js - About 1 hr to fix

            Function select has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function select( selector, context, results, seed ) {
                var i, tokens, token, type, find,
                    match = tokenize( selector );
            
                if ( !seed ) {
            Severity: Minor
            Found in bower_components/jquery/jquery.js - About 1 hr to fix

              Function parse has 45 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      Date.parse = function parse(string) {
                          var match = isoDateExpression.exec(string);
                          if (match) {
                              // parse months, days, hours, minutes, seconds, and milliseconds
                              // provide default values if necessary
              Severity: Minor
              Found in bower_components/es5-shim/es5-shim.js - About 1 hr to fix

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

                                event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
                Severity: Major
                Found in bower_components/jquery/jquery.js and 1 other location - About 1 hr to fix
                bower_components/jquery/jquery.js on lines 4773..4773

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

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

                angular.mock.dump = function(object) {
                  return serialize(object);
                
                  function serialize(object) {
                    var out;
                Severity: Minor
                Found in bower_components/angular-mocks/angular-mocks.js - About 1 hr to fix

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

                                  event.pageY = original.clientY + ( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) - ( doc && doc.clientTop  || body && body.clientTop  || 0 );
                  Severity: Major
                  Found in bower_components/jquery/jquery.js and 1 other location - About 1 hr to fix
                  bower_components/jquery/jquery.js on lines 4772..4772

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

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

                      function matcherFromTokens( tokens ) {
                          var checkContext, matcher, j,
                              len = tokens.length,
                              leadingRelative = Expr.relative[ tokens[0].type ],
                              implicitRelative = leadingRelative || Expr.relative[" "],
                      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

                        (function (definition) {
                            // RequireJS
                            if (typeof define == "function") {
                                define(definition);
                            // YUI3
                        Severity: Major
                        Found in bower_components/es5-shim/es5-sham.js and 1 other location - About 1 hr to fix
                        bower_components/es5-shim/es5-shim.js on lines 5..1216

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

                        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 (definition) {
                            // RequireJS
                            if (typeof define == "function") {
                                define(definition);
                            // YUI3
                        Severity: Major
                        Found in bower_components/es5-shim/es5-shim.js and 1 other location - About 1 hr to fix
                        bower_components/es5-shim/es5-sham.js on lines 5..444

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

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

                          WebInspector.ParsedURL = function(url)
                          {
                              this.isValid = false;
                              this.url = url;
                              this.scheme = "";
                          Severity: Minor
                          Found in js/libs/devTools.js - About 1 hr to fix

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

                            jQuery.attr = function( elem, name, value, pass ) {
                                var lowerName = name.toLowerCase(),
                                    nType = elem && elem.nodeType;
                            
                                if ( pass ) {
                            Severity: Minor
                            Found in bower_components/jquery/jquery-migrate.js - About 1 hr to fix
                              Severity
                              Category
                              Status
                              Source
                              Language