codenautas/qa-control

View on GitHub

Showing 47 of 151 total issues

Function exports has a Cognitive Complexity of 224 (exceeds 5 allowed). Consider refactoring.
Open

module.exports = function(qaControl){
    return {
        fileNameMainDoc: 'LEEME.md',
        sections: { // podria llamarse 'json-sections'...
            'run-in': {
Severity: Minor
Found in bin/0.1.4/definition.js - About 4 days 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 exports has a Cognitive Complexity of 187 (exceeds 5 allowed). Consider refactoring.
Open

module.exports = function(qaControl){
    return {
        fileNameMainDoc: 'LEEME.md',
        sections: { // podria llamarse 'json-sections'...
            'run-in': {
Severity: Minor
Found in bin/0.1.3/definition.js - About 3 days 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 exports has a Cognitive Complexity of 173 (exceeds 5 allowed). Consider refactoring.
Open

module.exports = function(qaControl){
    return {
        fileNameMainDoc: 'LEEME.md',
        sections: { // podria llamarse 'json-sections'...
            'run-in': {
Severity: Minor
Found in bin/0.0.2/definition.js - About 3 days 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 exports has a Cognitive Complexity of 171 (exceeds 5 allowed). Consider refactoring.
Open

module.exports = function(qaControl){
    return {
        fileNameMainDoc: 'LEEME.md',
        sections: { // podria llamarse 'json-sections'...
            'run-in': {
Severity: Minor
Found in bin/0.0.1/definition.js - About 3 days 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 exports has 652 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(qaControl){
    return {
        fileNameMainDoc: 'LEEME.md',
        sections: { // podria llamarse 'json-sections'...
            'run-in': {
Severity: Major
Found in bin/0.1.4/definition.js - About 3 days to fix

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

    module.exports = function(qaControl){
        return {
            fileNameMainDoc: 'LEEME.md',
            sections: { // podria llamarse 'json-sections'...
                'run-in': {
    Severity: Major
    Found in bin/0.1.3/definition.js - About 3 days to fix

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

      module.exports = function(qaControl){
          return {
              fileNameMainDoc: 'LEEME.md',
              sections: { // podria llamarse 'json-sections'...
                  'run-in': {
      Severity: Major
      Found in bin/0.0.2/definition.js - About 2 days to fix

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

        module.exports = function(qaControl){
            return {
                fileNameMainDoc: 'LEEME.md',
                sections: { // podria llamarse 'json-sections'...
                    'run-in': {
        Severity: Major
        Found in bin/0.0.1/definition.js - About 2 days to fix

          File definition.js has 662 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          "use strict";
          
          var stripBom = require("strip-bom-string");
          var semver = require("semver");
          var jsh = require('jshint');
          Severity: Major
          Found in bin/0.1.4/definition.js - About 1 day to fix

            File definition.js has 613 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            "use strict";
            
            var stripBom = require("strip-bom-string");
            var semver = require("semver");
            var jsh = require('jshint');
            Severity: Major
            Found in bin/0.1.3/definition.js - About 1 day to fix

              File definition.js has 537 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              "use strict";
              
              var stripBom = require("strip-bom-string");
              var semver = require("semver");
              var jsh = require('jshint');
              Severity: Major
              Found in bin/0.0.2/definition.js - About 1 day to fix

                File definition.js has 526 lines of code (exceeds 250 allowed). Consider refactoring.
                Open

                "use strict";
                
                var stripBom = require("strip-bom-string");
                var semver = require("semver");
                var jsh = require('jshint');
                Severity: Major
                Found in bin/0.0.1/definition.js - About 1 day to fix

                  File qa-control.js has 380 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  "use strict";
                  
                  // CMD-TOOL
                  var qaControl = {};
                  
                  Severity: Minor
                  Found in bin/qa-control.js - About 5 hrs to fix

                    File qac-init.js has 345 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    "use strict";
                    /*jshint eqnull:true */
                    /*jshint globalstrict:true */
                    /*jshint node:true */
                    /*eslint-disable no-console */
                    Severity: Minor
                    Found in bin/qac-init.js - About 4 hrs to fix

                      Function loadProject has 75 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      qaControl.loadProject = function loadProject(projectDir) {
                          var info = {projectDir:projectDir};
                          var cmsgs = qaControl.cmdMsgs[qaControl.lang];
                          if(qaControl.verbose) { process.stdout.write(cmsgs.msg_starting+projectDir+"'...\n"); }
                          return Promise.resolve().then(function(){
                      Severity: Major
                      Found in bin/qa-control.js - About 3 hrs to fix

                        Function checkLintConfig has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring.
                        Open

                        qaControl.checkLintConfig = function checkLintConfig(info, lintConfigName, warnLackOf, requiredOptions, warnIncorrect, scoring) {
                            var warns = [];
                            if(!(lintConfigName in info.packageJson)) {
                                warns.push({warning:warnLackOf, scoring:{mandatory:1}});
                            }
                        Severity: Minor
                        Found in bin/qa-control.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 init has 59 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        qacInit.init = function init(initParams) {
                            var echo = function(message) { process.stdout.write(message); }
                            if(! initParams.verbose) { echo = function() {} }
                            var inputParams;
                            var tplData = {
                        Severity: Major
                        Found in bin/qac-init.js - About 2 hrs to fix

                          Function controlInfo has 38 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                          qaControl.controlInfo=function controlInfo(info, opts){
                              var resultWarnings=[];
                              var existingWarnings={};
                              var cmsgs = qaControl.cmdMsgs[qaControl.lang];
                              var rules = qaControl.projectDefinition[info.usedDefinition].rules;
                          Severity: Minor
                          Found in bin/qa-control.js - About 1 hr to fix

                            Function warnings has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                                warnings:function(info) {
                                                    var warns=[];
                                                    var customs = qaControl.projectDefinition[info.packageVersion].customs;
                                                    function makeCheck(strOrRegexp, isMatchFunc) {
                                                        var checker;
                            Severity: Minor
                            Found in bin/0.1.3/definition.js - About 1 hr to fix

                              Function warnings has 37 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                                  warnings:function(info) {
                                                      var warns=[];
                                                      var customs = qaControl.projectDefinition[info.packageVersion].customs;
                                                      function makeCheck(strOrRegexp, isMatchFunc) {
                                                          var checker;
                              Severity: Minor
                              Found in bin/0.1.4/definition.js - About 1 hr to fix
                                Severity
                                Category
                                Status
                                Source
                                Language