File DexcaliburProject.js
has 402 lines of code (exceeds 250 allowed). Consider refactoring. Open
var Process = require("child_process");
const _path_ = require("path");
const Fs = require("fs");
var Logger = require("./Logger.js")();
DexcaliburProject
has 32 functions (exceeds 20 allowed). Consider refactoring. Open
class DexcaliburProject
{
/**
*
Function fullscan
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
async fullscan( pPath){
let elemnt=null;
let success = false;
// scan OS/Platform
Function load
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
static load( pContext, pProjectUID, pConfigPath = null){
let project = new DexcaliburProject( pContext, pProjectUID);
let data = null;
Function synchronizePlatform
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
async synchronizePlatform( pName){
let pm = PlatformManager.getInstance(), res=false;
// select platform
switch(pName){
Function init
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
init(){
let im = InspectorManager.getInstance();
// init config
// TODO remove engine configuration
Function synchronizePlatform
has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring. Open
async synchronizePlatform( pName){
let pm = PlatformManager.getInstance(), res=false;
// select platform
switch(pName){
- 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 load
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
static load( pContext, pProjectUID, pConfigPath = null){
let project = new DexcaliburProject( pContext, pProjectUID);
let data = null;
- 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 fullscan
has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring. Open
async fullscan( pPath){
let elemnt=null;
let success = false;
// scan OS/Platform
- 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 usePlatform
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
async usePlatform( pVersion){
// old
// this.config.platform_target = pVersion;
let pm = this.engine.getPlatformManager(), platform = null;
- 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"