resources/assets/js/visualizers/asteroid/scripts/NoiseBlob.ts

Summary

Maintainability
C
1 day
Test Coverage

Function initShader has 89 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  initShader () {
    const screenRes = `vec2( ${this.w.toFixed(1)}, ${this.h.toFixed(1)})`

    const load = (_vert, _frag) => new THREE.ShaderMaterial({
      defines: {
Severity: Major
Found in resources/assets/js/visualizers/asteroid/scripts/NoiseBlob.ts - About 3 hrs to fix

    File NoiseBlob.ts has 276 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import * as THREE from 'three'
    import type { ThreeSharedRenderer } from './ThreeSharedRenderer'
    import type { ThreePBR } from './ThreePBR'
    import type { ThreePointLight } from './ThreePointLight'
    import type { AudioAnalyzer } from './AudioAnalyzer'
    Severity: Minor
    Found in resources/assets/js/visualizers/asteroid/scripts/NoiseBlob.ts - About 2 hrs to fix

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

        initScene () {
          const _sphere_size = 0.7
          const _geom = new THREE.SphereGeometry(_sphere_size, 128, 128)
          const _geom_lowres = new THREE.SphereGeometry(_sphere_size, 64, 64)
      
      
      Severity: Minor
      Found in resources/assets/js/visualizers/asteroid/scripts/NoiseBlob.ts - About 1 hr to fix

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

          update () {
            const shaders = [
              this.shaderMesh,
              this.shaderWire,
              this.shaderPoints,
        Severity: Minor
        Found in resources/assets/js/visualizers/asteroid/scripts/NoiseBlob.ts - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status