zodern/meteor-up

View on GitHub

Showing 160 of 160 total issues

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

function statusColor(
  versionCorrect,
  distributionCorrect,
  hasAptGet,
  defaultBash,
Severity: Minor
Found in src/plugins/default/command-handlers.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

TODO found
Open

    console.log('  Required changes have been marked with a TODO comment.');
Severity: Minor
Found in src/plugins/default/init.js by fixme

TODO found
Open

# TODO: clean up the last folder when the private registry has a previous image

TODO found
Open

      // TODO: should retry network errors
Severity: Minor
Found in src/plugins/meteor/docker-registry.js by fixme

TODO found
Open

      // TODO: Change to your app's url

TODO found
Open

    // TODO break this into multiple functions
Severity: Minor
Found in src/plugins/docker/__tests__/index.js by fixme

TODO found
Open

    // TODO handle error events
Severity: Minor
Found in src/utils.js by fixme

TODO found
Open

  // TODO: for the app to run without repeatedly crashing
Severity: Minor
Found in src/plugins/meteor/__tests__/swarm.js by fixme

TODO found
Open

  // TODO: show swarm health:

TODO found
Open

    // TODO: this should use the proxy's port if the user changed it
Severity: Minor
Found in src/plugins/meteor/status.js by fixme

TODO found
Open

  // TODO: skip running the script if there is nothing to update
Severity: Minor
Found in src/tasks/index.js by fixme

TODO found
Open

  // TODO: mongo.oplog and mongo.port is unused,
Severity: Minor
Found in src/plugins/mongo/validate.js by fixme

TODO found
Open

  // TODO: the config object created by the plugin api
Severity: Minor
Found in src/validate/index.js by fixme

TODO found
Open

  // TODO: handle nodes that aren't listed in the config.server
Severity: Minor
Found in src/swarm-utils.js by fixme

TODO found
Open

      // TODO get server name form mup.js file
Severity: Minor
Found in src/plugins/docker/__tests__/index.js by fixme

TODO found
Open

      // TODO: set host address, username, and authentication method

TODO found
Open

    # TODO: build instructions
Severity: Minor
Found in src/plugins/meteor/prepare-bundle.js by fixme

TODO found
Open

    // TODO: change app name and path

TODO found
Open

    // TODO: make it work when the reverse proxy isn't enabled

TODO found
Open

# TODO make sure we can run docker in this server
Severity
Category
Status
Source
Language