sympmarc/SPServices

View on GitHub

Showing 43 of 105 total issues

Function SPServices has 869 lines of code (exceeds 25 allowed). Consider refactoring.
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);

Severity: Major
Found in src/core/SPServices.core.js - About 4 days to fix

    File SPServices.core.js has 1182 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /**
     * Original SPServices core modules...
     */
    define([
        "jquery",
    Severity: Major
    Found in src/core/SPServices.core.js - About 3 days to fix

      Function exports has 221 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function(grunt) {
          require('jit-grunt')(grunt);
      
          "use strict";
      
      
      Severity: Major
      Found in Gruntfile.js - About 1 day to fix

        Function cascadeDropdown has 177 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            function cascadeDropdown(parentSelect) {
                var choices = "";
                var parentSelectSelected;
                var childSelectSelected = null;
                var newMultiLookupPickerdata;
        Severity: Major
        Found in src/value-added/SPCascadeDropdowns.js - About 7 hrs to fix

          Function SPFilterDropdown has 163 lines of code (exceeds 25 allowed). Consider refactoring.
          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
          Severity: Major
          Found in src/value-added/SPFilterDropdown.js - About 6 hrs to fix

            File jquery.SPServices.d.ts has 414 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            
            declare module JQuerySPServices {
                interface SPServicesOptions {
                    /** If true, we'll cache the XML results with jQuery's .data() function */
                    cacheXML?: boolean;
            Severity: Minor
            Found in src/jquery.SPServices.d.ts - About 5 hrs to fix

              Function SPScriptAudit has 134 lines of code (exceeds 25 allowed). Consider refactoring.
              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.
              Severity: Major
              Found in src/value-added/SPScriptAudit.js - About 5 hrs to fix

                Function SPAutocomplete has 126 lines of code (exceeds 25 allowed). Consider refactoring.
                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
                Severity: Major
                Found in src/value-added/SPAutocomplete.js - About 5 hrs to fix

                  Function showRelated has 113 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      function showRelated(opt, relatedListXML, relatedColumnsXML) {
                  
                          var i;
                          var columnSelectSelected;
                          var thisFunction = "SPServices.SPDisplayRelatedInfo";
                  Severity: Major
                  Found in src/value-added/SPDisplayRelatedInfo.js - About 4 hrs to fix

                    Function completefunc has 109 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                                    completefunc: function (xData) {
                    
                                        // Handle errors
                                        $(xData.responseXML).find("errorstring").each(function () {
                                            var thisFunction = "SPServices.SPCascadeDropdowns";
                    Severity: Major
                    Found in src/value-added/SPCascadeDropdowns.js - About 4 hrs to fix

                      Function SPCascadeDropdowns has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                      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
                      Severity: Major
                      Found in src/value-added/SPCascadeDropdowns.js - About 4 hrs to fix

                        Function showColumn has 105 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function showColumn(listXML, columnXML, columnValue, opt) {
                        
                                if (typeof columnValue === "undefined") {
                                    return "";
                                }
                        Severity: Major
                        Found in src/value-added/SPDisplayRelatedInfo.js - About 4 hrs to fix

                          Function completefunc has 99 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                                      completefunc: function (xData) {
                          
                                          // Handle errors
                                          $(xData.responseXML).find("errorstring").each(function () {
                                              var errorText = $(this).text();
                          Severity: Major
                          Found in src/value-added/SPFilterDropdown.js - About 3 hrs to fix

                            File SPDisplayRelatedInfo.js has 304 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            define([
                                'jquery',
                                "../utils/constants",
                                '../core/SPServices.utils',
                                //---------------------------
                            Severity: Minor
                            Found in src/value-added/SPDisplayRelatedInfo.js - About 3 hrs to fix

                              File SPCascadeDropdowns.js has 299 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open

                              define([
                                  'jquery',
                                  '../utils/constants',
                                  '../core/SPServices.utils',
                                  //---------------------------
                              Severity: Minor
                              Found in src/value-added/SPCascadeDropdowns.js - About 3 hrs to fix

                                Function SPGetListItemsJson has 77 lines of code (exceeds 25 allowed). Consider refactoring.
                                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: "",
                                Severity: Major
                                Found in src/utils/SPGetListItemsJson.js - About 3 hrs to fix

                                  Function SPFindPeoplePicker has 73 lines of code (exceeds 25 allowed). Consider refactoring.
                                  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.
                                  Severity: Major
                                  Found in src/value-added/SPFindPeoplePicker.js - About 2 hrs to fix

                                    Function SPRequireUnique has 68 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        $.fn.SPServices.SPRequireUnique = function (options) {
                                    
                                            var opt = $.extend({}, {
                                                columnStaticName: "Title", // Name of the column
                                                duplicateAction: 0, // 0 = warn, 1 = prevent
                                    Severity: Major
                                    Found in src/value-added/SPRequireUnique.js - About 2 hrs to fix

                                      Function SPDisplayRelatedInfo has 67 lines of code (exceeds 25 allowed). Consider refactoring.
                                      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
                                      Severity: Major
                                      Found in src/value-added/SPDisplayRelatedInfo.js - About 2 hrs to fix

                                        Function SPLookupAddNew has 62 lines of code (exceeds 25 allowed). Consider refactoring.
                                        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
                                        Severity: Major
                                        Found in src/value-added/SPLookupAddNew.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language