Showing 4 of 10 total issues
File postinstall.js
has 266 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Copyright 2016 Martin Reinhardt
/*
* This simply downloads Galen
*/
- Create a ticketCreate a ticket
Function downloadAndInstallGalen
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
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());
- Create a ticketCreate a ticket
Function requestBinary
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function requestBinary(requestOptions, filePath) {
const deferred = kew.defer();
const writePath = filePath + '-download-' + Date.now();
log.info('Receiving...');
- Create a ticketCreate a ticket
Function extractDownload
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
- Create a ticketCreate a ticket