bemusic/bemuse

View on GitHub
bemuse/src/game/index.tsx

Summary

Maintainability
B
4 hrs
Test Coverage

Function main has 75 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export async function main() {
  // iOS
  window.addEventListener('touchstart', function unmute() {
    unmuteAudio(audioContext)
    window.removeEventListener('touchstart', unmute)
Severity: Major
Found in bemuse/src/game/index.tsx - About 3 hrs to fix

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

      const getSong = async function (): Promise<GameLoader.LoadSpec> {
        const kbm = (query.keyboard || '').split(',').map((x) => +x)
        const options: OptionsDraft = {
          url: query.bms || '/music/[snack]dddd/dddd_sph.bme',
          game: {
    Severity: Minor
    Found in bemuse/src/game/index.tsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status