csmcallister/fed-a11y-scan

View on GitHub
lambdas/a11y_scan/index.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function handler has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.handler = async (event, context) => {
  //context.callbackWaitsForEmptyEventLoop = false;
  let result = null;
  let browser = null;
  let messageBody = null;
Severity: Minor
Found in lambdas/a11y_scan/index.js - About 1 hr to fix

    Function putResult has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    async function putResult(result, messageBody) {
      const agency = messageBody.Agency;
      const organization = messageBody.Organization;
      const domain = messageBody.domain;
      const subdomain = (messageBody.subdomain) ? messageBody.subdomain : '';
    Severity: Minor
    Found in lambdas/a11y_scan/index.js - About 1 hr to fix

      Avoid too many return statements within this function.
      Open

        return context.succeed();
      Severity: Major
      Found in lambdas/a11y_scan/index.js - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status