lgaticaq/hubot-toggl-payment

View on GitHub

Showing 1 of 3 total issues

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

module.exports = robot => {
  robot.respond(/toggl login (\w{32}) ([\w\W\d\s]+)/, res => {
    const token = res.match[1]
    const secret = res.match[2]
    const room = robot.adapter.client.rtm.dataStore.getDMByName(
Severity: Major
Found in src/script.js - About 3 hrs to fix
    Severity
    Category
    Status
    Source
    Language