macool/jquery-ecuador-id-validator

View on GitHub
lib/jasmine-1.3.1/jasmine-html.js

Summary

Maintainability
F
1 wk
Test Coverage

File jasmine-html.js has 540 lines of code (exceeds 250 allowed). Consider refactoring.
Open

jasmine.HtmlReporterHelpers = {};

jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) {
  var el = document.createElement(type);

Severity: Major
Found in lib/jasmine-1.3.1/jasmine-html.js - About 1 day to fix

    Function ReporterView has 119 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    jasmine.HtmlReporter.ReporterView = function(dom) {
      this.startedAt = new Date();
      this.runningSpecCount = 0;
      this.completeSpecCount = 0;
      this.passedCount = 0;
    Severity: Major
    Found in lib/jasmine-1.3.1/jasmine-html.js - About 4 hrs to fix

      Function ReporterView has a Cognitive Complexity of 32 (exceeds 5 allowed). Consider refactoring.
      Open

      jasmine.HtmlReporter.ReporterView = function(dom) {
        this.startedAt = new Date();
        this.runningSpecCount = 0;
        this.completeSpecCount = 0;
        this.passedCount = 0;
      Severity: Minor
      Found in lib/jasmine-1.3.1/jasmine-html.js - About 4 hrs 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 HtmlReporter has a Cognitive Complexity of 30 (exceeds 5 allowed). Consider refactoring.
      Open

      jasmine.HtmlReporter = function(_doc) {
        var self = this;
        var doc = _doc || window.document;
      
        var reporterView;
      Severity: Minor
      Found in lib/jasmine-1.3.1/jasmine-html.js - About 4 hrs 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 HtmlReporter has 107 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      jasmine.HtmlReporter = function(_doc) {
        var self = this;
        var doc = _doc || window.document;
      
        var reporterView;
      Severity: Major
      Found in lib/jasmine-1.3.1/jasmine-html.js - About 4 hrs to fix

        Function reportRunnerStarting has 49 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        jasmine.TrivialReporter.prototype.reportRunnerStarting = function(runner) {
          var showPassed, showSkipped;
        
          this.outerDiv = this.createDom('div', { id: 'TrivialReporter', className: 'jasmine_reporter' },
              this.createDom('div', { className: 'banner' },
        Severity: Minor
        Found in lib/jasmine-1.3.1/jasmine-html.js - About 1 hr to fix

          Function createDom has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
          Open

          jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) {
            var el = document.createElement(type);
          
            for (var i = 2; i < arguments.length; i++) {
              var child = arguments[i];
          Severity: Minor
          Found in lib/jasmine-1.3.1/jasmine-html.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 reportSpecResults has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
          Open

          jasmine.TrivialReporter.prototype.reportSpecResults = function(spec) {
            var results = spec.results();
            var status = results.passed() ? 'passed' : 'failed';
            if (results.skipped) {
              status = 'skipped';
          Severity: Minor
          Found in lib/jasmine-1.3.1/jasmine-html.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 createDom has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
          Open

          jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) {
            var el = document.createElement(type);
          
            for (var i = 2; i < arguments.length; i++) {
              var child = arguments[i];
          Severity: Minor
          Found in lib/jasmine-1.3.1/jasmine-html.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 refresh has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            this.refresh = function() {
          
              if (isUndefined(this.resultsMenu)) {
                this.createResultsMenu();
              }
          Severity: Minor
          Found in lib/jasmine-1.3.1/jasmine-html.js - About 1 hr to fix

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

            jasmine.TrivialReporter.prototype.reportSpecResults = function(spec) {
              var results = spec.results();
              var status = results.passed() ? 'passed' : 'failed';
              if (results.skipped) {
                status = 'skipped';
            Severity: Minor
            Found in lib/jasmine-1.3.1/jasmine-html.js - About 1 hr to fix

              Function reportRunnerStarting has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
              Open

              jasmine.TrivialReporter.prototype.reportRunnerStarting = function(runner) {
                var showPassed, showSkipped;
              
                this.outerDiv = this.createDom('div', { id: 'TrivialReporter', className: 'jasmine_reporter' },
                    this.createDom('div', { className: 'banner' },
              Severity: Minor
              Found in lib/jasmine-1.3.1/jasmine-html.js - About 55 mins 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 appendFailureDetail has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
              Open

              jasmine.HtmlReporter.SpecView.prototype.appendFailureDetail = function() {
                this.detail.className += ' ' + this.status();
              
                var resultItems = this.spec.results().getItems();
                var messagesDiv = this.createDom('div', { className: 'messages' });
              Severity: Minor
              Found in lib/jasmine-1.3.1/jasmine-html.js - About 45 mins 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 reportRunnerResults has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
              Open

              jasmine.TrivialReporter.prototype.reportRunnerResults = function(runner) {
                var results = runner.results();
                var className = (results.failedCount > 0) ? "runner failed" : "runner passed";
                this.runnerDiv.setAttribute("class", className);
                //do it twice for IE
              Severity: Minor
              Found in lib/jasmine-1.3.1/jasmine-html.js - About 25 mins 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

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

                for (var i = 0; i < resultItems.length; i++) {
                  var result = resultItems[i];
              
                  if (result.type == 'log') {
                    messagesDiv.appendChild(this.createDom('div', {className: 'resultMessage log'}, result.toString()));
              Severity: Major
              Found in lib/jasmine-1.3.1/jasmine-html.js and 1 other location - About 1 day to fix
              lib/jasmine-1.3.1/jasmine-html.js on lines 633..645

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

              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

                for (var i = 0; i < resultItems.length; i++) {
                  var result = resultItems[i];
              
                  if (result.type == 'log') {
                    messagesDiv.appendChild(this.createDom('div', {className: 'resultMessage log'}, result.toString()));
              Severity: Major
              Found in lib/jasmine-1.3.1/jasmine-html.js and 1 other location - About 1 day to fix
              lib/jasmine-1.3.1/jasmine-html.js on lines 448..460

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

              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

              jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) {
                var el = document.createElement(type);
              
                for (var i = 2; i < arguments.length; i++) {
                  var child = arguments[i];
              Severity: Major
              Found in lib/jasmine-1.3.1/jasmine-html.js and 1 other location - About 7 hrs to fix
              lib/jasmine-1.3.1/jasmine-html.js on lines 498..520

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

              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

              jasmine.TrivialReporter.prototype.createDom = function(type, attrs, childrenVarArgs) {
                var el = document.createElement(type);
              
                for (var i = 2; i < arguments.length; i++) {
                  var child = arguments[i];
              Severity: Major
              Found in lib/jasmine-1.3.1/jasmine-html.js and 1 other location - About 7 hrs to fix
              lib/jasmine-1.3.1/jasmine-html.js on lines 3..27

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

              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

              jasmine.TrivialReporter.prototype.log = function() {
                var console = jasmine.getGlobal().console;
                if (console && console.log) {
                  if (console.log.apply) {
                    console.log.apply(console, arguments);
              Severity: Major
              Found in lib/jasmine-1.3.1/jasmine-html.js and 1 other location - About 2 hrs to fix
              lib/jasmine-1.3.1/jasmine-html.js on lines 105..114

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

              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

                self.log = function() {
                  var console = jasmine.getGlobal().console;
                  if (console && console.log) {
                    if (console.log.apply) {
                      console.log.apply(console, arguments);
              Severity: Major
              Found in lib/jasmine-1.3.1/jasmine-html.js and 1 other location - About 2 hrs to fix
              lib/jasmine-1.3.1/jasmine-html.js on lines 654..663

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

              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

                showSkipped.onclick = function(evt) {
                  if (showSkipped.checked) {
                    self.outerDiv.className += ' show-skipped';
                  } else {
                    self.outerDiv.className = self.outerDiv.className.replace(/ show-skipped/, '');
              Severity: Major
              Found in lib/jasmine-1.3.1/jasmine-html.js and 1 other location - About 2 hrs to fix
              lib/jasmine-1.3.1/jasmine-html.js on lines 564..570

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

              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

                showPassed.onclick = function(evt) {
                  if (showPassed.checked) {
                    self.outerDiv.className += ' show-passed';
                  } else {
                    self.outerDiv.className = self.outerDiv.className.replace(/ show-passed/, '');
              Severity: Major
              Found in lib/jasmine-1.3.1/jasmine-html.js and 1 other location - About 2 hrs to fix
              lib/jasmine-1.3.1/jasmine-html.js on lines 572..578

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

              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

                for (var i = 0; i < params.length; i++) {
                  var p = params[i].split('=');
                  paramMap[decodeURIComponent(p[0])] = decodeURIComponent(p[1]);
                }
              Severity: Major
              Found in lib/jasmine-1.3.1/jasmine-html.js and 1 other location - About 1 hr to fix
              lib/jasmine-1.3.1/jasmine-html.js on lines 137..140

              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

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

                    for (var i = 0; i < params.length; i++) {
                      var p = params[i].split('=');
                      paramMap[decodeURIComponent(p[0])] = decodeURIComponent(p[1]);
                    }
              Severity: Major
              Found in lib/jasmine-1.3.1/jasmine-html.js and 1 other location - About 1 hr to fix
              lib/jasmine-1.3.1/jasmine-html.js on lines 672..675

              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 (isUndefined(this.skippedAlert)) {
                    this.skippedAlert = this.createDom('a', { href: jasmine.HtmlReporter.sectionLink(), className: "skippedAlert bar" });
                  }
              Severity: Major
              Found in lib/jasmine-1.3.1/jasmine-html.js and 1 other location - About 1 hr to fix
              lib/jasmine-1.3.1/jasmine-html.js on lines 326..328

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

              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 (isUndefined(this.passedAlert)) {
                    this.passedAlert = this.createDom('span', { href: jasmine.HtmlReporter.sectionLink(), className: "passingAlert bar" });
                  }
              Severity: Major
              Found in lib/jasmine-1.3.1/jasmine-html.js and 1 other location - About 1 hr to fix
              lib/jasmine-1.3.1/jasmine-html.js on lines 315..317

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

              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