dcodeIO/webassembly

View on GitHub
scripts/setup.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

function download(callback) {
    var req = https.get("https://github.com/dcodeIO/webassembly/releases/download/" + pkg.tools + "/" + archive, res => {
        if (res.statusCode !== 200) {
            req.abort();
            callback(Error("no prebuilt binaries available for " + platform + " (code " + res.statusCode + ")"));
Severity: Minor
Found in scripts/setup.js - About 1 hr to fix

    Function req has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        var req = https.get("https://github.com/dcodeIO/webassembly/releases/download/" + pkg.tools + "/" + archive, res => {
            if (res.statusCode !== 200) {
                req.abort();
                callback(Error("no prebuilt binaries available for " + platform + " (code " + res.statusCode + ")"));
                return;
    Severity: Minor
    Found in scripts/setup.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status