nfroidure/midievents

View on GitHub
src/midievents.js

Summary

Maintainability
F
1 wk
Test Coverage

Function midiEventsCreateParser has a Cognitive Complexity of 132 (exceeds 5 allowed). Consider refactoring.
Open

MIDIEvents.createParser = function midiEventsCreateParser(
  stream,
  startAt,
  strictMode
) {
Severity: Minor
Found in src/midievents.js - About 2 days to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function midiEventsWriteToTrack has a Cognitive Complexity of 88 (exceeds 5 allowed). Consider refactoring.
Open

MIDIEvents.writeToTrack = function midiEventsWriteToTrack(
  events,
  destination,
  strictMode
) {
Severity: Minor
Found in src/midievents.js - About 1 day to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function midiEventsCreateParser has 282 lines of code (exceeds 25 allowed). Consider refactoring.
Open

MIDIEvents.createParser = function midiEventsCreateParser(
  stream,
  startAt,
  strictMode
) {
Severity: Major
Found in src/midievents.js - About 1 day to fix

    File midievents.js has 542 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    'use strict';
    
    // MIDIEvents : Read and edit events from various sources (ArrayBuffer, Stream)
    function MIDIEvents() {
      throw new Error('MIDIEvents function not intended to be run.');
    Severity: Major
    Found in src/midievents.js - About 1 day to fix

      Function next has 220 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          next: function() {
            // Check available datas
            if (stream.end()) {
              return null;
            }
      Severity: Major
      Found in src/midievents.js - About 1 day to fix

        Function midiEventsWriteToTrack has 169 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        MIDIEvents.writeToTrack = function midiEventsWriteToTrack(
          events,
          destination,
          strictMode
        ) {
        Severity: Major
        Found in src/midievents.js - About 6 hrs to fix

          Function getRequiredBufferLength has a Cognitive Complexity of 31 (exceeds 5 allowed). Consider refactoring.
          Open

          MIDIEvents.getRequiredBufferLength = function(events) {
            var bufferLength = 0;
            var i = 0;
            var j;
          
          
          Severity: Minor
          Found in src/midievents.js - About 4 hrs to fix

          Cognitive Complexity

          Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

          A method's cognitive complexity is based on a few simple rules:

          • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
          • Code is considered more complex for each "break in the linear flow of the code"
          • Code is considered more complex when "flow breaking structures are nested"

          Further reading

          Function getRequiredBufferLength has 35 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          MIDIEvents.getRequiredBufferLength = function(events) {
            var bufferLength = 0;
            var i = 0;
            var j;
          
          
          Severity: Minor
          Found in src/midievents.js - About 1 hr to fix

            Avoid deeply nested control flow statements.
            Open

                        if (strictMode && 59 < events[i].seconds) {
                          throw new Error(
                            'Event #' +
                              i +
                              ': SMTPE offset seconds value must' +
            Severity: Major
            Found in src/midievents.js - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                          for (k = 0, l = events[i].length; k < l; k++) {
                            destination[index++] = events[i].data[k];
                          }
              Severity: Major
              Found in src/midievents.js - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                            if (
                              'number' !== typeof events[i].scale ||
                              0 > events[i].scale ||
                              1 < events[i].scale
                            ) {
                Severity: Major
                Found in src/midievents.js - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                              if (strictMode && 99 < events[i].subframes) {
                                throw new Error(
                                  'Event #' +
                                    i +
                                    ': SMTPE offset subframes amount' +
                  Severity: Major
                  Found in src/midievents.js - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                for (k = 0, l = events[i].length; k < l; k++) {
                                  destination[index++] = events[i].data[k];
                                }
                    Severity: Major
                    Found in src/midievents.js - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                  if (strictMode && 23 < events[i].hour) {
                                    throw new Error(
                                      'Event #' +
                                        i +
                                        ': SMTPE offset hour value must be' +
                      Severity: Major
                      Found in src/midievents.js - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                    if (strictMode && 59 < events[i].minutes) {
                                      throw new Error(
                                        'Event #' +
                                          i +
                                          ': SMTPE offset minutes value must' +
                        Severity: Major
                        Found in src/midievents.js - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                      if (
                                        'number' != typeof events[i].key ||
                                        -7 > events[i].key ||
                                        7 < events[i].scale
                                      ) {
                          Severity: Major
                          Found in src/midievents.js - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                        if (strictMode && 30 < events[i].frames) {
                                          throw new Error(
                                            'Event #' +
                                              i +
                                              ': SMTPE offset frames amount must' +
                            Severity: Major
                            Found in src/midievents.js - About 45 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return event;
                              Severity: Major
                              Found in src/midievents.js - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                              return event;
                                Severity: Major
                                Found in src/midievents.js - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                                return event;
                                  Severity: Major
                                  Found in src/midievents.js - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return event;
                                    Severity: Major
                                    Found in src/midievents.js - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                    return event;
                                      Severity: Major
                                      Found in src/midievents.js - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                      return event;
                                        Severity: Major
                                        Found in src/midievents.js - About 30 mins to fix

                                          Avoid too many return statements within this function.
                                          Open

                                                      return event;
                                          Severity: Major
                                          Found in src/midievents.js - About 30 mins to fix

                                            Avoid too many return statements within this function.
                                            Open

                                                      return event;
                                            Severity: Major
                                            Found in src/midievents.js - About 30 mins to fix

                                              Avoid too many return statements within this function.
                                              Open

                                                          return event;
                                              Severity: Major
                                              Found in src/midievents.js - About 30 mins to fix

                                                Avoid too many return statements within this function.
                                                Open

                                                            return event;
                                                Severity: Major
                                                Found in src/midievents.js - About 30 mins to fix

                                                  Avoid too many return statements within this function.
                                                  Open

                                                                return event;
                                                  Severity: Major
                                                  Found in src/midievents.js - About 30 mins to fix

                                                    Avoid too many return statements within this function.
                                                    Open

                                                                return event;
                                                    Severity: Major
                                                    Found in src/midievents.js - About 30 mins to fix

                                                      Avoid too many return statements within this function.
                                                      Open

                                                                    return event;
                                                      Severity: Major
                                                      Found in src/midievents.js - About 30 mins to fix

                                                        Avoid too many return statements within this function.
                                                        Open

                                                                      return event;
                                                        Severity: Major
                                                        Found in src/midievents.js - About 30 mins to fix

                                                          Avoid too many return statements within this function.
                                                          Open

                                                                    return event;
                                                          Severity: Major
                                                          Found in src/midievents.js - About 30 mins to fix

                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                            Open

                                                                  bufferLength +=
                                                                    events[i].length >>> 21
                                                                      ? 4
                                                                      : events[i].length >>> 14
                                                                        ? 3
                                                            Severity: Major
                                                            Found in src/midievents.js and 1 other location - About 1 hr to fix
                                                            src/midievents.js on lines 563..570

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 65.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                            Open

                                                                bufferLength +=
                                                                  events[i].delta >>> 21
                                                                    ? 4
                                                                    : events[i].delta >>> 14
                                                                      ? 3
                                                            Severity: Major
                                                            Found in src/midievents.js and 1 other location - About 1 hr to fix
                                                            src/midievents.js on lines 590..597

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 65.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Identical blocks of code found in 2 locations. Consider refactoring.
                                                            Open

                                                                      case MIDIEvents.EVENT_META_CUE_POINT:
                                                                        for (k = 0, l = events[i].length; k < l; k++) {
                                                                          destination[index++] = events[i].data[k];
                                                                        }
                                                                        break;
                                                            Severity: Major
                                                            Found in src/midievents.js and 1 other location - About 1 hr to fix
                                                            src/midievents.js on lines 538..542

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 63.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Identical blocks of code found in 2 locations. Consider refactoring.
                                                            Open

                                                                      default:
                                                                        for (k = 0, l = events[i].length; k < l; k++) {
                                                                          destination[index++] = events[i].data[k];
                                                                        }
                                                                        break;
                                                            Severity: Major
                                                            Found in src/midievents.js and 1 other location - About 1 hr to fix
                                                            src/midievents.js on lines 448..452

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 63.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 6 locations. Consider refactoring.
                                                            Open

                                                                  if (events[i].length >>> 21) {
                                                                    destination[index++] = ((events[i].length >>> 21) & 0x7f) | 0x80;
                                                                  }
                                                            Severity: Major
                                                            Found in src/midievents.js and 5 other locations - About 50 mins to fix
                                                            src/midievents.js on lines 388..390
                                                            src/midievents.js on lines 391..393
                                                            src/midievents.js on lines 394..396
                                                            src/midievents.js on lines 429..431
                                                            src/midievents.js on lines 432..434

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 52.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                            Open

                                                                  if (events[i].length >>> 28) {
                                                                    throw Error(
                                                                      'Event #' +
                                                                        i +
                                                                        ': Maximum length reached (' +
                                                            Severity: Minor
                                                            Found in src/midievents.js and 1 other location - About 50 mins to fix
                                                            src/midievents.js on lines 379..387

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 52.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 6 locations. Consider refactoring.
                                                            Open

                                                                if (events[i].delta >>> 7) {
                                                                  destination[index++] = ((events[i].delta >>> 7) & 0x7f) | 0x80;
                                                                }
                                                            Severity: Major
                                                            Found in src/midievents.js and 5 other locations - About 50 mins to fix
                                                            src/midievents.js on lines 388..390
                                                            src/midievents.js on lines 391..393
                                                            src/midievents.js on lines 426..428
                                                            src/midievents.js on lines 429..431
                                                            src/midievents.js on lines 432..434

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 52.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 2 locations. Consider refactoring.
                                                            Open

                                                                if (events[i].delta >>> 28) {
                                                                  throw Error(
                                                                    'Event #' +
                                                                      i +
                                                                      ': Maximum delta time value reached (' +
                                                            Severity: Minor
                                                            Found in src/midievents.js and 1 other location - About 50 mins to fix
                                                            src/midievents.js on lines 417..425

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 52.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 6 locations. Consider refactoring.
                                                            Open

                                                                  if (events[i].length >>> 14) {
                                                                    destination[index++] = ((events[i].length >>> 14) & 0x7f) | 0x80;
                                                                  }
                                                            Severity: Major
                                                            Found in src/midievents.js and 5 other locations - About 50 mins to fix
                                                            src/midievents.js on lines 388..390
                                                            src/midievents.js on lines 391..393
                                                            src/midievents.js on lines 394..396
                                                            src/midievents.js on lines 426..428
                                                            src/midievents.js on lines 432..434

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 52.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 6 locations. Consider refactoring.
                                                            Open

                                                                if (events[i].delta >>> 21) {
                                                                  destination[index++] = ((events[i].delta >>> 21) & 0x7f) | 0x80;
                                                                }
                                                            Severity: Major
                                                            Found in src/midievents.js and 5 other locations - About 50 mins to fix
                                                            src/midievents.js on lines 391..393
                                                            src/midievents.js on lines 394..396
                                                            src/midievents.js on lines 426..428
                                                            src/midievents.js on lines 429..431
                                                            src/midievents.js on lines 432..434

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 52.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 6 locations. Consider refactoring.
                                                            Open

                                                                if (events[i].delta >>> 14) {
                                                                  destination[index++] = ((events[i].delta >>> 14) & 0x7f) | 0x80;
                                                                }
                                                            Severity: Major
                                                            Found in src/midievents.js and 5 other locations - About 50 mins to fix
                                                            src/midievents.js on lines 388..390
                                                            src/midievents.js on lines 394..396
                                                            src/midievents.js on lines 426..428
                                                            src/midievents.js on lines 429..431
                                                            src/midievents.js on lines 432..434

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 52.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Similar blocks of code found in 6 locations. Consider refactoring.
                                                            Open

                                                                  if (events[i].length >>> 7) {
                                                                    destination[index++] = ((events[i].length >>> 7) & 0x7f) | 0x80;
                                                                  }
                                                            Severity: Major
                                                            Found in src/midievents.js and 5 other locations - About 50 mins to fix
                                                            src/midievents.js on lines 388..390
                                                            src/midievents.js on lines 391..393
                                                            src/midievents.js on lines 394..396
                                                            src/midievents.js on lines 426..428
                                                            src/midievents.js on lines 429..431

                                                            Duplicated Code

                                                            Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                                            Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                                            When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                                            Tuning

                                                            This issue has a mass of 52.

                                                            We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                                            The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                                            If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                                            See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                                            Refactorings

                                                            Further Reading

                                                            Delete ,
                                                            Open

                                                                  },
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·must·be·part·of·0-99.' with "·must·be·part·of·0-99."
                                                            Open

                                                                                ' must be part of 0-99.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ').' with ")."
                                                            Open

                                                                              ').'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ':·Maximum·delta·time·value·reached·(' with ":·Maximum·delta·time·value·reached·("
                                                            Open

                                                                      ': Maximum delta time value reached (' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'MIDIEvents·function·not·intended·to·be·run.' with "MIDIEvents·function·not·intended·to·be·run."
                                                            Open

                                                              throw new Error('MIDIEvents function not intended to be run.');
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace k·=·0,·l·=·events[i].length with (k·=·0),·(l·=·events[i].length)
                                                            Open

                                                                        for (k = 0, l = events[i].length; k < l; k++) {
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ········ with ······
                                                            Open

                                                                    ? 4
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '0x' with "0x"
                                                            Open

                                                                    return '0x' + (this.buffer.byteOffset + this.position).toString(16);
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Bad·metaevent·length.' with "·Bad·metaevent·length."
                                                            Open

                                                                            throw new Error(stream.pos() + ' Bad metaevent length.');
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·SMTPE·offset·frames·value·must' with "·SMTPE·offset·frames·value·must"
                                                            Open

                                                                                ' SMTPE offset frames value must' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ',·Delta:·' with ",·Delta:·"
                                                            Open

                                                                            ', Delta: ' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'number' with "number"
                                                            Open

                                                                          'number' != typeof events[i].key ||
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Delete ··
                                                            Open

                                                                      ? 4
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ':' with ":"
                                                            Open

                                                                        ':' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·be·part·of·0-30.' with "·be·part·of·0-30."
                                                            Open

                                                                                ' be part of 0-30.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace i·=·0,·j·=·events.length with (i·=·0),·(j·=·events.length)
                                                            Open

                                                              for (i = 0, j = events.length; i < j; i++) {
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'Event·#' with "Event·#"
                                                            Open

                                                                    'Event #' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '/134217728·max)' with "/134217728·max)"
                                                            Open

                                                                        '/134217728 max)'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ':·SMTPE·offset·hour·value·must·be' with ":·SMTPE·offset·hour·value·must·be"
                                                            Open

                                                                              ': SMTPE offset hour value must be' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Bad·metaevent·length.' with "·Bad·metaevent·length."
                                                            Open

                                                                            throw new Error(stream.pos() + ' Bad metaevent length.');
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Bad·metaevent·length.' with "·Bad·metaevent·length."
                                                            Open

                                                                            throw new Error(stream.pos() + ' Bad metaevent length.');
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Unknown·meta·event·type·' with "·Unknown·meta·event·type·"
                                                            Open

                                                                                ' Unknown meta event type ' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Unknown·MIDI·event·type·' with "·Unknown·MIDI·event·type·"
                                                            Open

                                                                              ' Unknown MIDI event type ' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '(' with "("
                                                            Open

                                                                              '(' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·SMTPE·offset·hour·value·must' with "·SMTPE·offset·hour·value·must"
                                                            Open

                                                                                ' SMTPE offset hour value must' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace i·=·0,·j·=·events.length with (i·=·0),·(j·=·events.length)
                                                            Open

                                                              for (i = 0, j = events.length; i < j; i++) {
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '(' with "("
                                                            Open

                                                                                '(' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Running·status·without·previous·event' with "·Running·status·without·previous·event"
                                                            Open

                                                                          stream.pos() + ' Running status without previous event'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Delete ,
                                                            Open

                                                                },
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ':·Maximum·length·reached·(' with ":·Maximum·length·reached·("
                                                            Open

                                                                        ': Maximum length reached (' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·part·of·0-23.' with "·part·of·0-23."
                                                            Open

                                                                              ' part of 0-23.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ':·SMTPE·offset·seconds·value·must' with ":·SMTPE·offset·seconds·value·must"
                                                            Open

                                                                              ': SMTPE offset seconds value must' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ':·SMTPE·offset·subframes·amount' with ":·SMTPE·offset·subframes·amount"
                                                            Open

                                                                              ': SMTPE offset subframes amount' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ········:·events[i].delta·>>>·14⏎··········?·3⏎··········:·events[i].delta·>>>·7⏎············?·2⏎··········· with ······:·events[i].delta·>>>·14·?·3·:·events[i].delta·>>>·7·?·2
                                                            Open

                                                                    : events[i].delta >>> 14
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Bad·metaevent·length.' with "·Bad·metaevent·length."
                                                            Open

                                                                            throw new Error(stream.pos() + ' Bad metaevent length.');
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Tempo·meta·event·length·must·be·3.' with "·Tempo·meta·event·length·must·be·3."
                                                            Open

                                                                              stream.pos() + ' Tempo meta event length must be 3.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·must·be·part·of·0-59.' with "·must·be·part·of·0-59."
                                                            Open

                                                                                ' must be part of 0-59.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·be·0·or·1.' with "·be·0·or·1."
                                                            Open

                                                                                ' be 0 or 1.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Delete ,
                                                            Open

                                                              MIDIEvents.EVENT_MIDI_CHANNEL_AFTERTOUCH,
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace k·=·0,·l·=·events[i].length with (k·=·0),·(l·=·events[i].length)
                                                            Open

                                                                        for (k = 0, l = events[i].length; k < l; k++) {
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'Event·#' with "Event·#"
                                                            Open

                                                                            'Event #' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ':·SMTPE·offset·frames·amount·must' with ":·SMTPE·offset·frames·amount·must"
                                                            Open

                                                                              ': SMTPE offset frames amount must' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Delete ,
                                                            Open

                                                              MIDIEvents.EVENT_MIDI_PITCH_BEND,
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Variable·integer·length·cannot·exceed·4·bytes' with "·Variable·integer·length·cannot·exceed·4·bytes"
                                                            Open

                                                                        ' Variable integer length cannot exceed 4 bytes'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Delete ,
                                                            Open

                                                                    delta: stream.readVarInt(),
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'Event·#' with "Event·#"
                                                            Open

                                                                            'Event #' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'Event·#' with "Event·#"
                                                            Open

                                                                            'Event #' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·SMTPE·offset·seconds·value' with "·SMTPE·offset·seconds·value"
                                                            Open

                                                                                ' SMTPE offset seconds value' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·SMTPE·offset·subframes·value' with "·SMTPE·offset·subframes·value"
                                                            Open

                                                                                ' SMTPE offset subframes value' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Unknown·event·type·' with "·Unknown·event·type·"
                                                            Open

                                                                            ' Unknown event type ' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ':·SMTPE·offset·minutes·value·must' with ":·SMTPE·offset·minutes·value·must"
                                                            Open

                                                                              ': SMTPE offset minutes value must' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·be·part·of·0-23.' with "·be·part·of·0-23."
                                                            Open

                                                                                ' be part of 0-23.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·must·be·part·of·0-99.' with "·must·be·part·of·0-99."
                                                            Open

                                                                              ' must be part of 0-99.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '/134217728·max)' with "/134217728·max)"
                                                            Open

                                                                      '/134217728 max)'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'Event·#'·+·i·+·':'·+·'The·key·signature·scale·must·be·0·or·1' with "Event·#"·+·i·+·":"·+·"The·key·signature·scale·must·be·0·or·1"
                                                            Open

                                                                            'Event #' + i + ':' + 'The key signature scale must be 0 or 1'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·be·part·of·0-59.' with "·be·part·of·0-59."
                                                            Open

                                                                              ' be part of 0-59.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·between·-7·and·7' with "·between·-7·and·7"
                                                            Open

                                                                              ' between -7 and 7'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '0x' with "0x"
                                                            Open

                                                                      '0x' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '.' with "."
                                                            Open

                                                                            '.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Delete ⏎·······
                                                            Open

                                                                  bufferLength +=
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'use·strict' with "use·strict"
                                                            Open

                                                            'use strict';
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Bad·metaevent·length.' with "·Bad·metaevent·length."
                                                            Open

                                                                            throw new Error(stream.pos() + ' Bad metaevent length.');
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ').' with ")."
                                                            Open

                                                                                ').'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·be·part·of·0-59.' with "·be·part·of·0-59."
                                                            Open

                                                                              ' be part of 0-59.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'Event·#' with "Event·#"
                                                            Open

                                                                            'Event #' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·must·be·part·of·0-59.' with "·must·be·part·of·0-59."
                                                            Open

                                                                                ' must be part of 0-59.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ':The·key·signature·key·must·be' with ":The·key·signature·key·must·be"
                                                            Open

                                                                              ':The key signature key must be' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace (k·=·0,·l·=·events[i].length with ((k·=·0),·(l·=·events[i].length)
                                                            Open

                                                                    for (k = 0, l = events[i].length; k < l; k++) {
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Delete ⏎·····
                                                            Open

                                                                bufferLength +=
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Bad·metaevent·length.' with "·Bad·metaevent·length."
                                                            Open

                                                                            throw new Error(stream.pos() + ' Bad metaevent length.');
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'Event·#' with "Event·#"
                                                            Open

                                                                      'Event #' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'Event·#' with "Event·#"
                                                            Open

                                                                            'Event #' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'Event·#' with "Event·#"
                                                            Open

                                                                            'Event #' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace ··········:·events[i].length·>>>·14⏎············?·3⏎············:·events[i].length·>>>·7⏎··············?·2⏎············· with ········:·events[i].length·>>>·14·?·3·:·events[i].length·>>>·7·?·2
                                                            Open

                                                                      : events[i].length >>> 14
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·SMTPE·offset·minutes·value' with "·SMTPE·offset·minutes·value"
                                                            Open

                                                                                ' SMTPE offset minutes value' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Bad·metaevent·length.' with "·Bad·metaevent·length."
                                                            Open

                                                                            throw new Error(stream.pos() + ' Bad metaevent length.');
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·Key·signature·scale·value·must' with "·Key·signature·scale·value·must"
                                                            Open

                                                                                ' Key signature scale value must' +
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace '·be·part·of·0-30.' with "·be·part·of·0-30."
                                                            Open

                                                                              ' be part of 0-30.'
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            Replace 'number' with "number"
                                                            Open

                                                                          'number' !== typeof events[i].scale ||
                                                            Severity: Minor
                                                            Found in src/midievents.js by eslint

                                                            For more information visit Source: http://eslint.org/docs/rules/

                                                            There are no issues that match your filters.

                                                            Category
                                                            Status