nus-mtp/sashimi-note

View on GitHub
sashimi-webapp/src/logic/inputHandler/DocumentNavigator/index.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function addDomStyling has 78 lines of code (exceeds 25 allowed). Consider refactoring.
Open

DocumentNavigator.prototype.addDomStyling = function addDomStyling() {
  // Reset parent height to force DOM relayout
  // [1] Initialise layout properties
  const containerReference = this.el.container;
  const containerRefStyle = domUtils.getComputedStyle(containerReference);
Severity: Major
Found in sashimi-webapp/src/logic/inputHandler/DocumentNavigator/index.js - About 3 hrs to fix

    Function addEventListeners has 48 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    DocumentNavigator.prototype.addEventListeners = function addEventListeners() {
      this.eventInstance = {
        pointers: {},
        numPointers: 0,
        state: {
    Severity: Minor
    Found in sashimi-webapp/src/logic/inputHandler/DocumentNavigator/index.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status