Showing 3 of 7 total issues
Function onDomContentsLoaded
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onDomContentsLoaded = async () => {
const app = new Application();
await app.init({ width: 800, height: 800 });
document.body.appendChild(app.canvas);
Function initScrollBar
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const initScrollBar = (stage, view) => {
const SCROLLBAR_W = 16;
const SCROLLBAR_H = 360;
const SCROLLBAR_Y = 120;
const CONTENTS_W = 240;
Function initScrollBar
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const initScrollBar = (stage, view) => {
const SCROLLBAR_W = 360;
const SCROLLBAR_H = 16;
const SCROLLBAR_Y = 120;
const CONTENTS_SIZE = 160;