nfroidure/midievents

View on GitHub
src/midievents.mocha.js

Summary

Maintainability
B
5 hrs
Test Coverage

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

'use strict';

var assert = require('assert');
var MIDIEvents = require('../src/midievents');

Severity: Minor
Found in src/midievents.mocha.js - About 5 hrs to fix

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

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

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

    Delete ,
    Open

          param4: 8,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace 'Should·write·midi·events·well' with "Should·write·midi·events·well"
    Open

      it('Should write midi events well', function() {
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '·index·values·differs·(' with "·index·values·differs·("
    Open

              ' index values differs (' +
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

          param1: 5,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

          param2: 64,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0x0' with "0x0"
    Open

          index: '0x0',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

          param1: 70,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0xf' with "0xf"
    Open

          index: '0xf',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0x18' with "0x18"
    Open

          index: '0x18',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

          param2: 32,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace 'For·events·write' with "For·events·write"
    Open

    describe('For events write', function() {
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0x33' with "0x33"
    Open

          index: '0x33',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

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

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

    Replace 'Reading·well·formed·MIDI·events' with "Reading·well·formed·MIDI·events"
    Open

    describe('Reading well formed MIDI events', function() {
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace 'Should·parse·time·signature' with "Should·parse·time·signature"
    Open

      it('Should parse time signature', function() {
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

          param2: 96,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0x1f' with "0x1f"
    Open

          index: '0x1f',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace 'assert' with "assert"
    Open

    var assert = require('assert');
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0x2c' with "0x2c"
    Open

          index: '0x2c',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

          param2: 64,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace ',' with ","
    Open

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

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

    Delete ,
    Open

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

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

    Delete ,
    Open

          param2: 64,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace ').' with ")."
    Open

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

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

    Replace '0x15' with "0x15"
    Open

          index: '0x15',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

          param2: 96,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0x1c' with "0x1c"
    Open

          index: '0x1c',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

          param2: 64,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0x37' with "0x37"
    Open

          index: '0x37',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0x2f' with "0x2f"
    Open

          index: '0x2f',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0x8' with "0x8"
    Open

          index: '0x8',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '../src/midievents' with "../src/midievents"
    Open

    var MIDIEvents = require('../src/midievents');
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0x12' with "0x12"
    Open

          index: '0x12',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

          param1: 46,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0x23' with "0x23"
    Open

          index: '0x23',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace 'Should·write·midi·events·well' with "Should·write·midi·events·well"
    Open

      it('Should write midi events well', function() {
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace 'Should·work' with "Should·work"
    Open

      it('Should work', function() {
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

          tempoBPM: 120,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Replace '0x27' with "0x27"
    Open

          index: '0x27',
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

          length: 0,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

          param2: 64,
    Severity: Minor
    Found in src/midievents.mocha.js by eslint

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

    Delete ,
    Open

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

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

    There are no issues that match your filters.

    Category
    Status