pikelang/Pike

View on GitHub

Showing 5 of 5 total issues

File modref.js has 468 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* jshint undef: true, unused: true */
/* globals window, document, requestAnimationFrame */
/* exported PikeDoc */

var PikeDoc = null;
Severity: Minor
Found in refdoc/structure/modref.js - About 7 hrs to fix

    Function cacheFactory has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    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;
    Severity: Minor
    Found in refdoc/structure/modref.js - About 2 hrs to fix

      Function helpers has 38 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var helpers = (function() {
        // Returns basedir of `path`
        function basedir(path) {
          var i = path.lastIndexOf('/');
          if (i < 1) return '';
      Severity: Minor
      Found in refdoc/structure/modref.js - About 1 hr to fix

        Function lowNavbar has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function lowNavbar(container, heading, nodes, suffix) {
            if (!nodes || !nodes.length) {
              return;
            }
        
        
        Severity: Minor
        Found in refdoc/structure/modref.js - About 1 hr to fix

          Function loadScript has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

            function loadScript(link, namespace, inherits) {
              wdebug('load: ', link);
              if (cacheFactory.hasCache()) {
                return;
              }
          Severity: Minor
          Found in refdoc/structure/modref.js - About 1 hr to fix
            Severity
            Category
            Status
            Source
            Language