pandark/passport-42

View on GitHub

Showing 2 of 2 total issues

Function parse has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.parse = function(json, profileFields) {
  if ('string' === typeof json) {
    json = JSON.parse(json);
  }

Severity: Major
Found in lib/profile.js - About 2 hrs to fix

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

    Strategy.prototype.userProfile = function(accessToken, done) {
      var fields = this._profileFields;
      this._oauth2.get(this._profileURL, accessToken, function (err, body) {
        var json;
    
    
    Severity: Minor
    Found in lib/strategy.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language