thoschu/io.server360.node.heat-shield

View on GitHub

Showing 2 of 2 total issues

Function HeatShield has 137 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    HeatShield = () => {
        (function () {
            const eventEmitter = new EventEmitter();
            if (!shell.which('npm')) {
                shell.echo('Sorry, this script requires npm');
Severity: Major
Found in lib/index.js - About 5 hrs to fix

    Function fn has 51 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                const fn = (stdout1) => {
                    let filePath = path.join(__dirname, R.concat(R.concat('../logs/', R.toString(Date.now())), '-log.txt')),
                        writeableStream = fs.createWriteStream(filePath),
                        readableStream = fs.createReadStream(filePath, {encoding: 'utf8'}),
                        text = stdout1.toString(),
    Severity: Major
    Found in lib/index.js - About 2 hrs to fix
      Severity
      Category
      Status
      Source
      Language