Showing 5 of 11 total issues
Function createClass
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createClass: function(name, classAttributes) {
var _class;
_class = function(props) {
var property;
for (property in props) {
Function createClass
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createClass: function(name, args) {
var _class, property;
_class = function() {
this.name = name;
this.initialize.apply(this, arguments);
Avoid deeply nested control flow statements. Open
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
Avoid deeply nested control flow statements. Open
Open
if (validationSetting.without.exec(attrValue) !== null) {
validations.push(new ValidationError(attrName + " should meet the format requirements", {
attribute: attrName,
actual: attrValue,
expected: validationSetting.without
Avoid deeply nested control flow statements. Open
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,