ericduran/chromeHAR

View on GitHub

Showing 463 of 463 total issues

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

        when: function( subordinate /* , ..., subordinateN */ ) {
            var i = 0,
                resolveValues = core_slice.call( arguments ),
                length = resolveValues.length,
    
    
    Severity: Minor
    Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

          Object.defineProperty = function defineProperty(object, property, descriptor) {
              if ((typeof object != "object" && typeof object != "function") || object === null) {
                  throw new TypeError(ERR_NON_OBJECT_TARGET + object);
              }
              if ((typeof descriptor != "object" && typeof descriptor != "function") || descriptor === null) {
      Severity: Minor
      Found in bower_components/es5-shim/es5-sham.js - About 1 hr to fix

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

        fs.readFile(path.join(__dirname, "lib", "json3.js"), "utf8", function readSource(exception, source) {
          var error, output, compiler, results;
          if (exception) {
            console.log(exception);
          } else {
        Severity: Minor
        Found in bower_components/json3/build.js - About 1 hr to fix

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

            function setPrintSupport(ownerDocument) {
              var printSheet,
                  wrappers,
                  cache = getCache(ownerDocument),
                  namespaces = ownerDocument.namespaces,
          Severity: Minor
          Found in bower_components/json3/benchmark/assets/html5.js - About 1 hr to fix

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

                  function push() {
                    var name,
                        value,
                        browserCookies,
                        updated;
            Severity: Minor
            Found in bower_components/angular-cookies/angular-cookies.js - About 1 hr to fix

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

                var render = ui.render = function render(index) {
                  var iterable;
                  if (index == null) {
                    index = 0;
                    iterable = ui.benchmarks;
              Severity: Minor
              Found in bower_components/json3/benchmark/assets/ui.js - About 1 hr to fix

                Function ParsedURL has a Cognitive Complexity of 12 (exceeds 5 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

                Cognitive Complexity

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

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

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

                Further reading

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

                        dispatch: function( event ) {
                    
                            // Make a writable jQuery.Event from the native event object
                            event = jQuery.event.fix( event );
                    
                    
                    Severity: Minor
                    Found in bower_components/jquery/jquery.js - About 1 hr to fix

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

                          access: function( elems, fn, key, value, chainable, emptyGet, raw ) {
                              var i = 0,
                                  length = elems.length,
                                  bulk = key == null;
                      
                      
                      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

                            getWait: function() {
                              if (this._entry.timings && this._entry.timings.wait != undefined) {
                                return this._entry.timings.wait;
                              }
                              return 0;
                        Severity: Major
                        Found in js/libs/HAREntry.js and 1 other location - About 1 hr to fix
                        js/libs/HAREntry.js on lines 130..135

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

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

                        angular.mock.$LogProvider = function() {
                        
                          function concat(array1, array2, index) {
                            return array1.concat(Array.prototype.slice.call(array2, index));
                          }
                        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

                              getReceive: function() {
                                if (this._entry.timings && this._entry.timings.receive != undefined) {
                                  return this._entry.timings.receive;
                                }
                                return 0;
                          Severity: Major
                          Found in js/libs/HAREntry.js and 1 other location - About 1 hr to fix
                          js/libs/HAREntry.js on lines 137..142

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

                          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 $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

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

                                  Array.prototype.reduceRight = function reduceRight(fun /*, initial*/) {
                                      var object = toObject(this),
                                          self = splitString && _toString(this) == "[object String]" ?
                                              this.split("") :
                                              object,
                              Severity: Minor
                              Found in bower_components/es5-shim/es5-shim.js - About 1 hr to fix

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

                                function MockXhr() {
                                
                                  // hack for testing $http, $httpBackend
                                  MockXhr.$$lastInstance = this;
                                
                                
                                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

                                  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

                                  Severity
                                  Category
                                  Status
                                  Source
                                  Language