integreat-io/integreat

View on GitHub
src/service/utils/authAction.ts

Summary

Maintainability
A
1 hr
Test Coverage

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

  function authorizeAction(action: Action): Action {
    const {
      payload: { type },
      response: { status } = {},
      meta: { ident } = {},
Severity: Minor
Found in src/service/utils/authAction.ts - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

      return authorizeByRoleOrIdent(access, ident)
    Severity: Major
    Found in src/service/utils/authAction.ts - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status