FanaHOVA/blazer

View on GitHub
app/assets/javascripts/blazer/application.js

Summary

Maintainability
A
2 hrs
Test Coverage

Consider simplifying this complex logical expression.
Open

    if (e.keyCode == 8) {
      var d = e.srcElement || e.target
      switch (d.tagName.toUpperCase()) {
        case 'TEXTAREA':
          preventKeyPress = d.readOnly || d.disabled
Severity: Critical
Found in app/assets/javascripts/blazer/application.js - About 1 hr to fix

    Function preventBackspaceNav has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function preventBackspaceNav() {
      $(document).keydown(function (e) {
        var preventKeyPress
        if (e.keyCode == 8) {
          var d = e.srcElement || e.target
    Severity: Minor
    Found in app/assets/javascripts/blazer/application.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status