enter-at/node-aws-lambda-handlers

View on GitHub

Showing 3 of 15 total issues

Function handleError has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private static handleError(err: Error): APIGatewayResponse {
        if (err instanceof ForbiddenError) {
            return forbidden(err.details);
        }
        if (err instanceof UnauthorizedError) {
Severity: Minor
Found in src/handler/APIGatewayProxyHandler.ts - About 1 hr to fix

Avoid too many return statements within this function.
Open

            return unprocessableEntity(err.details);
Severity: Major
Found in src/handler/APIGatewayProxyHandler.ts - About 30 mins to fix

Avoid too many return statements within this function.
Open

            return conflict(err.details);
Severity: Major
Found in src/handler/APIGatewayProxyHandler.ts - About 30 mins to fix
Severity
Category
Status
Source
Language