jaredhanson/passport-bitbucket

View on GitHub

Showing 2 of 2 total issues

Function userProfile has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Strategy.prototype.userProfile = function(token, tokenSecret, params, done) {
  var self = this;
  this._oauth.get(this._userProfileURL, token, tokenSecret, function (err, body, res) {
    var json;
    
Severity: Major
Found in lib/strategy.js - About 2 hrs to fix

    Avoid too many return statements within this function.
    Open

            return done(null, profile);
    Severity: Major
    Found in lib/strategy.js - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language