lucid-services/serviser

View on GitHub
bin/serviser.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function _initializeYargs has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function _initializeYargs(ya) {
    ya = ya
    .usage('$0 <command> [options]')
    .command(['run [options..]', 'start', 'serve'], 'Starts serviser app - expects it to be located under cwd', {
        cluster: {
Severity: Minor
Found in bin/serviser.js - About 1 hr to fix

    Function defaultCmd has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function defaultCmd(argv) {
    
        //we look for user defined shell commands:
        config.initialize({fileConfigPath: argv.config});
        let ya = require('yargs/yargs')();
    Severity: Minor
    Found in bin/serviser.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status