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': {
- Read upRead up
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': {
- Read upRead up
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': {
- Read upRead up
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': {
- Read upRead up
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': {
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': {
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': {
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': {
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');
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');
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');
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');
File qa-control.js
has 380 lines of code (exceeds 250 allowed). Consider refactoring. Open
"use strict";
// CMD-TOOL
var qaControl = {};
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 */
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(){
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}});
}
- Read upRead up
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 = {
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;
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;
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;