eiriksm/tripping-octo-nemesis

View on GitHub

Showing 4 of 4 total issues

Function book has 86 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var book = function(delta, settings, callback) {

  // Get day of week.
  var m = moment().day(settings.dayOfWeek);
  if (m.unix() < moment().unix()) {
Severity: Major
Found in src/app.js - About 3 hrs to fix

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

    var login = function(settings, callback) {
      // First load homepage.
      r({
        url: config.frontpageUrl,
        followAllRedirects: true,
    Severity: Minor
    Found in src/app.js - About 1 hr to fix

      Function start has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var start = function(settings, shouldBook, callback) {
        var serie = [
          function(callback) {
            login(settings, callback);
          }
      Severity: Minor
      Found in src/app.js - About 1 hr to fix

        Function unbook has 26 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function unbook(opts, callback) {
          if (!opts || !opts.id) {
            callback(new Error('No id to unbook'));
            return;
          }
        Severity: Minor
        Found in src/modules/unbook.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language