bnt44/wykop-es6

View on GitHub

Showing 1 of 1 total issue

Function request has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    request(rtype, rmethod, {params, api, post}={}, callback=Function.prototype) {
        assert(rtype && rmethod, 'rtype and rmethod must be String and cannot be null');
        //console.log('request: ' + rtype + ' ' + rmethod);
        let {appkey, secretkey, userkey, output, format, timeout, useragent, ssl} = this;

Severity: Minor
Found in lib/index.js - About 2 hrs to fix
    Severity
    Category
    Status
    Source
    Language