Showing 5 of 5 total issues
File modref.js
has 468 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/* jshint undef: true, unused: true */
/* globals window, document, requestAnimationFrame */
/* exported PikeDoc */
var PikeDoc = null;
Function cacheFactory
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var cacheFactory = (function() {
// Don't use cache if the page isn't served through a server.
// The cache seems buggy as hell when the pages are view directly from
// the file system.
var cache = document.location.hostname && window.sessionStorage;
Function helpers
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var helpers = (function() {
// Returns basedir of `path`
function basedir(path) {
var i = path.lastIndexOf('/');
if (i < 1) return '';
Function lowNavbar
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function lowNavbar(container, heading, nodes, suffix) {
if (!nodes || !nodes.length) {
return;
}
Function loadScript
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function loadScript(link, namespace, inherits) {
wdebug('load: ', link);
if (cacheFactory.hasCache()) {
return;
}