pdaether/file-cleaner

View on GitHub

Showing 2 of 2 total issues

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

FileCleaner.prototype.cleanUp = function(){

  var self      = this;
  var maxAge    = this.maxAge;
  var recursive = this.options.recursive;
Severity: Minor
Found in index.js - About 1 hr to fix

    Function worker has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function worker(path) {
        fs.readdir(path, function (err, files) {
          if (err) {
            self.emit('error', new Error("Can't read directory " + path));
            return;
    Severity: Minor
    Found in index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language