bemusic/bemuse

View on GitHub
packages/bemuse-tools/src/server.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createSongServer has 41 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function createSongServer(dir) {
  const promise = glob('**/*.{wav,ogg,mp3,m4a,flac}', { cwd: dir })
    .map((name) =>
      stat(path.join(dir, name)).then((stats) => ({
        name: name,
Severity: Minor
Found in packages/bemuse-tools/src/server.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status