Showing 152 of 152 total issues
Function exec
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.exec = function(settings, registry) {
'use strict';
exports.outlineTemplate = moboUtil.loadTemplate(exports, 'outline.wikitext', settings);
Function upgradeChangedProperties
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
exports.upgradeChangedProperties = function(obj, modelPartName) {
var messages = {}; // A message Set, that contains each message only once, the value beeing the counter
- 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 generateTemplate
has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring. Open
exports.generateTemplate = function(settings, obj, name, registry) {
'use strict';
// If this is an abstract model, don't create a template for it
if (obj.$abstract) {
- 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 drilldownInfo
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.drilldownInfo = function(obj, registry) {
var drilldowninfo = [];
var fieldName;
var field;
Function exec
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.exec = function(settings, jobs) {
'use strict';
var i = 0;
Function postProcessing
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
exports.postProcessing = function(modelPart) {
'use strict';
for (var key in modelPart) {
- 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 install
has a Cognitive Complexity of 16 (exceeds 5 allowed). Consider refactoring. Open
exports.install = function(name, customDirectory) {
'use strict';
var fs = require('fs-extra');
var cwd = customDirectory || process.cwd();
- 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 exec
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.exec = function(settings, dirName) {
'use strict';
exports.uploadMap = {};
Function exec
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.exec = function(customSettings) {
'use strict';
/** The projects custom settings.yaml */
Function generateTemplateData
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.generateTemplateData = function(obj) {
'use strict';
var templateData = {};
Function gefxExport
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.gefxExport = function(nodes, edges) {
'use strict';
var node;
var edge;
Function upgradeChangedProperties
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.upgradeChangedProperties = function(obj, modelPartName) {
var messages = {}; // A message Set, that contains each message only once, the value beeing the counter
Function validateExpandedRegistry
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.validateExpandedRegistry = function(registry) {
'use strict';
return new Promise(function(resolve) {
Function analyzeType
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.analyzeType = function(obj) {
'use strict';
// Analyze the attribute type.
var inspect = obj.items || obj;
Function generateCategory
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.generateCategory = function(settings, obj, name, registry) {
// If smw_category is set to false, don't create a category
if (obj.smw_category === false) {
return false;
Function calculateSpecificsStatistics
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
exports.calculateSpecificsStatistics = function(registry) {
var moboSchema = require('./../schema/moboSchema');
var schema = moboSchema.formSchema.properties;
- 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 validate
has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring. Open
exports.validate = function(objCollection, registry) {
var errors = 0;
for (var i = 0; i < objCollection.length; i++) {
- 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 calculateSpecificsStatistics
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.calculateSpecificsStatistics = function(registry) {
var moboSchema = require('./../schema/moboSchema');
var schema = moboSchema.formSchema.properties;
Function generateTemplate
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.generateTemplate = function(settings, obj, name, registry) {
'use strict';
// If this is an abstract model, don't create a template for it
if (obj.$abstract) {
Function install
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
exports.install = function(name, customDirectory) {
'use strict';
var fs = require('fs-extra');
var cwd = customDirectory || process.cwd();