Jupiterrr/Vorlesungsverzeichnis

View on GitHub

Showing 474 of 474 total issues

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

var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; desc = parent = getter = undefined; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };
Severity: Major
Found in react_renderer/build/Week.js and 3 other locations - About 1 day to fix
react_renderer/build/App.js on lines 9..9
react_renderer/build/Day.js on lines 9..9
react_renderer/build/kithub.js on lines 9..9

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

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 ColumnView has a Cognitive Complexity of 65 (exceeds 5 allowed). Consider refactoring.
Open

var ColumnView = (function() {
  "use strict";

  var keyCodes, _slice, transformPrefix;

Severity: Minor
Found in app/assets/components/column-view/all.js - About 1 day 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 dialogPolyfill has 250 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var dialogPolyfill = (function() {

  var addEventListenerFn = (window.document.addEventListener
      ? function(element, type, fn) { element.addEventListener(type, fn); }
      : function(element, type, fn) { element.attachEvent('on' + type, fn); });
Severity: Major
Found in app/assets/components/dialog-polyfill/dialog-polyfill.js - About 1 day to fix

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

      $(document).ready(function () {
    
        $.support.transition = (function () {
          var thisBody = document.body || document.documentElement
            , thisStyle = thisBody.style
    Severity: Major
    Found in app/assets/javascripts/twitter/bootstrap-modal.js and 1 other location - About 1 day to fix
    app/assets/javascripts/twitter/bootstrap-twipsy.js on lines 31..52

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

    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

      $(document).ready(function () {
    
        $.support.transition = (function () {
          var thisBody = document.body || document.documentElement
            , thisStyle = thisBody.style
    Severity: Major
    Found in app/assets/javascripts/twitter/bootstrap-twipsy.js and 1 other location - About 1 day to fix
    app/assets/javascripts/twitter/bootstrap-modal.js on lines 29..50

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

    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

            switch (placement) {
              case 'bottom':
                tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
                break
              case 'top':
    Severity: Major
    Found in app/assets/components/bootstrap-css/js/bootstrap.js and 1 other location - About 1 day to fix
    app/assets/javascripts/twitter/bootstrap-tooltip.js on lines 131..144

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

    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

            switch (inside ? placement.split(' ')[1] : placement) {
              case 'bottom':
                tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2}
                break
              case 'top':
    Severity: Major
    Found in app/assets/javascripts/twitter/bootstrap-tooltip.js and 1 other location - About 1 day to fix
    app/assets/components/bootstrap-css/js/bootstrap.js on lines 1193..1206

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

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

            ajax: function( url, options ) {
    
                    // If url is an object, simulate pre-1.5 signature
                    if ( typeof url === "object" ) {
                            options = url;
    Severity: Major
    Found in app/assets/components/jquery/jquery.js - About 1 day to fix

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

      function weekMapper(d) {
        function getMonday(d) {
          var d = new Date(d),
              day = d.getDay(),
              diff = d.getDate() - day + (day == 0 ? -6 : 1); // adjust when day is sunday
      Severity: Major
      Found in react_renderer/build/kithub.js and 1 other location - About 1 day to fix
      react_renderer/scripts/kithub.js on lines 17..32

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

      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 weekMapper(d) {
        function getMonday(d) {
          var d = new Date(d),
          day = d.getDay(),
          diff = d.getDate() - day + (day == 0 ? -6:1); // adjust when day is sunday
      Severity: Major
      Found in react_renderer/scripts/kithub.js and 1 other location - About 1 day to fix
      react_renderer/build/kithub.js on lines 42..58

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

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

      var lexer = (function(){
      var lexer = ({EOF:1,
      parseError:function parseError(str, hash) {
              if (this.yy.parser) {
                  this.yy.parser.parseError(str, hash);
      Severity: Major
      Found in public/api/lib/handlebars-1.0.rc.1.js - About 1 day to fix

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

          , leave: function (e) {
              var self = $(e.currentTarget)[this.type](this._options).data(this.type)
        
              if (this.timeout) clearTimeout(this.timeout)
              if (!self.options.delay || !self.options.delay.hide) return self.hide()
        Severity: Major
        Found in app/assets/javascripts/twitter/bootstrap-tooltip.js and 1 other location - About 7 hrs to fix
        app/assets/components/bootstrap-css/js/bootstrap.js on lines 1147..1157

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

        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

          , leave: function (e) {
              var self = $(e.currentTarget)[this.type](this._options).data(this.type)
        
              if (this.timeout) clearTimeout(this.timeout)
              if (!self.options.delay || !self.options.delay.hide) return self.hide()
        Severity: Major
        Found in app/assets/components/bootstrap-css/js/bootstrap.js and 1 other location - About 7 hrs to fix
        app/assets/javascripts/twitter/bootstrap-tooltip.js on lines 86..96

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

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

        function program3(depth0,data) {
          
          var buffer = "", stack1, stack2;
          buffer += "\n            ";
          foundHelper = helpers.defaultValue;
        Severity: Major
        Found in public/api/swagger-ui.js and 8 other locations - About 7 hrs to fix
        public/api/swagger-ui.js on lines 486..500
        public/api/swagger-ui.js on lines 512..526
        public/api/swagger-ui.js on lines 554..568
        public/api/swagger-ui.js on lines 657..671
        public/api/swagger-ui.js on lines 867..881
        public/api/swagger-ui.js on lines 893..907
        public/api/swagger-ui.js on lines 935..949
        public/api/swagger-ui.js on lines 961..975

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

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

        function program12(depth0,data) {
          
          var buffer = "", stack1, stack2;
          buffer += "\n            ";
          foundHelper = helpers.defaultValue;
        Severity: Major
        Found in public/api/swagger-ui.js and 8 other locations - About 7 hrs to fix
        public/api/swagger-ui.js on lines 486..500
        public/api/swagger-ui.js on lines 512..526
        public/api/swagger-ui.js on lines 554..568
        public/api/swagger-ui.js on lines 632..646
        public/api/swagger-ui.js on lines 657..671
        public/api/swagger-ui.js on lines 867..881
        public/api/swagger-ui.js on lines 893..907
        public/api/swagger-ui.js on lines 935..949

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

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

        function program9(depth0,data) {
          
          var buffer = "", stack1, stack2;
          buffer += "\n        ";
          foundHelper = helpers.isFile;
        Severity: Major
        Found in public/api/swagger-ui.js and 8 other locations - About 7 hrs to fix
        public/api/swagger-ui.js on lines 486..500
        public/api/swagger-ui.js on lines 512..526
        public/api/swagger-ui.js on lines 554..568
        public/api/swagger-ui.js on lines 632..646
        public/api/swagger-ui.js on lines 657..671
        public/api/swagger-ui.js on lines 867..881
        public/api/swagger-ui.js on lines 893..907
        public/api/swagger-ui.js on lines 961..975

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

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

        function program9(depth0,data) {
          
          var buffer = "", stack1, stack2;
          buffer += "\n        ";
          foundHelper = helpers.defaultValue;
        Severity: Major
        Found in public/api/swagger-ui.js and 8 other locations - About 7 hrs to fix
        public/api/swagger-ui.js on lines 486..500
        public/api/swagger-ui.js on lines 512..526
        public/api/swagger-ui.js on lines 632..646
        public/api/swagger-ui.js on lines 657..671
        public/api/swagger-ui.js on lines 867..881
        public/api/swagger-ui.js on lines 893..907
        public/api/swagger-ui.js on lines 935..949
        public/api/swagger-ui.js on lines 961..975

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

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

        function program1(depth0,data) {
          
          var buffer = "", stack1, stack2;
          buffer += "\n        ";
          foundHelper = helpers.isFile;
        Severity: Major
        Found in public/api/swagger-ui.js and 8 other locations - About 7 hrs to fix
        public/api/swagger-ui.js on lines 512..526
        public/api/swagger-ui.js on lines 554..568
        public/api/swagger-ui.js on lines 632..646
        public/api/swagger-ui.js on lines 657..671
        public/api/swagger-ui.js on lines 867..881
        public/api/swagger-ui.js on lines 893..907
        public/api/swagger-ui.js on lines 935..949
        public/api/swagger-ui.js on lines 961..975

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

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

        function program4(depth0,data) {
          
          var buffer = "", stack1, stack2;
          buffer += "\n            ";
          foundHelper = helpers.defaultValue;
        Severity: Major
        Found in public/api/swagger-ui.js and 8 other locations - About 7 hrs to fix
        public/api/swagger-ui.js on lines 486..500
        public/api/swagger-ui.js on lines 512..526
        public/api/swagger-ui.js on lines 554..568
        public/api/swagger-ui.js on lines 632..646
        public/api/swagger-ui.js on lines 657..671
        public/api/swagger-ui.js on lines 867..881
        public/api/swagger-ui.js on lines 935..949
        public/api/swagger-ui.js on lines 961..975

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

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

        function program1(depth0,data) {
          
          var buffer = "", stack1, stack2;
          buffer += "\n        ";
          foundHelper = helpers.isFile;
        Severity: Major
        Found in public/api/swagger-ui.js and 8 other locations - About 7 hrs to fix
        public/api/swagger-ui.js on lines 486..500
        public/api/swagger-ui.js on lines 512..526
        public/api/swagger-ui.js on lines 554..568
        public/api/swagger-ui.js on lines 632..646
        public/api/swagger-ui.js on lines 657..671
        public/api/swagger-ui.js on lines 893..907
        public/api/swagger-ui.js on lines 935..949
        public/api/swagger-ui.js on lines 961..975

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

        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