weathermen/soundstorm

View on GitHub

Showing 5,697 of 5,698 total issues

Function addOperations has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    SwaggerResource.prototype.addOperations = function(resource_path, ops, consumes, produces) {
      var method, o, op, ref, responseMessages, type, _i, _len, _results;
      if (ops) {
        _results = [];
        for (_i = 0, _len = ops.length; _i < _len; _i++) {
Severity: Minor
Found in docs/api/swagger-ui/lib/swagger.js - About 1 hr to fix

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

    var Content = function(options) {
      this.body = options.body;
      this.data = options.data;
      this.type = options.type;
    };
    Severity: Major
    Found in docs/api/swagger-ui/lib/shred/content.js and 1 other location - About 1 hr to fix
    docs/api/swagger-ui/lib/shred.bundle.js on lines 1936..1940

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

    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

    var Content = function(options) {
      this.body = options.body;
      this.data = options.data;
      this.type = options.type;
    };
    Severity: Major
    Found in docs/api/swagger-ui/lib/shred.bundle.js and 1 other location - About 1 hr to fix
    docs/api/swagger-ui/lib/shred/content.js on lines 14..18

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

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

    EventEmitter.prototype.emit = function(type) {
      // If there is no 'error' event listener then throw.
      if (type === 'error') {
        if (!this._events || !this._events.error ||
            (isArray(this._events.error) && !this._events.error.length))
    Severity: Minor
    Found in docs/api/swagger-ui/lib/shred.bundle.js - About 1 hr to fix

      Function setupParams has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        setupParams: function(paramSize, params, useRegister) {
          var options = [], contexts = [], types = [], param, inverse, program;
      
          options.push("hash:" + this.popStack());
      
      
      Severity: Minor
      Found in docs/api/swagger-ui/lib/handlebars-1.0.0.js - About 1 hr to fix

        Function build has 40 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            SwaggerApi.prototype.build = function() {
              var e, obj,
                _this = this;
              this.progress('fetching resource list: ' + this.url);
              obj = {
        Severity: Minor
        Found in docs/api/swagger-ui/lib/swagger.js - About 1 hr to fix

          Function handle has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          Response.prototype.handle = function () {
              var xhr = this.xhr;
              if (xhr.readyState === 2 && capable.status2) {
                  try {
                      this.statusCode = xhr.status;
          Severity: Minor
          Found in docs/api/swagger-ui/lib/shred.bundle.js - About 1 hr to fix

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

                  for (_i = 0, _len = _ref1.length; _i < _len; _i++) {
                    model = _ref1[_i];
                    _results.push(model.setReferencedModels(this.models));
                  }
            Severity: Major
            Found in docs/api/swagger-ui/lib/swagger.js and 1 other location - About 1 hr to fix
            docs/api/swagger-ui/lib/swagger.js on lines 374..377

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

            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

                    for (_i = 0, _len = _ref.length; _i < _len; _i++) {
                      model = _ref[_i];
                      _results.push(model.setReferencedModels(this.models));
                    }
            Severity: Major
            Found in docs/api/swagger-ui/lib/swagger.js and 1 other location - About 1 hr to fix
            docs/api/swagger-ui/lib/swagger.js on lines 232..235

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

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

              createFunctionContext: function(asObject) {
                var locals = this.stackVars.concat(this.registers.list);
            
                if(locals.length > 0) {
                  this.source[1] = this.source[1] + ", " + locals.join(", ");
            Severity: Minor
            Found in docs/api/swagger-ui/lib/handlebars-1.0.0.js - About 1 hr to fix

              Function parse has 38 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              Cookie.prototype.parse = function parse(str) {
                if(this instanceof Cookie) {
                    var parts=str.split(";")
                    , pair=parts[0].match(/([^=]+)=((?:.|\n)*)/)
                    , key=pair[1]
              Severity: Minor
              Found in docs/api/swagger-ui/lib/shred.bundle.js - About 1 hr to fix

                Function singlebyte has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                        singlebyte: function(options) {
                            // Prepare chars if needed
                            if (!options.chars || (options.chars.length !== 128 && options.chars.length !== 256))
                                throw new Error("Encoding '"+options.type+"' has incorrect 'chars' (must be of len 128 or 256)");
                            
                Severity: Minor
                Found in docs/api/swagger-ui/lib/shred.bundle.js - About 1 hr to fix

                  Function SwaggerOperation has 11 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      function SwaggerOperation(nickname, path, method, parameters, summary, notes, type, responseMessages, resource, consumes, produces) {
                  Severity: Major
                  Found in docs/api/swagger-ui/lib/swagger.js - About 1 hr to fix

                    Function xhrHttp has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    var xhrHttp = (function () {
                        if (typeof window === 'undefined') {
                            throw new Error('no window object present');
                        }
                        else if (window.XMLHttpRequest) {
                    Severity: Minor
                    Found in docs/api/swagger-ui/lib/shred.bundle.js - About 1 hr to fix

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

                        stack1 = helpers['if'].call(depth0, depth0.responseMessages, {hash:{},inverse:self.noop,fn:self.program(7, program7, data),data:data});
                      Severity: Major
                      Found in docs/api/swagger-ui/swagger-ui.js and 6 other locations - About 1 hr to fix
                      docs/api/swagger-ui/swagger-ui.js on lines 296..296
                      docs/api/swagger-ui/swagger-ui.js on lines 303..303
                      docs/api/swagger-ui/swagger-ui.js on lines 455..455
                      docs/api/swagger-ui/swagger-ui.js on lines 458..458
                      docs/api/swagger-ui/swagger-ui.js on lines 461..461
                      docs/api/swagger-ui/swagger-ui.js on lines 690..690

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

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

                        stack1 = helpers['if'].call(depth0, depth0.allowMultiple, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
                      Severity: Major
                      Found in docs/api/swagger-ui/swagger-ui.js and 6 other locations - About 1 hr to fix
                      docs/api/swagger-ui/swagger-ui.js on lines 296..296
                      docs/api/swagger-ui/swagger-ui.js on lines 303..303
                      docs/api/swagger-ui/swagger-ui.js on lines 455..455
                      docs/api/swagger-ui/swagger-ui.js on lines 458..458
                      docs/api/swagger-ui/swagger-ui.js on lines 461..461
                      docs/api/swagger-ui/swagger-ui.js on lines 464..464

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

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

                        stack1 = helpers['if'].call(depth0, depth0.info, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
                      Severity: Major
                      Found in docs/api/swagger-ui/swagger-ui.js and 6 other locations - About 1 hr to fix
                      docs/api/swagger-ui/swagger-ui.js on lines 303..303
                      docs/api/swagger-ui/swagger-ui.js on lines 455..455
                      docs/api/swagger-ui/swagger-ui.js on lines 458..458
                      docs/api/swagger-ui/swagger-ui.js on lines 461..461
                      docs/api/swagger-ui/swagger-ui.js on lines 464..464
                      docs/api/swagger-ui/swagger-ui.js on lines 690..690

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

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

                        stack1 = helpers['if'].call(depth0, depth0.notes, {hash:{},inverse:self.noop,fn:self.program(1, program1, data),data:data});
                      Severity: Major
                      Found in docs/api/swagger-ui/swagger-ui.js and 6 other locations - About 1 hr to fix
                      docs/api/swagger-ui/swagger-ui.js on lines 296..296
                      docs/api/swagger-ui/swagger-ui.js on lines 303..303
                      docs/api/swagger-ui/swagger-ui.js on lines 458..458
                      docs/api/swagger-ui/swagger-ui.js on lines 461..461
                      docs/api/swagger-ui/swagger-ui.js on lines 464..464
                      docs/api/swagger-ui/swagger-ui.js on lines 690..690

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

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

                        stack1 = helpers['if'].call(depth0, depth0.type, {hash:{},inverse:self.noop,fn:self.program(3, program3, data),data:data});
                      Severity: Major
                      Found in docs/api/swagger-ui/swagger-ui.js and 6 other locations - About 1 hr to fix
                      docs/api/swagger-ui/swagger-ui.js on lines 296..296
                      docs/api/swagger-ui/swagger-ui.js on lines 303..303
                      docs/api/swagger-ui/swagger-ui.js on lines 455..455
                      docs/api/swagger-ui/swagger-ui.js on lines 461..461
                      docs/api/swagger-ui/swagger-ui.js on lines 464..464
                      docs/api/swagger-ui/swagger-ui.js on lines 690..690

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

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

                        stack1 = helpers['if'].call(depth0, depth0.parameters, {hash:{},inverse:self.noop,fn:self.program(5, program5, data),data:data});
                      Severity: Major
                      Found in docs/api/swagger-ui/swagger-ui.js and 6 other locations - About 1 hr to fix
                      docs/api/swagger-ui/swagger-ui.js on lines 296..296
                      docs/api/swagger-ui/swagger-ui.js on lines 303..303
                      docs/api/swagger-ui/swagger-ui.js on lines 455..455
                      docs/api/swagger-ui/swagger-ui.js on lines 458..458
                      docs/api/swagger-ui/swagger-ui.js on lines 464..464
                      docs/api/swagger-ui/swagger-ui.js on lines 690..690

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

                      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