Jupiterrr/Vorlesungsverzeichnis

View on GitHub
public/api/swagger-ui.js

Summary

Maintainability
F
3 wks
Test Coverage

File swagger-ui.js has 1625 lines of code (exceeds 250 allowed). Consider refactoring.
Open

$(function() {

    // Helper function for vertically aligning DOM elements
    // http://www.seodenver.com/simple-vertical-align-plugin-for-jquery/
    $.fn.vAlign = function() {
Severity: Major
Found in public/api/swagger-ui.js - About 4 days to fix

    Function submitOperation has 94 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        OperationView.prototype.submitOperation = function(e) {
          var bodyParam, error_free, form, headerParams, invocationUrl, isFileUpload, map, o, obj, param, paramContentTypeField, responseContentTypeField, _i, _j, _k, _len, _len1, _len2, _ref, _ref1, _ref2,
            _this = this;
          if (e != null) {
            e.preventDefault();
    Severity: Major
    Found in public/api/swagger-ui.js - About 3 hrs to fix

      Function formatXml has 70 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          OperationView.prototype.formatXml = function(xml) {
            var contexp, formatted, indent, lastType, lines, ln, pad, reg, transitions, wsexp, _fn, _i, _len;
            reg = /(>)(<)(\/*)/g;
            wsexp = /[ ]*(.*)[ ]+\n/g;
            contexp = /(<.+>)(.+\n)/g;
      Severity: Major
      Found in public/api/swagger-ui.js - About 2 hrs to fix

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

            OperationView.prototype.render = function() {
              var contentTypeModel, contentTypeView, isMethodSubmissionSupported, param, responseSignatureView, signatureModel, statusCode, _i, _j, _len, _len1, _ref, _ref1;
              isMethodSubmissionSupported = jQuery.inArray(this.model.httpMethod, this.model.supportedSubmitMethods()) >= 0;
              if (!isMethodSubmissionSupported) {
                this.model.isReadOnly = true;
        Severity: Minor
        Found in public/api/swagger-ui.js - About 1 hr to fix

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

              ParameterView.prototype.render = function() {
                var contentTypeModel, contentTypeView, signatureModel, signatureView, template;
                if (this.model.paramType === 'body') {
                  this.model.isBody = true;
                }
          Severity: Minor
          Found in public/api/swagger-ui.js - About 1 hr to fix

            Function initialize has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                SwaggerUi.prototype.initialize = function(options) {
                  var _this = this;
                  if (options == null) {
                    options = {};
                  }
            Severity: Minor
            Found in public/api/swagger-ui.js - About 1 hr to fix

              Avoid too many return statements within this function.
              Open

                          return Handlebars.templates.param;
              Severity: Major
              Found in public/api/swagger-ui.js - About 30 mins to fix

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

                (function() {
                  var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
                templates['param_readonly_required'] = template(function (Handlebars,depth0,helpers,partials,data) {
                  helpers = helpers || Handlebars.helpers;
                  var buffer = "", stack1, stack2, foundHelper, tmp1, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;
                Severity: Major
                Found in public/api/swagger-ui.js and 1 other location - About 5 days to fix
                public/api/swagger-ui.js on lines 745..801

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

                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() {
                  var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
                templates['param_readonly'] = template(function (Handlebars,depth0,helpers,partials,data) {
                  helpers = helpers || Handlebars.helpers;
                  var buffer = "", stack1, stack2, foundHelper, tmp1, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;
                Severity: Major
                Found in public/api/swagger-ui.js and 1 other location - About 5 days to fix
                public/api/swagger-ui.js on lines 803..859

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

                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

                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 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 program8(depth0,data) {
                  
                  var buffer = "", stack1, stack2;
                  buffer += "\n            ";
                  foundHelper = helpers.isDefault;
                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 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 2 locations. Consider refactoring.
                Open

                    SignatureView.prototype.switchToSnippet = function(e) {
                      if (e != null) {
                        e.preventDefault();
                      }
                      $(".description", $(this.el)).hide();
                Severity: Major
                Found in public/api/swagger-ui.js and 1 other location - About 5 hrs to fix
                public/api/swagger-ui.js on lines 1830..1838

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

                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

                    SignatureView.prototype.switchToDescription = function(e) {
                      if (e != null) {
                        e.preventDefault();
                      }
                      $(".snippet", $(this.el)).hide();
                Severity: Major
                Found in public/api/swagger-ui.js and 1 other location - About 5 hrs to fix
                public/api/swagger-ui.js on lines 1840..1848

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

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

                      for (_i = 0, _len = _ref.length; _i < _len; _i++) {
                        resource = _ref[_i];
                        this.addResource(resource);
                      }
                Severity: Major
                Found in public/api/swagger-ui.js and 3 other locations - About 55 mins to fix
                public/api/swagger-ui.js on lines 1377..1380
                public/api/swagger-ui.js on lines 1447..1450
                public/api/swagger-ui.js on lines 1452..1455

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

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

                      for (_i = 0, _len = _ref.length; _i < _len; _i++) {
                        operation = _ref[_i];
                        this.addOperation(operation);
                      }
                Severity: Major
                Found in public/api/swagger-ui.js and 3 other locations - About 55 mins to fix
                public/api/swagger-ui.js on lines 1336..1339
                public/api/swagger-ui.js on lines 1447..1450
                public/api/swagger-ui.js on lines 1452..1455

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

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

                      for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) {
                        statusCode = _ref1[_j];
                        this.addStatusCode(statusCode);
                      }
                Severity: Major
                Found in public/api/swagger-ui.js and 3 other locations - About 55 mins to fix
                public/api/swagger-ui.js on lines 1336..1339
                public/api/swagger-ui.js on lines 1377..1380
                public/api/swagger-ui.js on lines 1447..1450

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

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

                      for (_i = 0, _len = _ref.length; _i < _len; _i++) {
                        param = _ref[_i];
                        this.addParameter(param);
                      }
                Severity: Major
                Found in public/api/swagger-ui.js and 3 other locations - About 55 mins to fix
                public/api/swagger-ui.js on lines 1336..1339
                public/api/swagger-ui.js on lines 1377..1380
                public/api/swagger-ui.js on lines 1452..1455

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

                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

                        $('li#resource_' + Docs.escapeResourceName(resource) + ' li.operation div.content').each(function() {
                            Docs.collapseOperation($(this));
                        });
                Severity: Minor
                Found in public/api/swagger-ui.js and 1 other location - About 50 mins to fix
                public/api/swagger-ui.js on lines 158..160

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

                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

                        $('li#resource_' + Docs.escapeResourceName(resource) + ' li.operation div.content').each(function() {
                            Docs.expandOperation($(this));
                        });
                Severity: Minor
                Found in public/api/swagger-ui.js and 1 other location - About 50 mins to fix
                public/api/swagger-ui.js on lines 167..169

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

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

                  var buffer = "", stack1, foundHelper, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;
                Severity: Minor
                Found in public/api/swagger-ui.js and 2 other locations - About 40 mins to fix
                public/api/swagger-ui.js on lines 1032..1032
                public/api/swagger-ui.js on lines 1115..1115

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

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

                  var buffer = "", stack1, foundHelper, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;
                Severity: Minor
                Found in public/api/swagger-ui.js and 2 other locations - About 40 mins to fix
                public/api/swagger-ui.js on lines 1032..1032
                public/api/swagger-ui.js on lines 1093..1093

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

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

                  var buffer = "", stack1, foundHelper, self=this, functionType="function", helperMissing=helpers.helperMissing, undef=void 0, escapeExpression=this.escapeExpression;
                Severity: Minor
                Found in public/api/swagger-ui.js and 2 other locations - About 40 mins to fix
                public/api/swagger-ui.js on lines 1093..1093
                public/api/swagger-ui.js on lines 1115..1115

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

                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