container-labs/functions-compose

View on GitHub

Showing 1 of 3 total issues

Function onFileChanged has 45 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function onFileChanged(client, thisSubscription, globalContext) {
  const serviceContext = thisSubscription.serviceContext;
  const functionSettings = serviceContext.functions;
  const yarnOrNpmRun = globalContext.yarn ? 'yarn' : 'npm run';
  const yarnOrNpm = globalContext.yarn ? 'yarn' : 'npm';
Severity: Minor
Found in functionsES6/onFileChanged.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language