adoyle-h/Ero.js

View on GitHub
src/ero.js

Summary

Maintainability
A
1 hr
Test Coverage

Function defineErrorClass has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Ero.prototype.defineErrorClass = function(definition, name) {
    var ero = this;
    if (!ero.template) {
        throw new Error('The error template should be defined firstly!');
    }
Severity: Minor
Found in src/ero.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status