inertia186/obarc

View on GitHub
doc/js/app.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function generateTOC has 57 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 doc/js/app.js - About 2 hrs to fix

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

    function summaryToggle() {
      $('.summary_toggle').click(function() {
        if (localStorage) {
          localStorage.summaryCollapsed = $(this).text();
        }
    Severity: Minor
    Found in doc/js/app.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status