angelakuo/citydogshare

View on GitHub
public/assets/materialize/forms-d9743bd4515fb298375d55740daf85a261d1aa2e15a741cd1f609a38d833fc71.js

Summary

Maintainability
D
2 days
Test Coverage

Function material_select has 229 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')) {

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

    (function ($) {
      $(document).ready(function() {
    
        // Function to update labels of text fields
        Materialize.updateTextFields = function() {

      Function autocomplete has 57 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          $.fn.autocomplete = function (options) {
            // Defaults
            var defaults = {
              data: {}
            };

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

                  onKeyDown = function(e){
                    // TAB - switch to another input
                    if(e.which == 9){
                      $newSelect.trigger('close');
                      return;

          Avoid deeply nested control flow statements.
          Open

                            if(!!data[key]) {
                              autocompleteOption.append('<img src="'+ data[key] +'" class="right circle"><span>'+ key +'</span>');
                            } else {
                              autocompleteOption.append('<span>'+ key +'</span>');
                            }

            There are no issues that match your filters.

            Category
            Status