rauversion/rauversion-ror

View on GitHub
app/javascript/controllers/player_controller.js

Summary

Maintainability
B
4 hrs
Test Coverage

`` has 24 functions (exceeds 20 allowed). Consider refactoring.
Open

export default class extends Controller {
  static targets = [
    "player", 
    "playicon", 
    "pauseicon", 
Severity: Minor
Found in app/javascript/controllers/player_controller.js - About 2 hrs to fix

    Function initWave has 52 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      initWave() {
        this.peaks = this.peaksValue
        this.url = this.urlValue
    
        console.log("OELLELE", this.playerTarget)
    Severity: Major
    Found in app/javascript/controllers/player_controller.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status