Inlife/nexrender

View on GitHub
packages/nexrender-provider-sftp/src/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function upload has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const upload = (job, settings, src, params) => {
    if (!params.host) throw new Error("SFTP Host not provided.");
    if (!params.port) throw new Error("SFTP Port not provided.");
    if (!params.user) throw new Error("SFTP Username not provided.");
    if (!params.password) throw new Error("SFTP Password not provided.");
Severity: Minor
Found in packages/nexrender-provider-sftp/src/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status