Showing 51 of 51 total issues
Function rm
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
ComponentManager.prototype.rm = function (args, callback) {
var name = args.name,
config = utils.getConfig(),
type =
config.components[this._group][name] !== undefined
- 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 getRequireJSPaths
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
var getRequireJSPaths = function (config, startPath) {
var componentTypes = Object.keys(config.dependencies),
components,
paths = [],
names,
- 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
FIXME found Open
Open
// FIXME: It currently assumes everything is a github url. Should support
- Exclude checks
FIXME found Open
Open
// FIXME: Call this without --save then later save it
- Exclude checks
TODO found Open
Open
// TODO: Find a better spot for this...
- Exclude checks
TODO found Open
Open
var componentName = args.name, // TODO: verify that the plugin exists
- Exclude checks
FIXME found Open
Open
// FIXME: This is only called if an arg is passed!
- Exclude checks
TODO found Open
Open
activeSelection: [], //TODO: Enable passing this from command line.
- Exclude checks
FIXME found Open
Open
// FIXME: This is only called if an arg is passed!
- Exclude checks
TODO found Open
Open
var name = options.name, // TODO: Change this to id
- Exclude checks
FIXME found Open
Open
// FIXME: This is only called if an arg is passed!
- Exclude checks