getlackey/lackey-cms

View on GitHub
modules/cms/server/controllers/index.js

Summary

Maintainability
B
5 hrs
Test Coverage

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

    .then((Activity, Role, Language, Template, Content, Serializer, JSON2YAML) => {

        return {
            viewingAs: (req, res) => {
                res.api({
Severity: Major
Found in modules/cms/server/controllers/index.js - About 3 hrs to fix

    Function iframe has 45 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                iframe: (req, res) => {
                    try {
                        let iframePath, fullIframePath, variants;
    
                        iframePath = req.originalUrl.replace(/^\/admin/, '');
    Severity: Minor
    Found in modules/cms/server/controllers/index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status