hypery2k/galenframework-cli

View on GitHub

Showing 4 of 10 total issues

File postinstall.js has 266 lines of code (exceeds 250 allowed). Consider refactoring.
Open

// Copyright 2016 Martin Reinhardt

/*
 * This simply downloads Galen
 */
Severity: Minor
Found in core/postinstall.js - About 2 hrs to fix

Function downloadAndInstallGalen has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function downloadAndInstallGalen() {
  // Trying to use a local file failed, so initiate download and install
  // steps instead.
  const npmconfDeferred = kew.defer();
  npmconf.load(npmconfDeferred.makeNodeResolver());
Severity: Minor
Found in core/postinstall.js - About 1 hr to fix

Function requestBinary has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function requestBinary(requestOptions, filePath) {
  const deferred = kew.defer();
  const writePath = filePath + '-download-' + Date.now();

  log.info('Receiving...');
Severity: Minor
Found in core/postinstall.js - About 1 hr to fix

Function extractDownload has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function extractDownload(filePath, requestOptions, retry) {
  const deferred = kew.defer();
  // extract to a unique directory in case multiple processes are
  // installing and extracting at once
  const extractedPath = filePath + '-extract-' + Date.now();
Severity: Minor
Found in core/postinstall.js - About 1 hr to fix
Severity
Category
Status
Source
Language