plugins/editor/markup/script/00-jquery.textselection.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function Selection has 91 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  var Selection = (function() {

      var hasRange = (typeof document.selection !== 'undefined' && typeof document.selection.createRange !== 'undefined');

    return {
Severity: Major
Found in plugins/editor/markup/script/00-jquery.textselection.js - About 3 hrs to fix

    Function getSelectionRange has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          getSelectionRange: function(el) {
    
              var start,
                  end,
                  range,
    Severity: Minor
    Found in plugins/editor/markup/script/00-jquery.textselection.js - About 1 hr to fix

      Function insertText has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

            insertText: function(el, text, start, end, selectText) {
      Severity: Minor
      Found in plugins/editor/markup/script/00-jquery.textselection.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status