getlackey/lackey-cms

View on GitHub
modules/core/server/models/taxonomy/generator.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function exports has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = (data) => {
    return require('./index')
        .then(Taxonomy => {

            if (typeof data === 'string') {
Severity: Minor
Found in modules/core/server/models/taxonomy/generator.js - About 1 hr to fix

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

    module.exports.parse = (data) => {
    
        if (!data.taxonomy && !data.taxonomies) {
            return Promise.resolve(null);
        }
    Severity: Minor
    Found in modules/core/server/models/taxonomy/generator.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status