yamadapc/dit

View on GitHub

Showing 3 of 3 total issues

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

Downloader.prototype.download = function(post) {
  var _this = this;
  var title_slug = Downloader._slug(post.title);

  // Get the resources to download:
Severity: Minor
Found in lib/downloader.js - About 1 hr to fix

    Function _handleSaved has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    cli._handleSaved = function(program, reddit) {
      if(program.download) {
        // If the flag was supplied without a value, set it to the default target
        // directory:
        if(program.download === true) {
    Severity: Minor
    Found in lib/cli/index.js - About 1 hr to fix

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

      Reddit.prototype.saved = function(after, saved_links) {
        if(!saved_links) {
          saved_links = [];
        }
      
      
      Severity: Minor
      Found in lib/reddit.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language