angelakuo/citydogshare

View on GitHub
public/assets/semantic-ui/form-e901d0849a14a072e7c442a607b67963b650e18ae9250e24fd7b45f7de4c5743.js

Summary

Maintainability
F
1 wk
Test Coverage

Function form has 776 lines of code (exceeds 25 allowed). Consider refactoring.
Open

$.fn.form = function(fields, parameters) {
  var
    $allModules     = $(this),

    settings        = $.extend(true, {}, $.fn.form.settings, parameters),

    File form-e901d0849a14a072e7c442a607b67963b650e18ae9250e24fd7b45f7de4c5743.js has 933 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
     * # Semantic - Form Validation
     * http://github.com/semantic-org/semantic-ui/
     *
     *

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

              invoke: function(query, passedArguments, context) {
                var
                  object = instance,
                  maxDepth,
                  found,

        Function values has 41 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                  values: function (fields) {
                    var
                      values = {}
                    ;
                    // return all fields if no parameters

          Function prompt has 40 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                    prompt: function(identifier, errors) {
                      var
                        $field       = module.get.field(identifier),
                        $fieldGroup  = $field.closest($group),
                        $prompt      = $fieldGroup.children(selector.prompt),

            Function values has 40 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                      values: function (fields) {
                        if($.isEmptyObject(fields)) {
                          return;
                        }
                        $.each(fields, function(key, value) {

              Function reset has 36 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      reset: function() {
                        $field
                          .each(function () {
                            var
                              $field       = $(this),

                Function field has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                          field: function(field) {
                            var
                              $field      = module.get.field(field.identifier),
                              fieldValid  = true,
                              fieldErrors = []

                  Function clear has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                          clear: function() {
                            $field
                              .each(function () {
                                var
                                  $field       = $(this),

                    Function form has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                              form: function(event) {
                                var
                                  allValid = true,
                                  apiRequest
                                ;

                      Function display has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                                display: function() {
                                  var
                                    title = settings.name + ':',
                                    totalTime = 0
                                  ;

                        Function keydown has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                    keydown: function(event) {
                                      var
                                        $field  = $(this),
                                        key     = event.which,
                                        keyCode = {

                          Function integer has 27 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              integer: function(value, range) {
                                var
                                  intRegExp = /^\-?\d+$/,
                                  min,
                                  max,

                            There are no issues that match your filters.

                            Category
                            Status