GregBrimble/cf-workers-dashboard

View on GitHub
packages/server/src/graphql/index.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function handleRequest has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const handleRequest = async (request: Request): Promise<Response> => {
  let graphQLRequest: GraphQLRequest;

  try {
    switch (request.method.toLowerCase()) {
Severity: Minor
Found in packages/server/src/graphql/index.ts - About 1 hr to fix

    TODO found
    Open

        // TODO: Call `handleError` when appropriate
    Severity: Minor
    Found in packages/server/src/graphql/index.ts by fixme

    TODO found
    Open

      // TODO: Pass to Sentry or similar
    Severity: Minor
    Found in packages/server/src/graphql/index.ts by fixme

    There are no issues that match your filters.

    Category
    Status