Showing 43 of 105 total issues
Function SPServices
has 869 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.SPServices = function (options) {
// If there are no options passed in, use the defaults. Extend replaces each default with the passed option.
var opt = $.extend({}, $.fn.SPServices.defaults, options);
File SPServices.core.js
has 1182 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* Original SPServices core modules...
*/
define([
"jquery",
Function exports
has 221 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
require('jit-grunt')(grunt);
"use strict";
Function cascadeDropdown
has 177 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function cascadeDropdown(parentSelect) {
var choices = "";
var parentSelectSelected;
var childSelectSelected = null;
var newMultiLookupPickerdata;
Function SPFilterDropdown
has 163 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.SPServices.SPFilterDropdown = function (options) {
var opt = $.extend({}, {
relationshipWebURL: "", // [Optional] The name of the Web (site) which contains the relationshipList
relationshipList: "", // The name of the list which contains the lookup values
File jquery.SPServices.d.ts
has 414 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
declare module JQuerySPServices {
interface SPServicesOptions {
/** If true, we'll cache the XML results with jQuery's .data() function */
cacheXML?: boolean;
Function SPScriptAudit
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.SPServices.SPScriptAudit = function (options) {
var opt = $.extend({}, {
webURL: "", // [Optional] The name of the Web (site) to audit
listName: "", // [Optional] The name of a specific list to audit. If not present, all lists in the site are audited.
Function SPAutocomplete
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.SPServices.SPAutocomplete = function (options) {
var opt = $.extend({}, {
webURL: "", // [Optional] The name of the Web (site) which contains the sourceList
sourceList: "", // The name of the list which contains the values
Function showRelated
has 113 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showRelated(opt, relatedListXML, relatedColumnsXML) {
var i;
var columnSelectSelected;
var thisFunction = "SPServices.SPDisplayRelatedInfo";
Function completefunc
has 109 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
completefunc: function (xData) {
// Handle errors
$(xData.responseXML).find("errorstring").each(function () {
var thisFunction = "SPServices.SPCascadeDropdowns";
Function SPCascadeDropdowns
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.SPServices.SPCascadeDropdowns = function (options) {
var opt = $.extend({}, {
relationshipWebURL: "", // [Optional] The name of the Web (site) which contains the relationships list
relationshipList: "", // The name of the list which contains the parent/child relationships
Function showColumn
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function showColumn(listXML, columnXML, columnValue, opt) {
if (typeof columnValue === "undefined") {
return "";
}
Function completefunc
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
completefunc: function (xData) {
// Handle errors
$(xData.responseXML).find("errorstring").each(function () {
var errorText = $(this).text();
File SPDisplayRelatedInfo.js
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
define([
'jquery',
"../utils/constants",
'../core/SPServices.utils',
//---------------------------
File SPCascadeDropdowns.js
has 299 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
define([
'jquery',
'../utils/constants',
'../core/SPServices.utils',
//---------------------------
Function SPGetListItemsJson
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.SPServices.SPGetListItemsJson = function (options) {
var opt = $.extend({}, {
webURL: "", // [Optional] URL of the target Web. If not specified, the current Web is used.
listName: "",
Function SPFindPeoplePicker
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.SPServices.SPFindPeoplePicker = function (options) {
var opt = $.extend({}, {
peoplePickerDisplayName: "", // The displayName of the People Picker on the form
valueToSet: "", // The value to set the People Picker to. Should be a string containing each username or groupname separated by semi-colons.
Function SPRequireUnique
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.SPServices.SPRequireUnique = function (options) {
var opt = $.extend({}, {
columnStaticName: "Title", // Name of the column
duplicateAction: 0, // 0 = warn, 1 = prevent
Function SPDisplayRelatedInfo
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.SPServices.SPDisplayRelatedInfo = function (options) {
var opt = $.extend({}, {
listName: $().SPServices.SPListNameFromUrl(), // The list the form is working with. This is useful if the form is not in the list context.
columnName: "", // The display name of the column in the form
Function SPLookupAddNew
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.SPServices.SPLookupAddNew = function (options) {
var opt = $.extend({}, {
lookupColumn: "", // The display name of the Lookup column
promptText: "Add new {0}", // Text to use as prompt + column name