src/utils/SPGetCurrentUser.js
Function SPGetCurrentUser
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.SPServices.SPGetCurrentUser = function (options) {
var opt = $.extend({}, {
webURL: "", // URL of the target Site Collection. If not specified, the current Web is used.
fieldName: "Name", // Specifies which field to return from the userdisp.aspx page