langateam/trailpack-tasker

View on GitHub

Showing 2 of 5 total issues

Function configureExchangesAndQueues has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function configureExchangesAndQueues(profile, taskerConfig) {
  const exchangeName = taskerConfig.exchange || 'tasker-work-x'
  const workQueueName = taskerConfig.workQueueName || 'tasker-work-q'
  const interruptQueueName = taskerConfig.interruptQueueName || 'tasker-interrupt-q'

Severity: Minor
Found in index.js - About 1 hr to fix

    Function registerRun has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    exports.registerRun = function (taskName, app, rabbit) {
      const taskerClient = app.tasker
        // set up the task handler
        //
      rabbit.handle(taskName, message => {
    Severity: Minor
    Found in lib/Util.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language