csmcallister/fed-a11y-scan

View on GitHub

Showing 5 of 5 total issues

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

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

          def __init__(self, app: core.App, id: str) -> None:
              super().__init__(app, id)
      
              ##################################
              # Lambda Timeouts (seconds) & Queue Redrive
      Severity: Minor
      Found in app.py - About 1 hr to fix

        Function scrape has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        def scrape(routeable_url=None, domain=None, tld='gov', subdomain='', **kwargs):
        Severity: Minor
        Found in lambdas/site_mapper/handler.py - About 35 mins 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
            Severity
            Category
            Status
            Source
            Language