mjackson/mach

View on GitHub
modules/utils/generateIndex.js

Summary

Maintainability
A
1 hr
Test Coverage

Function generateIndex has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function generateIndex(root, pathname, basename) {
  return new Promise(function (resolve, reject) {
    var path = joinPaths(root, pathname);

    fs.readdir(path, function (error, files) {
Severity: Minor
Found in modules/utils/generateIndex.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status