Sorry, data for that comparison is no longer available.

pedromsantos/glenn

View on GitHub
src/__test__/Domain/Scale.test.ts

Summary

Maintainability
A
0 mins
Test Coverage

File Scale.test.ts has 575 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

import * as fc from 'fast-check';

import { ChordPattern } from '../../Domain/Chord';
import { Duration } from '../../Domain/Duration';
import { Note, Octave } from '../../Domain/Note';
Severity: Major
Found in src/__test__/Domain/Scale.test.ts - About 1 day to fix

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

      test('melodic line from scale with octave above', () => {
        const line = ScalePattern.Ionian.createScale(Pitch.C)
          .melodicLine(Duration.Eighth, Octave.C4)
          .appendOctaveAbove();
    
    
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 1 other location - About 1 day to fix
    src/__test__/Domain/Scale.test.ts on lines 496..517

    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 350.

    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.
    Wontfix

      test('melodic line from scale with octave bellow', () => {
        const line = ScalePattern.Ionian.createScale(Pitch.C)
          .melodicLine(Duration.Eighth, Octave.C4)
          .prependOctaveDown();
    
    
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 1 other location - About 1 day to fix
    src/__test__/Domain/Scale.test.ts on lines 473..494

    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 350.

    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.
    Wontfix

      test('Harmonize II degree of Ionian mode as a seventh chord', () => {
        const chord = harmonizer.chordFor(ScaleDegree.II);
    
        expect(chord.Pattern).toStrictEqual(ChordPattern.Minor7);
        expect(Array.from(chord).map((p) => p.Name)).toStrictEqual(
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 606..613
    src/__test__/Domain/Scale.test.ts on lines 615..622
    src/__test__/Domain/Scale.test.ts on lines 624..631
    src/__test__/Domain/Scale.test.ts on lines 633..640
    src/__test__/Domain/Scale.test.ts on lines 642..649

    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 131.

    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.
    Wontfix

      test('Harmonize IV degree of Ionian mode as a seventh chord', () => {
        const chord = harmonizer.chordFor(ScaleDegree.IV);
    
        expect(chord.Pattern).toStrictEqual(ChordPattern.Major7);
        expect(Array.from(chord).map((p) => p.Name)).toStrictEqual(
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 597..604
    src/__test__/Domain/Scale.test.ts on lines 606..613
    src/__test__/Domain/Scale.test.ts on lines 624..631
    src/__test__/Domain/Scale.test.ts on lines 633..640
    src/__test__/Domain/Scale.test.ts on lines 642..649

    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 131.

    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.
    Wontfix

      test('Harmonize III degree of Ionian mode as a seventh chord', () => {
        const chord = harmonizer.chordFor(ScaleDegree.III);
    
        expect(chord.Pattern).toStrictEqual(ChordPattern.Minor7);
        expect(Array.from(chord).map((p) => p.Name)).toStrictEqual(
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 597..604
    src/__test__/Domain/Scale.test.ts on lines 615..622
    src/__test__/Domain/Scale.test.ts on lines 624..631
    src/__test__/Domain/Scale.test.ts on lines 633..640
    src/__test__/Domain/Scale.test.ts on lines 642..649

    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 131.

    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.
    Wontfix

      test('Harmonize VI degree of Ionian mode as a seventh chord', () => {
        const chord = harmonizer.chordFor(ScaleDegree.VI);
    
        expect(chord.Pattern).toStrictEqual(ChordPattern.Minor7);
        expect(Array.from(chord).map((p) => p.Name)).toStrictEqual(
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 597..604
    src/__test__/Domain/Scale.test.ts on lines 606..613
    src/__test__/Domain/Scale.test.ts on lines 615..622
    src/__test__/Domain/Scale.test.ts on lines 624..631
    src/__test__/Domain/Scale.test.ts on lines 642..649

    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 131.

    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.
    Wontfix

      test('Harmonize V degree of Ionian mode as a seventh chord', () => {
        const chord = harmonizer.chordFor(ScaleDegree.V);
    
        expect(chord.Pattern).toStrictEqual(ChordPattern.Dominant7);
        expect(Array.from(chord).map((p) => p.Name)).toStrictEqual(
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 597..604
    src/__test__/Domain/Scale.test.ts on lines 606..613
    src/__test__/Domain/Scale.test.ts on lines 615..622
    src/__test__/Domain/Scale.test.ts on lines 633..640
    src/__test__/Domain/Scale.test.ts on lines 642..649

    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 131.

    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.
    Wontfix

      test('Harmonize VII degree of Ionian mode as a seventh chord', () => {
        const chord = harmonizer.chordFor(ScaleDegree.VII);
    
        expect(chord.Pattern).toStrictEqual(ChordPattern.Minor7b5);
        expect(Array.from(chord).map((p) => p.Name)).toStrictEqual(
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 597..604
    src/__test__/Domain/Scale.test.ts on lines 606..613
    src/__test__/Domain/Scale.test.ts on lines 615..622
    src/__test__/Domain/Scale.test.ts on lines 624..631
    src/__test__/Domain/Scale.test.ts on lines 633..640

    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 131.

    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.
    Wontfix

      test('Harmonize III degree of Ionian mode as a triad', () => {
        const chord = harmonizer.chordFor(ScaleDegree.III);
    
        expect(chord.Pattern).toStrictEqual(ChordPattern.Minor);
        expect(Array.from(chord).map((p) => p.Name)).toStrictEqual(
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 531..538
    src/__test__/Domain/Scale.test.ts on lines 549..556
    src/__test__/Domain/Scale.test.ts on lines 558..565
    src/__test__/Domain/Scale.test.ts on lines 567..574
    src/__test__/Domain/Scale.test.ts on lines 576..583

    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 126.

    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.
    Wontfix

      test('Harmonize II degree of Ionian mode as a triad', () => {
        const chord = harmonizer.chordFor(ScaleDegree.II);
    
        expect(chord.Pattern).toStrictEqual(ChordPattern.Minor);
        expect(Array.from(chord).map((p) => p.Name)).toStrictEqual(
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 540..547
    src/__test__/Domain/Scale.test.ts on lines 549..556
    src/__test__/Domain/Scale.test.ts on lines 558..565
    src/__test__/Domain/Scale.test.ts on lines 567..574
    src/__test__/Domain/Scale.test.ts on lines 576..583

    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 126.

    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.
    Wontfix

      test('Harmonize IV degree of Ionian mode as a triad', () => {
        const chord = harmonizer.chordFor(ScaleDegree.IV);
    
        expect(chord.Pattern).toStrictEqual(ChordPattern.Major);
        expect(Array.from(chord).map((p) => p.Name)).toStrictEqual(
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 531..538
    src/__test__/Domain/Scale.test.ts on lines 540..547
    src/__test__/Domain/Scale.test.ts on lines 558..565
    src/__test__/Domain/Scale.test.ts on lines 567..574
    src/__test__/Domain/Scale.test.ts on lines 576..583

    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 126.

    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.
    Wontfix

      test('Harmonize VI degree of Ionian mode as a triad', () => {
        const chord = harmonizer.chordFor(ScaleDegree.VI);
    
        expect(chord.Pattern).toStrictEqual(ChordPattern.Minor);
        expect(Array.from(chord).map((p) => p.Name)).toStrictEqual(
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 531..538
    src/__test__/Domain/Scale.test.ts on lines 540..547
    src/__test__/Domain/Scale.test.ts on lines 549..556
    src/__test__/Domain/Scale.test.ts on lines 558..565
    src/__test__/Domain/Scale.test.ts on lines 576..583

    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 126.

    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.
    Wontfix

      test('Harmonize VII degree of Ionian mode as a triad', () => {
        const chord = harmonizer.chordFor(ScaleDegree.VII);
    
        expect(chord.Pattern).toStrictEqual(ChordPattern.Diminished);
        expect(Array.from(chord).map((p) => p.Name)).toStrictEqual(
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 531..538
    src/__test__/Domain/Scale.test.ts on lines 540..547
    src/__test__/Domain/Scale.test.ts on lines 549..556
    src/__test__/Domain/Scale.test.ts on lines 558..565
    src/__test__/Domain/Scale.test.ts on lines 567..574

    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 126.

    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.
    Wontfix

      test('Harmonize V degree of Ionian mode as a triad', () => {
        const chord = harmonizer.chordFor(ScaleDegree.V);
    
        expect(chord.Pattern).toStrictEqual(ChordPattern.Major);
        expect(Array.from(chord).map((p) => p.Name)).toStrictEqual(
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 531..538
    src/__test__/Domain/Scale.test.ts on lines 540..547
    src/__test__/Domain/Scale.test.ts on lines 549..556
    src/__test__/Domain/Scale.test.ts on lines 567..574
    src/__test__/Domain/Scale.test.ts on lines 576..583

    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 126.

    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.
    Wontfix

      test('MinorSixthDiminishedScale should have notes C D Eb F G G# A B', () => {
        expect(Array.from(ScalePattern.MinorSixthDiminished.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.EFlat,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 251..262
    src/__test__/Domain/Scale.test.ts on lines 383..394
    src/__test__/Domain/Scale.test.ts on lines 407..418
    src/__test__/Domain/Scale.test.ts on lines 433..444
    src/__test__/Domain/Scale.test.ts on lines 446..457

    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 93.

    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.
    Wontfix

      test('HalfWholeDiminished should have notes C; Db; Eb; E; F#; G; A, Bb', () => {
        expect(Array.from(ScalePattern.HalfWholeDiminished.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.DFlat,
          Pitch.EFlat,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 251..262
    src/__test__/Domain/Scale.test.ts on lines 407..418
    src/__test__/Domain/Scale.test.ts on lines 420..431
    src/__test__/Domain/Scale.test.ts on lines 433..444
    src/__test__/Domain/Scale.test.ts on lines 446..457

    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 93.

    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.
    Wontfix

      test('MajorSixthDiminishedScale should have notes C D E F G G# A B', () => {
        expect(Array.from(ScalePattern.MajorSixthDiminished.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.E,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 251..262
    src/__test__/Domain/Scale.test.ts on lines 383..394
    src/__test__/Domain/Scale.test.ts on lines 420..431
    src/__test__/Domain/Scale.test.ts on lines 433..444
    src/__test__/Domain/Scale.test.ts on lines 446..457

    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 93.

    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.
    Wontfix

      test('DominantDiminishedScale should have notes C D E F G G# Bb B', () => {
        expect(Array.from(ScalePattern.DominantDiminished.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.E,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 251..262
    src/__test__/Domain/Scale.test.ts on lines 383..394
    src/__test__/Domain/Scale.test.ts on lines 407..418
    src/__test__/Domain/Scale.test.ts on lines 420..431
    src/__test__/Domain/Scale.test.ts on lines 446..457

    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 93.

    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.
    Wontfix

      test('Dominantb5Diminished Scale should have notes C D E F Gb G# Bb B', () => {
        expect(Array.from(ScalePattern.Dominantb5Diminished.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.E,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 251..262
    src/__test__/Domain/Scale.test.ts on lines 383..394
    src/__test__/Domain/Scale.test.ts on lines 407..418
    src/__test__/Domain/Scale.test.ts on lines 420..431
    src/__test__/Domain/Scale.test.ts on lines 433..444

    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 93.

    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.
    Wontfix

      test('Bebop should have notes C, Eb, F, Gb, G, Bb, B', () => {
        expect(Array.from(ScalePattern.Bebop.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.E,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 5 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 383..394
    src/__test__/Domain/Scale.test.ts on lines 407..418
    src/__test__/Domain/Scale.test.ts on lines 420..431
    src/__test__/Domain/Scale.test.ts on lines 433..444
    src/__test__/Domain/Scale.test.ts on lines 446..457

    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 93.

    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 16 locations. Consider refactoring.
    Wontfix

      test('Dorianb2 should have notes C; Db; Eb; F; G; A; Bb', () => {
        expect(Array.from(ScalePattern.Dorianb2.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.DFlat,
          Pitch.EFlat,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('LydianDominant should have notes C; D; E; F#; G; A; Bb', () => {
        expect(Array.from(ScalePattern.LydianDominant.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.E,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('LocrianSharp2 should have notes C; D; Eb; F; Gb; Ab; Bb', () => {
        expect(Array.from(ScalePattern.LocrianSharp2.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.EFlat,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('LydianAugmented should have notes C; D; E; F#; G#; A; B', () => {
        expect(Array.from(ScalePattern.LydianAugmented.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.E,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('Aolian should have notes C, D, Eb, F, G, Ab, Bb', () => {
        expect(Array.from(ScalePattern.Aolian.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.EFlat,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('Melodic minor should have notes C; D; Eb; F; G; A; B', () => {
        expect(Array.from(ScalePattern.MelodicMinor.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.EFlat,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('Locrian should have notes C, Db, Eb, F, Gb, Ab, Bb', () => {
        expect(Array.from(ScalePattern.Locrian.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.DFlat,
          Pitch.EFlat,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('AlteredDominant should have notes C; Db; D#, Eb; Gb; G#; Bb', () => {
        expect(Array.from(ScalePattern.AlteredDominant.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.DFlat,
          Pitch.DSharp,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('NeapolitanMinor should have notes C; Db; Eb; F; G; Ab; B', () => {
        expect(Array.from(ScalePattern.NeapolitanMinor.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.DFlat,
          Pitch.EFlat,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('Mixolydianb6 should have notes C; D; E; F; G; Ab; Bb', () => {
        expect(Array.from(ScalePattern.Mixolydianb6.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.E,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('Phrygian should have notes C, Db, Eb, F, G, Ab, Bb', () => {
        expect(Array.from(ScalePattern.Phrygian.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.DFlat,
          Pitch.EFlat,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('Mixolydian should have notes C, D, E, F, G, A, Bb', () => {
        expect(Array.from(ScalePattern.Mixolydian.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.E,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('Lydian should have notes C, D, E, F#, G, A, B', () => {
        expect(Array.from(ScalePattern.Lydian.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.E,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('Harmonic minor should have notes C; D; Eb; F; G; Ab; B', () => {
        expect(Array.from(ScalePattern.HarmonicMinor.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.EFlat,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('Dorian should have notes C, D, Eb, F, G, A, Bb', () => {
        expect(Array.from(ScalePattern.Dorian.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.EFlat,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 148..158
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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 16 locations. Consider refactoring.
    Wontfix

      test('Ionian should have notes C, D, E, F, G, A, B', () => {
        expect(Array.from(ScalePattern.Ionian.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.E,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 15 other locations - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 160..170
    src/__test__/Domain/Scale.test.ts on lines 172..182
    src/__test__/Domain/Scale.test.ts on lines 184..194
    src/__test__/Domain/Scale.test.ts on lines 195..205
    src/__test__/Domain/Scale.test.ts on lines 207..217
    src/__test__/Domain/Scale.test.ts on lines 219..229
    src/__test__/Domain/Scale.test.ts on lines 275..285
    src/__test__/Domain/Scale.test.ts on lines 287..297
    src/__test__/Domain/Scale.test.ts on lines 299..309
    src/__test__/Domain/Scale.test.ts on lines 311..321
    src/__test__/Domain/Scale.test.ts on lines 323..333
    src/__test__/Domain/Scale.test.ts on lines 335..345
    src/__test__/Domain/Scale.test.ts on lines 347..357
    src/__test__/Domain/Scale.test.ts on lines 359..369
    src/__test__/Domain/Scale.test.ts on lines 371..381

    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 88.

    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.
    Wontfix

      test('WholeTone should have notes C D E Gb G# Bb', () => {
        expect(Array.from(ScalePattern.WholeTone.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.E,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 1 other location - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 264..273

    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 83.

    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.
    Wontfix

      test('Bebop should have notes C, Eb, F, Gb, G, Bb', () => {
        expect(Array.from(ScalePattern.Blues.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.EFlat,
          Pitch.F,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 1 other location - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 396..405

    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 83.

    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.
    Wontfix

      test('Major Pentatonic should have notes C, D, E, G, A', () => {
        expect(Array.from(ScalePattern.MajorPentatonic.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.D,
          Pitch.E,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 1 other location - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 241..249

    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 78.

    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.
    Wontfix

      test('Minor Pentatonic should have notes C, Eb, F, G, Bb', () => {
        expect(Array.from(ScalePattern.MinorPentatonic.createScale(Pitch.C))).toStrictEqual([
          Pitch.C,
          Pitch.EFlat,
          Pitch.F,
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 1 other location - About 2 hrs to fix
    src/__test__/Domain/Scale.test.ts on lines 231..239

    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 78.

    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.
    Wontfix

            const thirds = [
              ...ScalePattern.Ionian.createScale(Pitch.C).melodicThirdsFrom(
                scaleDegree,
                Duration.Eighth,
                Octave.C3
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 1 other location - About 1 hr to fix
    src/__test__/Domain/Scale.test.ts on lines 56..62

    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.
    Wontfix

            const thirds = [
              ...ScalePattern.Ionian.createScale(Pitch.C).melodicThirdsFrom(
                scaleDegree,
                Duration.Eighth,
                Octave.C3
    Severity: Major
    Found in src/__test__/Domain/Scale.test.ts and 1 other location - About 1 hr to fix
    src/__test__/Domain/Scale.test.ts on lines 32..38

    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

    There are no issues that match your filters.

    Category
    Status