Pi2-FGABreja/FGABrejaWeb

View on GitHub

Showing 199 of 290 total issues

Function scrollSpy has 63 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.scrollSpy = function(selector, options) {
        var visible = [];
        selector = $(selector);
        selector.each(function(i, element) {
            elements.push($(element));
Severity: Major
Found in FGABreja/static/js/bin/materialize.js - About 2 hrs to fix

    Function scrollSpy has 63 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        $.scrollSpy = function(selector, options) {
            var visible = [];
            selector = $(selector);
            selector.each(function(i, element) {
                elements.push($(element));
    Severity: Major
    Found in FGABreja/static/js/scrollspy.js - About 2 hrs to fix

      Function activate has 60 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      DatePicker.prototype.activate = function( type, datesToEnable ) {
      
          var calendar = this,
              disabledItems = calendar.item.disable,
              disabledItemsCount = disabledItems.length
      Severity: Major
      Found in FGABreja/static/js/date_picker/picker.date.js - About 2 hrs to fix

        Function activate has 60 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        DatePicker.prototype.activate = function( type, datesToEnable ) {
        
            var calendar = this,
                disabledItems = calendar.item.disable,
                disabledItemsCount = disabledItems.length
        Severity: Major
        Found in FGABreja/static/js/bin/materialize.js - About 2 hrs to fix

          Function returnToOriginal has 54 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                function returnToOriginal() {
          
                    doneAnimating = false;
          
                    var placeholder = origin.parent('.material-placeholder');
          Severity: Major
          Found in FGABreja/static/js/bin/materialize.js - About 2 hrs to fix

            Function returnToOriginal has 54 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                  function returnToOriginal() {
            
                      doneAnimating = false;
            
                      var placeholder = origin.parent('.material-placeholder');
            Severity: Major
            Found in FGABreja/static/js/materialbox.js - About 2 hrs to fix

              Function createToast has 53 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  function createToast(html) {
              
                      // Create toast
                      var toast = document.createElement('div');
                      toast.classList.add('toast');
              Severity: Major
              Found in FGABreja/static/js/bin/materialize.js - About 2 hrs to fix

                Function createToast has 53 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    function createToast(html) {
                
                        // Create toast
                        var toast = document.createElement('div');
                        toast.classList.add('toast');
                Severity: Major
                Found in FGABreja/static/js/toasts.js - About 2 hrs to fix

                  Function formats has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  DatePicker.prototype.formats = (function() {
                  
                      // Return the length of the first word in a collection.
                      function getWordLengthFromCollection( string, collection, dateObject ) {
                  
                  
                  Severity: Major
                  Found in FGABreja/static/js/date_picker/picker.date.js - About 2 hrs to fix

                    Function formats has 51 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    DatePicker.prototype.formats = (function() {
                    
                        // Return the length of the first word in a collection.
                        function getWordLengthFromCollection( string, collection, dateObject ) {
                    
                    
                    Severity: Major
                    Found in FGABreja/static/js/bin/materialize.js - About 2 hrs to fix

                      Function prepareElementRoot has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          function prepareElementRoot() {
                      
                              P.$root.
                      
                                  on({
                      Severity: Minor
                      Found in FGABreja/static/js/bin/materialize.js - About 2 hrs to fix

                        Function prepareElementRoot has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            function prepareElementRoot() {
                        
                                P.$root.
                        
                                    on({
                        Severity: Minor
                        Found in FGABreja/static/js/date_picker/picker.js - About 2 hrs to fix

                          Consider simplifying this complex logical expression.
                          Open

                              if ( !options || !options.nav ) if (
                                  /* 1 */ ( !isFlippedBase && calendar.disabled( dateObject ) ) ||
                                  /* 2 */ ( isFlippedBase && calendar.disabled( dateObject ) && ( hasEnabledWeekdays || hasEnabledBeforeTarget || hasEnabledAfterTarget ) ) ||
                                  /* 3 */ ( !isFlippedBase && (dateObject.pick <= minLimitObject.pick || dateObject.pick >= maxLimitObject.pick) )
                              ) {
                          Severity: Critical
                          Found in FGABreja/static/js/bin/materialize.js - About 2 hrs to fix

                            Consider simplifying this complex logical expression.
                            Open

                                if ( !options || !options.nav ) if (
                                    /* 1 */ ( !isFlippedBase && calendar.disabled( dateObject ) ) ||
                                    /* 2 */ ( isFlippedBase && calendar.disabled( dateObject ) && ( hasEnabledWeekdays || hasEnabledBeforeTarget || hasEnabledAfterTarget ) ) ||
                                    /* 3 */ ( !isFlippedBase && (dateObject.pick <= minLimitObject.pick || dateObject.pick >= maxLimitObject.pick) )
                                ) {
                            Severity: Critical
                            Found in FGABreja/static/js/date_picker/picker.date.js - About 2 hrs to fix

                              Function validate has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              DatePicker.prototype.validate = function( type, dateObject, options ) {
                              
                                  var calendar = this,
                              
                                      // Keep a reference to the original date.
                              Severity: Minor
                              Found in FGABreja/static/js/date_picker/picker.date.js - About 2 hrs to fix

                                Function validate has 50 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                DatePicker.prototype.validate = function( type, dateObject, options ) {
                                
                                    var calendar = this,
                                
                                        // Keep a reference to the original date.
                                Severity: Minor
                                Found in FGABreja/static/js/bin/materialize.js - About 2 hrs to fix

                                  Function item has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                                  item: function( rowCounter ) {
                                  
                                                      // If Monday is the first day and the month starts on Sunday, shift the date back a week.
                                                      var shiftDateBy = settings.firstDay && calendar.create([ viewsetObject.year, viewsetObject.month, 1 ]).day === 0 ? -7 : 0
                                  
                                  
                                  Severity: Minor
                                  Found in FGABreja/static/js/date_picker/picker.date.js - About 1 hr to fix

                                    Function item has 49 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                                    item: function( rowCounter ) {
                                    
                                                        // If Monday is the first day and the month starts on Sunday, shift the date back a week.
                                                        var shiftDateBy = settings.firstDay && calendar.create([ viewsetObject.year, viewsetObject.month, 1 ]).day === 0 ? -7 : 0
                                    
                                    
                                    Severity: Minor
                                    Found in FGABreja/static/js/bin/materialize.js - About 1 hr to fix

                                      Function placeDropdown has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function placeDropdown() {
                                            // Check html data attributes
                                            updateOptions();
                                      
                                            // Set Dropdown state
                                      Severity: Minor
                                      Found in FGABreja/static/js/dropdown.js - About 1 hr to fix

                                        Function placeDropdown has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            function placeDropdown() {
                                              // Check html data attributes
                                              updateOptions();
                                        
                                              // Set Dropdown state
                                        Severity: Minor
                                        Found in FGABreja/static/js/bin/materialize.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language