webgme/webgme-cli

View on GitHub

Showing 51 of 51 total issues

Function rm has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
Open

ComponentManager.prototype.rm = function (args, callback) {
  var name = args.name,
    config = utils.getConfig(),
    type =
      config.components[this._group][name] !== undefined
Severity: Minor
Found in src/ComponentManager.js - About 25 mins to fix

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

var getRequireJSPaths = function (config, startPath) {
  var componentTypes = Object.keys(config.dependencies),
    components,
    paths = [],
    names,
Severity: Minor
Found in src/utils.js - About 25 mins to fix

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

  // FIXME: It currently assumes everything is a github url. Should support
Severity: Minor
Found in src/utils.js by fixme

FIXME found
Open

  // FIXME: Call this without --save then later save it
Severity: Minor
Found in src/ComponentManager.js by fixme

TODO found
Open

// TODO: Find a better spot for this...
Severity: Minor
Found in src/BinUtils.js by fixme

TODO found
Open

  var componentName = args.name, // TODO: verify that the plugin exists
Severity: Minor
Found in src/mixins/Enableable/Enableable.js by fixme

FIXME found
Open

        // FIXME: This is only called if an arg is passed!
Severity: Minor
Found in bin/webgme-new-seed by fixme

TODO found
Open

          activeSelection: [], //TODO: Enable passing this from command line.
Severity: Minor
Found in src/mixins/Enableable/runPlugin.js by fixme

FIXME found
Open

        // FIXME: This is only called if an arg is passed!
Severity: Minor
Found in bin/webgme-new-decorator by fixme

TODO found
Open

  var name = options.name, // TODO: Change this to id
Severity: Minor
Found in src/VisualizerManager.js by fixme

FIXME found
Open

        // FIXME: This is only called if an arg is passed!
Severity: Minor
Found in bin/webgme-new-viz by fixme
Severity
Category
Status
Source
Language