yoctore/yoctopus-generator

View on GitHub

Showing 44 of 179 total issues

File index.js has 909 lines of code (exceeds 250 allowed). Consider refactoring.
Open

'use strict';

// tricks for hinter
var jsbeautyKey     = 'js_beautify';
// dependencies
Severity: Major
Found in app/index.js - About 2 days to fix

    File index copie.js has 892 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    'use strict';
    
    // tricks for hinter
    var jsbeautyKey     = 'js_beautify';
    // dependencies
    Severity: Major
    Found in app/index copie.js - About 2 days to fix

      Function constructor has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
      Open

        constructor   :  function () {
          // Calling the super constructor is important so our generator is correctly set up
          generators.Base.apply(this, arguments);
          /**
           * Current grunt file editor. we dont use yeaoman generator beacuse
      Severity: Minor
      Found in app/index.js - About 4 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function constructor has a Cognitive Complexity of 33 (exceeds 5 allowed). Consider refactoring.
      Open

        constructor   :  function () {
          // Calling the super constructor is important so our generator is correctly set up
          generators.Base.apply(this, arguments);
          /**
           * Current grunt file editor. we dont use yeaoman generator beacuse
      Severity: Minor
      Found in app/index copie.js - About 4 hrs to fix

      Cognitive Complexity

      Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

      A method's cognitive complexity is based on a few simple rules:

      • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
      • Code is considered more complex for each "break in the linear flow of the code"
      • Code is considered more complex when "flow breaking structures are nested"

      Further reading

      Function constructor has 121 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        constructor   :  function () {
          // Calling the super constructor is important so our generator is correctly set up
          generators.Base.apply(this, arguments);
          /**
           * Current grunt file editor. we dont use yeaoman generator beacuse
      Severity: Major
      Found in app/index.js - About 4 hrs to fix

        Function bowerBasePackage has 104 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            bowerBasePackage                  : function () {
              // process node package ?
              if (this.cfg.generate.angular) {
                // banner message
                this.banner('Now tell us some informations about your AngularJS configuration.');
        Severity: Major
        Found in app/index.js - About 4 hrs to fix

          Function bowerBasePackage has 103 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              bowerBasePackage                  : function () {
                // process node package ?
                if (this.cfg.generate.angular) {
                  // banner message
                  this.banner('Now tell us some informations about your AngularJS configuration.');
          Severity: Major
          Found in app/index copie.js - About 4 hrs to fix

            Function constructor has 100 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

              constructor   :  function () {
                // Calling the super constructor is important so our generator is correctly set up
                generators.Base.apply(this, arguments);
                /**
                 * Current grunt file editor. we dont use yeaoman generator beacuse
            Severity: Major
            Found in app/index copie.js - About 4 hrs to fix

              File _services.js has 326 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              'use strict';
              
              /**
               * A Logger utility service
               *
              Severity: Minor
              Found in app/templates/applications/angular/_services.js - About 3 hrs to fix

                Function nodeBasePackage has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    nodeBasePackage                   : function () {
                      // process node package ?
                      if (this.cfg.generate.node) {
                        // banner message
                        this.banner('Now tell us some informations about your NodeJs configuration.');
                Severity: Major
                Found in app/index.js - About 3 hrs to fix

                  Function nodeBasePackage has 90 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      nodeBasePackage                   : function () {
                        // process node package ?
                        if (this.cfg.generate.node) {
                          // banner message
                          this.banner('Now tell us some informations about your NodeJs configuration.');
                  Severity: Major
                  Found in app/index copie.js - About 3 hrs to fix

                    Function generateGruntFile has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        generateGruntFile   : function () {
                          // create async process
                          var done = this.async();
                          // default config array
                          var list = {};
                    Severity: Major
                    Found in app/index.js - About 3 hrs to fix

                      Function generateGruntFile has 88 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          generateGruntFile   : function () {
                            // create async process
                            var done = this.async();
                            // default config array
                            var list = {};
                      Severity: Major
                      Found in app/index copie.js - About 3 hrs to fix

                        Function packages has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                        Open

                            packages : function () {
                              // banner message
                              this.banner('We will install needed packages');
                              // process install for each type
                              _.each([ 'node', 'angular'], function (type) {
                        Severity: Minor
                        Found in app/index.js - About 3 hrs to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Function packages has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
                        Open

                            packages : function () {
                              // banner message
                              this.banner('We will install needed packages');
                              // process install for each type
                              _.each([ 'node', 'angular'], function (type) {
                        Severity: Minor
                        Found in app/index copie.js - About 3 hrs to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Function nodeBasePackage has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                        Open

                            nodeBasePackage                   : function () {
                              // process node package ?
                              if (this.cfg.generate.node) {
                                // banner message
                                this.banner('Now tell us some informations about your NodeJs configuration.');
                        Severity: Minor
                        Found in app/index.js - About 2 hrs to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Function nodeBasePackage has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                        Open

                            nodeBasePackage                   : function () {
                              // process node package ?
                              if (this.cfg.generate.node) {
                                // banner message
                                this.banner('Now tell us some informations about your NodeJs configuration.');
                        Severity: Minor
                        Found in app/index copie.js - About 2 hrs to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Function bowerBasePackage has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                        Open

                            bowerBasePackage                  : function () {
                              // process node package ?
                              if (this.cfg.generate.angular) {
                                // banner message
                                this.banner('Now tell us some informations about your AngularJS configuration.');
                        Severity: Minor
                        Found in app/index copie.js - About 2 hrs to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Function bowerBasePackage has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring.
                        Open

                            bowerBasePackage                  : function () {
                              // process node package ?
                              if (this.cfg.generate.angular) {
                                // banner message
                                this.banner('Now tell us some informations about your AngularJS configuration.');
                        Severity: Minor
                        Found in app/index.js - About 2 hrs to fix

                        Cognitive Complexity

                        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                        A method's cognitive complexity is based on a few simple rules:

                        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                        • Code is considered more complex for each "break in the linear flow of the code"
                        • Code is considered more complex when "flow breaking structures are nested"

                        Further reading

                        Function generateTemplates has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            generateTemplates   : function () {
                              // create async process
                              var done = this.async();
                        
                              // to execute
                        Severity: Major
                        Found in app/index copie.js - About 2 hrs to fix
                          Severity
                          Category
                          Status
                          Source
                          Language