anywhichway/node-require

View on GitHub

Showing 3 of 13 total issues

Function require has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function require(identifier, callback, compiler) {
    if (identifier instanceof Array) {
        var modules = new Array();
        var modcount = identifier.length;
        for (var index = 0; index < identifier.length; index++) {
Severity: Minor
Found in browser/require.js - About 1 hr to fix

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

        function nexport(app,root,exports,options) {
            // expose a proxy for the node_modules directory
            app.get('/*', function(req, res, next){
                var file = path.basename(req.url);
                // only process requests for packages that have been exported
    Severity: Minor
    Found in index.js - About 1 hr to fix

      Avoid deeply nested control flow statements.
      Open

                                              if(err) {
                                                  next(err);
                                              }
      Severity: Major
      Found in index.js - About 45 mins to fix
        Severity
        Category
        Status
        Source
        Language