codenautas/txt-to-sql

View on GitHub
tools/web.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

function processDirectory(srcDir, destDir, only) {
    return Promise.resolve().then(function() {
        return fs.readdir(srcDir)
    }).then(function(files) {
        return Promise.all(files.map(function(file) {
Severity: Minor
Found in tools/web.js - About 1 hr to fix

    Function browserifyOutDated has 28 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function browserifyOutDated(moduleName, relativeModuleFileName, exposedName, outputDir) {
        var moduleDir = './node_modules/'+moduleName+'/';
        var registry='./tools/versions.json';
        var regJSON, modJSON;
        var mustUpdate = false;
    Severity: Minor
    Found in tools/web.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status