Showing 160 of 160 total issues
Function statusColor
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
function statusColor(
versionCorrect,
distributionCorrect,
hasAptGet,
defaultBash,
- 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
TODO found Open
Open
console.log(' Required changes have been marked with a TODO comment.');
- Exclude checks
TODO found Open
Open
# TODO: clean up the last folder when the private registry has a previous image
- Exclude checks
TODO found Open
Open
// TODO: should retry network errors
- Exclude checks
TODO found Open
Open
// TODO: Change to your app's url
- Exclude checks
TODO found Open
Open
// TODO break this into multiple functions
- Exclude checks
TODO found Open
Open
// TODO handle error events
- Exclude checks
TODO found Open
Open
// TODO: for the app to run without repeatedly crashing
- Exclude checks
TODO found Open
Open
// TODO: show swarm health:
- Exclude checks
TODO found Open
Open
// TODO: this should use the proxy's port if the user changed it
- Exclude checks
TODO found Open
Open
// TODO: skip running the script if there is nothing to update
- Exclude checks
TODO found Open
Open
// TODO: mongo.oplog and mongo.port is unused,
- Exclude checks
TODO found Open
Open
// TODO: the config object created by the plugin api
- Exclude checks
TODO found Open
Open
// TODO: handle nodes that aren't listed in the config.server
- Exclude checks
TODO found Open
Open
// TODO get server name form mup.js file
- Exclude checks
TODO found Open
Open
// TODO: set host address, username, and authentication method
- Exclude checks
TODO found Open
Open
# TODO: build instructions
- Exclude checks
TODO found Open
Open
// TODO: change app name and path
- Exclude checks
TODO found Open
Open
// TODO: make it work when the reverse proxy isn't enabled
- Exclude checks
TODO found Open
Open
# TODO make sure we can run docker in this server
- Exclude checks