rootstrap/exception_hunter

View on GitHub

Showing 3 of 42 total issues

Function generateTOC has 61 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function generateTOC() {
  if ($('#filecontents').length === 0) return;
  var _toc = $('<ol class="top"></ol>');
  var show = false;
  var toc = _toc;
Severity: Major
Found in docs/js/app.js - About 2 hrs to fix

    Function constantSummaryToggle has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function constantSummaryToggle() {
      $('.constants_summary_toggle').click(function(e) {
        e.preventDefault();
        localStorage.summaryCollapsed = $(this).text();
        $('.constants_summary_toggle').each(function() {
    Severity: Minor
    Found in docs/js/app.js - About 1 hr to fix

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

      function summaryToggle() {
        $('.summary_toggle').click(function(e) {
          e.preventDefault();
          localStorage.summaryCollapsed = $(this).text();
          $('.summary_toggle').each(function() {
      Severity: Minor
      Found in docs/js/app.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language