bjerkio/gcl-slack

View on GitHub

Showing 3 of 10 total issues

Function makePulumiCallback has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const makePulumiCallback = (
  type: SlackRequestType,
  options: PulumiCallbackOptions = {},
): PulumiCallbackFun => {
  if (type === 'api') {
Severity: Minor
Found in src/index.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

        return {
          text: entry.textPayload,
        };
    Severity: Major
    Found in src/parse-log.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

        return true;
      Severity: Major
      Found in src/parse-log.ts - About 30 mins to fix
        Severity
        Category
        Status
        Source
        Language