Showing 7 of 11 total issues
Function launchBuilder
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SiteBuilder.launchBuilder = function(hook, branch, builderConfig) {
var builderOpts = new Options(hook, config, builderConfig),
buildLog = builderOpts.sitePath + '.log',
logger = new BuildLogger(buildLog),
builder = new SiteBuilder(branch,
Function doRun
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function doRun(runner, path, args, opts, message) {
return new Promise(function(resolve, reject) {
var command,
options = opts || {cwd: runner.sitePath},
msg = message || 'rebuild failed for',
Function exports
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(hook) {
var branch = hook.ref,
repository = hook.repository,
commit = hook.head_commit,
pusher = hook.pusher
Function build
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
SiteBuilder.prototype.build = function() {
var builder = this,
doBuild
doBuild = function() {
Function sync
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Sync.prototype.sync = function(buildDestination) {
var homePrefix = path.join(this.home, path.sep),
s3Prefix = buildDestination
.substr(homePrefix.length)
.replace(/\\/g, '/'),
Function ComponentFactory
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function ComponentFactory(config, builderOpts, branch, s3client, logger) {
Function doRun
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function doRun(runner, path, args, opts, message) {