Promact/slack-erp-custom-integration-mvc

View on GitHub
Slack.Automation/Promact.Erp.Core/Controllers/OAuthController.cs

Summary

Maintainability
A
3 hrs
Test Coverage

Method SlackEventAsync has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [HttpPost]
        [Route("slack/eventalert")]
        public async Task<IHttpActionResult> SlackEventAsync(SlackEventApiAC slackEvent)
        {
            //slack verification
Severity: Minor
Found in Slack.Automation/Promact.Erp.Core/Controllers/OAuthController.cs - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                return Ok();
    Severity: Major
    Found in Slack.Automation/Promact.Erp.Core/Controllers/OAuthController.cs - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                          return Ok();
      Severity: Major
      Found in Slack.Automation/Promact.Erp.Core/Controllers/OAuthController.cs - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                            return Ok();
        Severity: Major
        Found in Slack.Automation/Promact.Erp.Core/Controllers/OAuthController.cs - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status