MasatoMakino/pixijs-basic-scrollbar

View on GitHub

Showing 3 of 7 total issues

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

const onDomContentsLoaded = async () => {
  const app = new Application();
  await app.init({ width: 800, height: 800 });

  document.body.appendChild(app.canvas);
Severity: Minor
Found in demoSrc/demo_scrollbar.js - About 1 hr to fix

    Function initScrollBar has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const initScrollBar = (stage, view) => {
      const SCROLLBAR_W = 16;
      const SCROLLBAR_H = 360;
      const SCROLLBAR_Y = 120;
      const CONTENTS_W = 240;
    Severity: Minor
    Found in demoSrc/demo_scrollbar.js - About 1 hr to fix

      Function initScrollBar has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      const initScrollBar = (stage, view) => {
        const SCROLLBAR_W = 360;
        const SCROLLBAR_H = 16;
        const SCROLLBAR_Y = 120;
        const CONTENTS_SIZE = 160;
      Severity: Minor
      Found in demoSrc/demo_scrollbar_horizontal.js - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language