Showing 8 of 12 total issues
File app.js
has 277 lines of code (exceeds 250 allowed). Consider refactoring. Open
(function() { var localStorage = {}, sessionStorage = {};try { localStorage = window.localStorage; } catch (e) { }try { sessionStorage = window.sessionStorage; } catch (e) { }
Function generateTOC
has 50 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;
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() {
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() {
Similar blocks of code found in 2 locations. Consider refactoring. Wontfix
if (localStorage.summaryCollapsed == "collapse") { $('.constants_summary_toggle').first().click(); } else { localStorage.summaryCollapsed = "expand"; }
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Wontfix
function() { $(this).parent().nextAll('.source_code').slideUp(100); $(this).text("View source"); });
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Wontfix
if (localStorage.summaryCollapsed == "collapse") { $('.summary_toggle').first().click(); } else { localStorage.summaryCollapsed = "expand"; }
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Wontfix
$('.toggleSource').toggle(function() { $(this).parent().nextAll('.source_code').slideDown(100); $(this).text("Hide source"); },
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
$('#toc .hide_toc').toggle(function() { $('#toc .top').slideUp('fast'); $('#toc').toggleClass('hidden'); $('#toc .title small').toggle(); }, function() {
- Read upRead up
Similar blocks of code found in 2 locations. Consider refactoring. Open
}, function() { $('#toc .top').slideDown('fast'); $('#toc').toggleClass('hidden'); $('#toc .title small').toggle(); });
- Read upRead up
Identical blocks of code found in 2 locations. Consider refactoring. Open
$(this).parent().prev().height($(this).parent().height());
- Read upRead up
Identical blocks of code found in 2 locations. Consider refactoring. Open
$(this).parent().prev().height($(this).parent().height());
- Read upRead up