lgaticaq/hubot-heroku-deploy-hook

View on GitHub

Showing 1 of 1 total issue

Function exports has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = robot => {
  robot.router.post('/heroku/deploy', (req, res) => {
    const channelName = process.env.DEPLOY_CHANNEL || '#random'
    const channel = robot.adapter.client.rtm.dataStore.getChannelByName(
      channelName
Severity: Minor
Found in src/script.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language