cressie176/systemic-service-runner

View on GitHub

Showing 2 of 4 total issues

Function exports has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function(system, options) {

    if (!system) throw new Error('system is required')

    var config = merge({ restart: { window: '60s' }}, options)
Severity: Major
Found in index.js - About 2 hrs to fix

    Function start has 42 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function start(cb) {
            system.start(function(err, components) {
                if (err) return cb(err)
    
                process.on('systemic_restart', scheduleRestart)
    Severity: Minor
    Found in index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language