Dogfalo/materialize

View on GitHub

Showing 101 of 181 total issues

Function closure has 726 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function closure ( target, options, originalOptions ){

        var actions = getActions( );

        // All variables local to 'closure' are prefixed with 'scope_'
Severity: Major
Found in extras/noUiSlider/nouislider.js - About 3 days to fix

    File nouislider.js has 1312 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*!
     * Materialize v0.100.2 (http://materializecss.com)
     * Copyright 2014-2015 Materialize
     * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
     */
    Severity: Major
    Found in extras/noUiSlider/nouislider.js - About 3 days to fix

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

      module.exports = function(grunt) {
      
        var concatFile = 'temp/js/materialize_concat.js.map';
      
        // configure the tasks
      Severity: Major
      Found in Gruntfile.js - About 2 days to fix

        Function PickerConstructor has 427 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        function PickerConstructor( ELEMENT, NAME, COMPONENT, OPTIONS ) {
        
            // If there’s no element, return the picker constructor.
            if ( !ELEMENT ) return PickerConstructor
        
        
        Severity: Major
        Found in js/date_picker/picker.js - About 2 days to fix

          File picker.date.js has 852 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          /*!
           * Date picker for pickadate.js v3.5.0
           * http://amsul.github.io/pickadate.js/date.htm
           */
          
          
          Severity: Major
          Found in js/date_picker/picker.date.js - About 2 days to fix

            Function init has 408 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                init : function(options) {
                  var defaults = {
                    duration: 200, // ms
                    dist: -100, // zoom scale TODO: make this more intuitive as an option
                    shift: 0, // spacing for center image
            Severity: Major
            Found in js/carousel.js - About 2 days to fix

              Function init has 291 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  init : function(options) {
                    var defaults = {
                      menuWidth: 300,
                      edge: 'left',
                      closeOnClick: false,
              Severity: Major
              Found in js/sideNav.js - About 1 day to fix

                Function nodes has 269 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                DatePicker.prototype.nodes = function( isOpen ) {
                
                    var
                        calendar = this,
                        settings = calendar.settings,
                Severity: Major
                Found in js/date_picker/picker.date.js - About 1 day to fix

                  File forms.js has 584 lines of code (exceeds 250 allowed). Consider refactoring.
                  Open

                  (function ($) {
                    $(document).ready(function() {
                  
                      // Function to update labels of text fields
                      Materialize.updateTextFields = function() {
                  Severity: Major
                  Found in js/forms.js - About 1 day to fix

                    File picker.js has 568 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    /*!
                     * pickadate.js v3.5.0, 2014/04/13
                     * By Amsul, http://amsul.ca
                     * Hosted on http://amsul.github.io/pickadate.js
                     * Licensed under MIT
                    Severity: Major
                    Found in js/date_picker/picker.js - About 1 day to fix

                      File Gruntfile.js has 562 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open

                      module.exports = function(grunt) {
                      
                        var concatFile = 'temp/js/materialize_concat.js.map';
                      
                        // configure the tasks
                      Severity: Major
                      Found in Gruntfile.js - About 1 day to fix

                        File picker.time.js has 562 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open

                        /*!
                         * ClockPicker v0.0.7 (http://weareoutman.github.io/clockpicker/)
                         * Copyright 2014 Wang Shenwei.
                         * Licensed under MIT (https://github.com/weareoutman/clockpicker/blob/gh-pages/LICENSE)
                         *
                        Severity: Major
                        Found in js/date_picker/picker.time.js - About 1 day to fix

                          Function material_chip has 233 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                            $.fn.material_chip = function (options) {
                              var self = this;
                              this.$el = $(this);
                              this.$document = $(document);
                              this.SELS = {
                          Severity: Major
                          Found in js/chips.js - About 1 day to fix

                            Function material_select has 232 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                              $.fn.material_select = function (callback) {
                                $(this).each(function(){
                                  var $select = $(this);
                            
                                  if ($select.hasClass('browser-default')) {
                            Severity: Major
                            Found in js/forms.js - About 1 day to fix

                              Function materialbox has 219 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                $.fn.materialbox = function () {
                              
                                  return this.each(function() {
                              
                                    if ($(this).hasClass('initialized')) {
                              Severity: Major
                              Found in js/materialbox.js - About 1 day to fix

                                Function init has 211 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    init : function(options) {
                                      var defaults = {
                                        indicators: true,
                                        height: 400,
                                        transition: 500,
                                Severity: Major
                                Found in js/slider.js - About 1 day to fix

                                  Function dropdown has 193 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                    $.fn.dropdown = function (options) {
                                      var defaults = {
                                        inDuration: 300,
                                        outDuration: 225,
                                        constrainWidth: true, // Constrains width of dropdown to the activator
                                  Severity: Major
                                  Found in js/dropdown.js - About 7 hrs to fix

                                    Function ClockPicker has 184 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        function ClockPicker(element, options) {
                                            var popover = $(tpl),
                                                    plate = popover.find('.clockpicker-plate'),
                                                    holder = popover.find('.picker__holder'),
                                                    hoursView = popover.find('.clockpicker-hours'),
                                    Severity: Major
                                    Found in js/date_picker/picker.time.js - About 7 hrs to fix

                                      Function tooltip has 171 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          $.fn.tooltip = function (options) {
                                            var timeout = null,
                                            margin = 5;
                                      
                                            // Defaults
                                      Severity: Major
                                      Found in js/tooltip.js - About 6 hrs to fix

                                        File carousel.js has 444 lines of code (exceeds 250 allowed). Consider refactoring.
                                        Open

                                        (function ($) {
                                        
                                          var methods = {
                                        
                                            init : function(options) {
                                        Severity: Minor
                                        Found in js/carousel.js - About 6 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language