keboola/serverless-papertrail-logging

View on GitHub
src/index.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function beforePackageCompileEvents has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  beforePackageCompileEvents() {
    this.serverless.cli.log('Creating log subscriptions...');

    const loggerLogicalId = this.provider.naming.getLambdaLogicalId(PapertrailLogging.getFunctionName());

Severity: Minor
Found in src/index.js - About 1 hr to fix

    Function beforePackageCreateDeploymentArtifacts has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      beforePackageCreateDeploymentArtifacts() {
        this.serverless.cli.log('Creating temporary logger function...');
        let functionPath = this.getEnvFilePath();
    
        if (!fs.existsSync(functionPath)) {
    Severity: Minor
    Found in src/index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status