rofrischmann/read-transform-write

View on GitHub

Showing 1 of 1 total issue

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
    Severity
    Category
    Status
    Source
    Language