Function _runOnce
has 334 lines of code (exceeds 25 allowed). Consider refactoring. Open
_runOnce: function (options) {
var self = this;
options = options || {};
var firstRun = options.firstRun;
File run-app.js
has 684 lines of code (exceeds 250 allowed). Consider refactoring. Open
var _ = require('underscore');
var Fiber = require('fibers');
var files = require('../fs/files');
var watch = require('../fs/watch');
var bundler = require('../isobuild/bundler.js');
Function _runOnce
has a Cognitive Complexity of 75 (exceeds 5 allowed). Consider refactoring. Open
_runOnce: function (options) {
var self = this;
options = options || {};
var firstRun = options.firstRun;
- 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 _fiber
has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring. Open
_fiber: function () {
var self = this;
var firstRun = true;
while (true) {
- 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 bundleApp
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
var bundleApp = function () {
if (! firstRun) {
// If the build fails in a way that could be fixed by a refresh, allow
// it even if we refreshed previously, since that might have been a
// little while ago.
Function _fiber
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
_fiber: function () {
var self = this;
var firstRun = true;
while (true) {
Function _computeEnvironment
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
_computeEnvironment: function () {
var self = this;
var env = Object.assign({}, process.env);
env.PORT = self.port;
Function _computeEnvironment
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
_computeEnvironment: function () {
var self = this;
var env = Object.assign({}, process.env);
env.PORT = self.port;
- 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 AppRunner
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
var AppRunner = function (options) {
var self = this;
self.projectContext = options.projectContext;
Avoid too many return
statements within this function. Open
if (postStartupResult) return postStartupResult;
Avoid too many return
statements within this function. Open
return bundleResultOrRunResult.runResult;
Avoid too many return
statements within this function. Open
return ret;
Avoid too many return
statements within this function. Open
return true;
Avoid too many return
statements within this function. Open
return { outcome: 'stopped' };
Avoid too many return
statements within this function. Open
if (postStartupResult) return postStartupResult;
Avoid too many return
statements within this function. Open
return { bundleResult: bundleResult };
Avoid too many return
statements within this function. Open
return { outcome: 'outdated-cordova-plugins' };