TryGhost/Ghost

View on GitHub
ghost/admin/app/mixins/validation-engine.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function validate has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    validate(opts) {
        let model = this;
        let hasValidated,
            type,
            validator;
Severity: Minor
Found in ghost/admin/app/mixins/validation-engine.js - About 1 hr to fix

    Function init has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        init() {
            this._super(...arguments);
            this.set('errors', Errors.create());
            this.set('hasValidated', emberA());
    
    
    Severity: Minor
    Found in ghost/admin/app/mixins/validation-engine.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status