rofrischmann/read-transform-write

View on GitHub
src/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function transformFile has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function transformFile(inputPath, transform, callback) {
  readFile(inputPath, 'utf8', (readError, input) => {
    if (readError) {
      throw new Error(
        'Error trying to read the file ' + inputPath + '.\n' + readError
Severity: Minor
Found in src/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status