src/value-added/SPScriptAudit.js
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 completefunc
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
completefunc: function (xData) {
$(xData.responseXML).find("List").each(function () {
listXml = $(this);
// If listName has been specified, then only return results for that list
Function SPScriptAuditPage
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SPScriptAuditPage(opt, listXml, pageClass, pageType, pageUrl) {
var jQueryPage = 0;
var pageScriptSrc = {};
pageScriptSrc.type = [];
Function success
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
success: function (xData) {
var scriptMatch;
while (scriptMatch = scriptRegex.exec(xData)) {
Avoid deeply nested control flow statements. Open
Open
if ($(this).attr("ID").substring(0, 6) !== "0x0120") {
var formUrls = $(this).find("FormUrls");
for (var i = 0; i < formTypes.length; i++) {
// Look for a customized form...
$(formUrls).find(formTypes[i][0]).each(function () {
Function SPScriptAuditPage
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function SPScriptAuditPage(opt, listXml, pageClass, pageType, pageUrl) {