gerard2p/koaton-cli

View on GitHub
src/deamon.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

function LoadServer (resolve, reject, nginx) {
    let PIDPromises = [];
    let KoatonServer = spawn('node', ['app.js'], { shell: false, env: {liveReloadHost: liveReloadHost(), NODE_ENV: process.env.NODE_ENV} });
    KoatonServer.stdout.on('data', (buffer) => {
        process.stdout.write(buffer);
Severity: Minor
Found in src/deamon.js - About 1 hr to fix

    Function StartKoatonServer has 31 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    async function StartKoatonServer (resolve, reject, nginx = false) {
        let watcher = new Watch('./**', {
            awaitWriteFinish: {
                stabilityThreshold: 500,
                pollInterval: 50
    Severity: Minor
    Found in src/deamon.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status