trufflesuite/truffle

View on GitHub
packages/core/lib/commands/init/copyFiles.js

Summary

Maintainability
A
1 hr
Test Coverage

Function copyFiles has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const copyFiles = async (destination, options) => {
  fse.ensureDirSync(destination);
  const { force, logger, events } = options;
  const sourcePath = path.join(__dirname, "initSource");
  const projectFiles = fse.readdirSync(sourcePath).filter(
Severity: Minor
Found in packages/core/lib/commands/init/copyFiles.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status