jordansne/ntwitbot

View on GitHub
src/retrieve.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function retrieveForNew has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    retrieveForNew(params, tweetsLeft, tweetsRetrieved) {
        // Copy object to allow for proper unit testing
        const request = Object.assign({}, params);

        // If first request..
Severity: Major
Found in src/retrieve.js - About 2 hrs to fix

    Function retrieveForExisting has 43 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        retrieveForExisting(params, tweetsRetrieved) {
            // Copy object to allow for proper unit testing
            const request = Object.assign({}, params);
            const firstReq = !request.hasOwnProperty('max_id');
    
    
    Severity: Minor
    Found in src/retrieve.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status