FreeAllMedia/conan

View on GitHub

Showing 2 of 31 total issues

Function upsertLambdaByNameStep has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function upsertLambdaByNameStep(conan, context, done) {
    const lambda = new context.dependencies.aws.Lambda({"region": conan.config.region});
    if(context.results.lambda && context.results.lambda.found === true) {
        let lambdaParameters = {
            "FunctionName": context.parameters.name,
Severity: Major
Found in pseudo/upsertLambdaByNameStep.js - About 2 hrs to fix

    File upsertLambdaByNameStep.spec.js has 252 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import sinon from "sinon";
    import chai from "chai";
    import upsertLambdaByNameStep from "../../steps/upsertLambdaByNameStep.js";
    
    describe("upsertLambdaByNameStep", () => {
    Severity: Minor
    Found in pseudo/upsertLambdaByNameStep.spec.js - About 2 hrs to fix
      Severity
      Category
      Status
      Source
      Language