mbland/pages-server

View on GitHub
lib/command-runner.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function doRun has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function doRun(runner, path, args, opts, message) {
  return new Promise(function(resolve, reject) {
    var command,
        options = opts || {cwd: runner.sitePath},
        msg = message || 'rebuild failed for',
Severity: Minor
Found in lib/command-runner.js - About 1 hr to fix

    Function doRun has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    function doRun(runner, path, args, opts, message) {
    Severity: Minor
    Found in lib/command-runner.js - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status