gerard2p/koaton-cli

View on GitHub
src/commands/ember.js

Summary

Maintainability
A
1 hr
Test Coverage

Consider simplifying this complex logical expression.
Open

        if ((!appName && !options.list) || (!appName && !!(options.use || options.prod || options.build || options.port))) {
            console.log('   The command cannot be run this way.\n\tkoaton ember -h\n   to see help.'.yellow);
            return res;
        } else if (appName && !utils.canAccess(ProyPath('ember', appName)) && !!(options.use || options.prod || options.build || options.port)) {
            console.log('  That ember app does not exist.');
Severity: Major
Found in src/commands/ember.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

            } else if (appName && !utils.canAccess(ProyPath('ember', appName)) && !!(options.use || options.prod || options.build || options.port)) {
                console.log('  That ember app does not exist.');
                return res;
            }
    Severity: Major
    Found in src/commands/ember.js - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status