weathermen/soundstorm

View on GitHub

Showing 5,697 of 5,698 total issues

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) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
Severity: Major
Found in docs/api/swagger-ui/swagger-ui.js and 1 other location - About 6 days to fix
docs/api/swagger-ui/swagger-ui.js on lines 783..849

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

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_required'] = template(function (Handlebars,depth0,helpers,partials,data) {
  this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
Severity: Major
Found in docs/api/swagger-ui/swagger-ui.js and 1 other location - About 6 days to fix
docs/api/swagger-ui/swagger-ui.js on lines 715..781

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

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

File shred.bundle.js has 2029 lines of code (exceeds 250 allowed). Consider refactoring.
Open

var require = function (file, cwd) {
    var resolved = require.resolve(file, cwd || '/');
    var mod = require.modules[resolved];
    if (!mod) throw new Error(
        'Failed to resolve module ' + file + ', tried ' + resolved
Severity: Major
Found in docs/api/swagger-ui/lib/shred.bundle.js - About 5 days to fix

    File swagger-ui.js has 1716 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 docs/api/swagger-ui/swagger-ui.js - About 4 days to fix

      File handlebars-1.0.0.js has 1714 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /*
      
      Copyright (C) 2011 by Yehuda Katz
      
      Permission is hereby granted, free of charge, to any person obtaining a copy
      Severity: Major
      Found in docs/api/swagger-ui/lib/handlebars-1.0.0.js - About 4 days to fix

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

        (function() {
          var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
        templates['response_content_type'] = template(function (Handlebars,depth0,helpers,partials,data) {
          this.compilerInfo = [4,'>= 1.0.0'];
        helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
        Severity: Major
        Found in docs/api/swagger-ui/swagger-ui.js and 2 other locations - About 3 days to fix
        docs/api/swagger-ui/swagger-ui.js on lines 185..226
        docs/api/swagger-ui/swagger-ui.js on lines 988..1029

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

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

        (function() {
          var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
        templates['parameter_content_type'] = template(function (Handlebars,depth0,helpers,partials,data) {
          this.compilerInfo = [4,'>= 1.0.0'];
        helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
        Severity: Major
        Found in docs/api/swagger-ui/swagger-ui.js and 2 other locations - About 3 days to fix
        docs/api/swagger-ui/swagger-ui.js on lines 185..226
        docs/api/swagger-ui/swagger-ui.js on lines 1098..1139

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

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

        (function() {
          var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
        templates['content_type'] = template(function (Handlebars,depth0,helpers,partials,data) {
          this.compilerInfo = [4,'>= 1.0.0'];
        helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
        Severity: Major
        Found in docs/api/swagger-ui/swagger-ui.js and 2 other locations - About 3 days to fix
        docs/api/swagger-ui/swagger-ui.js on lines 988..1029
        docs/api/swagger-ui/swagger-ui.js on lines 1098..1139

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

        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

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

        // Generated by CoffeeScript 1.6.3
        (function() {
          var ApiKeyAuthorization, PasswordAuthorization, SwaggerApi, SwaggerAuthorizations, SwaggerHttp, SwaggerModel, SwaggerModelProperty, SwaggerOperation, SwaggerRequest, SwaggerResource,
            __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
        
        
        Severity: Major
        Found in docs/api/swagger-ui/lib/swagger.js - About 2 days to fix

          Function handlebars has 459 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          var handlebars = (function(){
          var parser = {trace: function trace() { },
          yy: {},
          symbols_: {"error":2,"root":3,"program":4,"EOF":5,"simpleInverse":6,"statements":7,"statement":8,"openInverse":9,"closeBlock":10,"openBlock":11,"mustache":12,"partial":13,"CONTENT":14,"COMMENT":15,"OPEN_BLOCK":16,"inMustache":17,"CLOSE":18,"OPEN_INVERSE":19,"OPEN_ENDBLOCK":20,"path":21,"OPEN":22,"OPEN_UNESCAPED":23,"CLOSE_UNESCAPED":24,"OPEN_PARTIAL":25,"partialName":26,"params":27,"hash":28,"dataName":29,"param":30,"STRING":31,"INTEGER":32,"BOOLEAN":33,"hashSegments":34,"hashSegment":35,"ID":36,"EQUALS":37,"DATA":38,"pathSegments":39,"SEP":40,"$accept":0,"$end":1},
          terminals_: {2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"CLOSE_UNESCAPED",25:"OPEN_PARTIAL",31:"STRING",32:"INTEGER",33:"BOOLEAN",36:"ID",37:"EQUALS",38:"DATA",40:"SEP"},
          Severity: Major
          Found in docs/api/swagger-ui/lib/handlebars-1.0.0.js - About 2 days to fix

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

            var STATUS_CODES = HTTP.STATUS_CODES || {
                100 : 'Continue',
                101 : 'Switching Protocols',
                102 : 'Processing', // RFC 2518, obsoleted by RFC 4918
                200 : 'OK',
            Severity: Major
            Found in docs/api/swagger-ui/lib/shred.bundle.js and 1 other location - About 1 day to fix
            docs/api/swagger-ui/lib/shred.bundle.js on lines 2490..2543

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

            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

            http.STATUS_CODES = {
                100 : 'Continue',
                101 : 'Switching Protocols',
                102 : 'Processing', // RFC 2518, obsoleted by RFC 4918
                200 : 'OK',
            Severity: Major
            Found in docs/api/swagger-ui/lib/shred.bundle.js and 1 other location - About 1 day to fix
            docs/api/swagger-ui/lib/shred.bundle.js on lines 783..836

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

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

            require.resolve = (function () {
                return function (x, cwd) {
                    if (!cwd) cwd = '/';
                    
                    if (require._core[x]) return x;
            Severity: Minor
            Found in docs/api/swagger-ui/lib/shred.bundle.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 lexer has 235 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 docs/api/swagger-ui/lib/handlebars-1.0.0.js - About 1 day to fix

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

                ContentTypeView = (function(_super) {
                  __extends(ContentTypeView, _super);
              
                  function ContentTypeView() {
                    _ref8 = ContentTypeView.__super__.constructor.apply(this, arguments);
              Severity: Major
              Found in docs/api/swagger-ui/swagger-ui.js and 2 other locations - About 1 day to fix
              docs/api/swagger-ui/swagger-ui.js on lines 1987..2011
              docs/api/swagger-ui/swagger-ui.js on lines 2013..2037

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

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

                ResponseContentTypeView = (function(_super) {
                  __extends(ResponseContentTypeView, _super);
              
                  function ResponseContentTypeView() {
                    _ref9 = ResponseContentTypeView.__super__.constructor.apply(this, arguments);
              Severity: Major
              Found in docs/api/swagger-ui/swagger-ui.js and 2 other locations - About 1 day to fix
              docs/api/swagger-ui/swagger-ui.js on lines 1961..1985
              docs/api/swagger-ui/swagger-ui.js on lines 2013..2037

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

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

                ParameterContentTypeView = (function(_super) {
                  __extends(ParameterContentTypeView, _super);
              
                  function ParameterContentTypeView() {
                    _ref10 = ParameterContentTypeView.__super__.constructor.apply(this, arguments);
              Severity: Major
              Found in docs/api/swagger-ui/swagger-ui.js and 2 other locations - About 1 day to fix
              docs/api/swagger-ui/swagger-ui.js on lines 1961..1985
              docs/api/swagger-ui/swagger-ui.js on lines 1987..2011

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

              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

                    if (isApi) {
                      newName = response.resourcePath.replace(/\//g, '');
                      this.resourcePath = response.resourcePath;
                      res = new SwaggerResource(response, this);
                      this.apis[newName] = res;
              Severity: Major
              Found in docs/api/swagger-ui/lib/swagger.js and 1 other location - About 7 hrs to fix
              docs/api/swagger-ui/lib/swagger.js on lines 119..133

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

              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

                    if (isApi) {
                      newName = response.resourcePath.replace(/\//g, '');
                      this.resourcePath = response.resourcePath;
                      res = new SwaggerResource(response, this);
                      this.apis[newName] = res;
              Severity: Major
              Found in docs/api/swagger-ui/lib/swagger.js and 1 other location - About 7 hrs to fix
              docs/api/swagger-ui/lib/swagger.js on lines 171..185

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

              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

                processor: {
                  get: function() {
                    var processor = Content.processors[this.type];
                    if (processor) {
                      return processor;
              Severity: Major
              Found in docs/api/swagger-ui/lib/shred.bundle.js and 1 other location - About 6 hrs to fix
              docs/api/swagger-ui/lib/shred/content.js on lines 104..121

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

              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