ghost/admin/app/mixins/validation-engine.js
Function validate
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
validate(opts) {
let model = this;
let hasValidated,
type,
validator;
Function init
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init() {
this._super(...arguments);
this.set('errors', Errors.create());
this.set('hasValidated', emberA());