edgewall/trac

View on GitHub
trac/htdocs/js/wikitoolbar.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function addWikiFormattingToolbar has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  window.addWikiFormattingToolbar = function(textarea) {
    if ((document.selection == undefined)
     && (textarea.setSelectionRange == undefined)) {
      return;
    }
Severity: Major
Found in trac/htdocs/js/wikitoolbar.js - About 3 hrs to fix

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

        function encloseSelection(prefix, suffix) {
          textarea.focus();
          var start, end, sel, scrollPos, subst;
          if (document.selection != undefined) {
            sel = document.selection.createRange().text;
    Severity: Minor
    Found in trac/htdocs/js/wikitoolbar.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status