catdad/grandma

View on GitHub
lib/argv.js

Summary

Maintainability
C
7 hrs
Test Coverage

Function parseArgv has 146 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function parseArgv(defaults) {
    var yargs = require('yargs');

    function setDefaults(argv) {
        _.forEach(defaults || {}, function(val, prop) {
Severity: Major
Found in lib/argv.js - About 5 hrs to fix

    Function runCommand has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function runCommand(argv) {
            return argv.command('run <testname>', 'Run a test by name.', function(localYargs) {
                localYargs = addCommonCommand(
                    localYargs,
                    'grandma run <testname> --duration=2m --rate=200'
    Severity: Minor
    Found in lib/argv.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status