NodeBB/NodeBB

View on GitHub
public/src/modules/navigator.js

Summary

Maintainability
C
1 day
Test Coverage

File navigator.js has 642 lines of code (exceeds 500 allowed). Consider refactoring.
Open

'use strict';

define('navigator', [
    'forum/pagination', 'components', 'hooks', 'alerts', 'translator', 'storage',
], function (pagination, components, hooks, alerts, translator, storage) {
Severity: Major
Found in public/src/modules/navigator.js - About 5 hrs to fix

    Function handleScrollNav has 131 lines of code (exceeds 75 allowed). Consider refactoring.
    Open

        function handleScrollNav() {
            if (!thumbs.length) {
                return;
            }
    
    
    Severity: Major
    Found in public/src/modules/navigator.js - About 3 hrs to fix

      Function init has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          navigator.init = function (selector, count, toTop, toBottom, callback) {
      Severity: Minor
      Found in public/src/modules/navigator.js - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status