parroit/crafter

View on GitHub
bin/crafter-bundle.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function createBundle has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createBundle(output, sourceFileGlob) {
    var outputPath = path.resolve(process.cwd(), output);
    winston.info('Reading source files ', sourceFileGlob);
    winston.info('Writing result to ', outputPath);
Severity: Minor
Found in bin/crafter-bundle.js - About 1 hr to fix

    Function visit has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            .pipe(through2.obj(function visit(file, enc, next) {
                if (file.isNull()) {
                    this.push(file); // pass along
                    return next();
                }
    Severity: Minor
    Found in bin/crafter-bundle.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status