juice-shop/juice-shop

View on GitHub
lib/utils.ts

Summary

Maintainability
A
2 hrs
Test Coverage
B
89%

Avoid too many return statements within this function.
Open

    return { enabled: false, disabledBecause: 'Safety Mode' }
Severity: Major
Found in lib/utils.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

      return { enabled: true, disabledBecause: null }
    Severity: Major
    Found in lib/utils.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return { enabled: false, disabledBecause: 'Gitpod' }
      Severity: Major
      Found in lib/utils.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return { enabled: false, disabledBecause: 'Windows' }
        Severity: Major
        Found in lib/utils.ts - About 30 mins to fix

          TODO found
          Open

          export const contains = (str: string, element: string) => str ? str.includes(element) : false // TODO Inline all usages as this function is not adding any functionality to String.includes
          Severity: Minor
          Found in lib/utils.ts by fixme

          FIXME found
          Open

              // @ts-expect-error FIXME Ignoring any type issue on purpose
          Severity: Minor
          Found in lib/utils.ts by fixme

          FIXME found
          Open

          // import isGitpod from 'is-gitpod') // FIXME Roll back to this when https://github.com/dword-design/is-gitpod/issues/94 is resolve
          Severity: Minor
          Found in lib/utils.ts by fixme

          There are no issues that match your filters.

          Category
          Status