C0ZEN/generator-cozen-angular

View on GitHub

Showing 5 of 1,336 total issues

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

        static onSuccess($that, $response, $deferred) {
            $that.edit = $response.edit;
            $that.config.set('edit', $that.edit);
            $that.log();

Severity: Minor
Found in generators/app/inputs/edit.js - About 1 hr to fix

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

    module.exports = $that => {
        _.forEach(globalProviders, $provider => {
            utils.copyFileTpl($that, 'app/config/providers/' + $provider + 'Provider.config.txt', {
                appNameKebab  : $that.appNameKebab,
                appNameCamel  : $that.appNameCamel,
Severity: Minor
Found in generators/app/writing/providers.js - About 1 hr to fix

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

    module.exports = $that => {
        utils.copyFileTpl($that, 'app/config/tpls/index.tpl.pug', {
            appNameCamel  : $that.appNameCamel,
            lang          : $that.lang,
            appNameKebab  : $that.appNameKebab,
Severity: Minor
Found in generators/app/writing/tpls.js - About 1 hr to fix

Function onSuccess has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        static onSuccess($that, $response, $deferred) {
            $that.edit = $response.edit;
            $that.config.set('edit', $that.edit);
            $that.log();

Severity: Minor
Found in generators/directive/inputs/edit.js - About 1 hr to fix

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

    module.exports = $that => {
        utils.copyFileTplWithMultipleDestinations(
            $that,
            'app/styles/less/app.txt',
            {
Severity: Minor
Found in generators/app/writing/styles.js - About 1 hr to fix
Severity
Category
Status
Source
Language