Kenspeckled/oomph

View on GitHub

Showing 5 of 11 total issues

Function createClass has 34 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    createClass: function(name, classAttributes) {
      var _class;
      _class = function(props) {
        var property;
        for (property in props) {
Severity: Minor
Found in lib/oomph.js - About 1 hr to fix

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

        createClass: function(name, args) {
          var _class, property;
          _class = function() {
            this.name = name;
            this.initialize.apply(this, arguments);
    Severity: Minor
    Found in lib/index.js - About 1 hr to fix

      Avoid deeply nested control flow statements.
      Open

                  if (!(attrValue.length >= validationSetting.minimum)) {
                    validations.push(new ValidationError(attrName + " should have a minimum length of " + validationSetting.minimum, {
                      attribute: attrName,
                      actual: attrValue.length,
                      expected: validationSetting.minimum
      Severity: Major
      Found in lib/validate.js - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                    if (validationSetting.without.exec(attrValue) !== null) {
                      validations.push(new ValidationError(attrName + " should meet the format requirements", {
                        attribute: attrName,
                        actual: attrValue,
                        expected: validationSetting.without
        Severity: Major
        Found in lib/validate.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                    } else if (validationSetting.hasOwnProperty('maximum')) {
                      if (!(attrValue.length <= validationSetting.maximum)) {
                        validations.push(new ValidationError(attrName + " should have a maximum length of " + validationSetting.maximum, {
                          attribute: attrName,
                          actual: attrValue.length,
          Severity: Major
          Found in lib/validate.js - About 45 mins to fix
            Severity
            Category
            Status
            Source
            Language