Showing 5 of 5 total issues
Function handler
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.handler = async (event, context) => {
//context.callbackWaitsForEmptyEventLoop = false;
let result = null;
let browser = null;
let messageBody = null;
Function putResult
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function putResult(result, messageBody) {
const agency = messageBody.Agency;
const organization = messageBody.Organization;
const domain = messageBody.domain;
const subdomain = (messageBody.subdomain) ? messageBody.subdomain : '';
Function __init__
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def __init__(self, app: core.App, id: str) -> None:
super().__init__(app, id)
##################################
# Lambda Timeouts (seconds) & Queue Redrive
Function scrape
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def scrape(routeable_url=None, domain=None, tld='gov', subdomain='', **kwargs):
Avoid too many return
statements within this function. Open
Open
return context.succeed();