Showing 5 of 11 total issues
Function testTemplateWithPreReq
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.testTemplateWithPreReq = function (rgName, templateFile, parametersFile, preReqTemplateFile, preReqParametersFile) {
debug('DEBUG: using prereq template file:');
debug(preReqTemplateFile);
debug('using prereq template parameters:');
debug(preReqParametersFile);
Function testTemplate
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.testTemplate = function (rgName, templateFile, parametersFile, templateLink) {
debug('DEBUG: using template file:');
debug(templateFile);
debug('using paramters:');
debug(parametersFile);
Function replaceKeyParameters
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.replaceKeyParameters = function (parameters) {
var parametersString = JSON.stringify(parameters);
// for unique parameters replace each with a guid
var matches = parametersString.match(new RegExp(conf.get('PARAM_REPLACE_INDICATOR') + '-\\d+', 'g'));
if (matches) {
Function writeFileHelper
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function writeFileHelper(fs, fileName, parametersFileName, template, parameters) {
Function testTemplateWithPreReq
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
exports.testTemplateWithPreReq = function (rgName, templateFile, parametersFile, preReqTemplateFile, preReqParametersFile) {