NUBIC/surveyor

View on GitHub
lib/assets/javascripts/surveyor/jquery.maskedinput.js

Summary

Maintainability
D
1 day
Test Coverage

Function mask has 231 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    mask: function(mask, settings) {
        var input,
            defs,
            tests,
            partialPosition,
Severity: Major
Found in lib/assets/javascripts/surveyor/jquery.maskedinput.js - About 1 day to fix

    File jquery.maskedinput.js has 290 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    /*
        Masked Input plugin for jQuery
        Copyright (c) 2007-2013 Josh Bush (digitalbush.com)
        Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
        Version: 1.3.1
    Severity: Minor
    Found in lib/assets/javascripts/surveyor/jquery.maskedinput.js - About 2 hrs to fix

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

                  function checkVal(allow) {
                      //try to place characters where they belong
                      var test = input.val(),
                          lastMatch = -1,
                          i,
      Severity: Minor
      Found in lib/assets/javascripts/surveyor/jquery.maskedinput.js - About 1 hr to fix

        Function keypressEvent has 32 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

                    function keypressEvent(e) {
                        var k = e.which,
                            pos = input.caret(),
                            p,
                            c,
        Severity: Minor
        Found in lib/assets/javascripts/surveyor/jquery.maskedinput.js - About 1 hr to fix

          Function caret has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              caret: function(begin, end) {
                  var range;
          
                  if (this.length === 0 || this.is(":hidden")) {
                      return;
          Severity: Minor
          Found in lib/assets/javascripts/surveyor/jquery.maskedinput.js - About 1 hr to fix

            There are no issues that match your filters.

            Category
            Status