twilio-labs/create-twilio-function

View on GitHub
src/create-twilio-function/create-files.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createPackageJSON has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createPackageJSON(pathName, name, projectType = 'javascript') {
  const fullPath = path.join(pathName, 'package.json');
  const scripts = {
    test: 'echo "Error: no test specified" && exit 1',
    start: 'twilio-run',
Severity: Minor
Found in src/create-twilio-function/create-files.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status