pedromsantos/glenn

View on GitHub
src/Domain/Scale.ts

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

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

import { ScalePatternPrimitives, ScalePrimitives } from '../primitives/Scale';
import { Chord, ChordFunction, ChordPattern, ChordPitch, ChordPitches, ClosedChord } from './Chord';
import { Duration } from './Duration';
import ensure, { throwExpression } from './Ensure';
import { Interval } from './Interval';
Severity: Minor
Found in src/Domain/Scale.ts - About 6 hrs to fix

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

          this.pitches
            .slice(degree)
            .map((p) => new Note(p, pitchDurations, octave))
            .concat(this.pitches.map((p) => new Note(p, pitchDurations, octave.up())))
            .concat(this.pitches.map((p) => new Note(p, pitchDurations, octave.up().up())))
    Severity: Major
    Found in src/Domain/Scale.ts and 1 other location - About 4 hrs to fix
    src/Domain/Scale.ts on lines 402..407

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

    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

          this.pitches
            .slice(degree)
            .map((p) => new Note(p, pitchDurations, startingOctave))
            .concat(this.pitches.map((p) => new Note(p, pitchDurations, startingOctave.up())))
            .concat(this.pitches.map((p) => new Note(p, pitchDurations, startingOctave.up().up())))
    Severity: Major
    Found in src/Domain/Scale.ts and 1 other location - About 4 hrs to fix
    src/Domain/Scale.ts on lines 390..395

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

    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

      public static readonly Bebop: ScalePattern = new ScalePattern('Bebop', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MajorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 5 other locations - About 1 hr to fix
    src/Domain/Scale.ts on lines 207..219
    src/Domain/Scale.ts on lines 228..240
    src/Domain/Scale.ts on lines 241..253
    src/Domain/Scale.ts on lines 254..266
    src/Domain/Scale.ts on lines 267..279

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

    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

      public static readonly MajorSixthDiminished: ScalePattern = new ScalePattern(
        'Major Sixth Diminished',
        [
          Interval.Unison,
          Interval.MajorSecond,
    Severity: Major
    Found in src/Domain/Scale.ts and 5 other locations - About 1 hr to fix
    src/Domain/Scale.ts on lines 179..188
    src/Domain/Scale.ts on lines 207..219
    src/Domain/Scale.ts on lines 241..253
    src/Domain/Scale.ts on lines 254..266
    src/Domain/Scale.ts on lines 267..279

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

    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

      public static readonly Dominantb5Diminished: ScalePattern = new ScalePattern(
        'Dominant b5 Diminished',
        [
          Interval.Unison,
          Interval.MajorSecond,
    Severity: Major
    Found in src/Domain/Scale.ts and 5 other locations - About 1 hr to fix
    src/Domain/Scale.ts on lines 179..188
    src/Domain/Scale.ts on lines 207..219
    src/Domain/Scale.ts on lines 228..240
    src/Domain/Scale.ts on lines 241..253
    src/Domain/Scale.ts on lines 254..266

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

    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

      public static readonly MinorSixthDiminished: ScalePattern = new ScalePattern(
        'Minor Sixth Diminished',
        [
          Interval.Unison,
          Interval.MajorSecond,
    Severity: Major
    Found in src/Domain/Scale.ts and 5 other locations - About 1 hr to fix
    src/Domain/Scale.ts on lines 179..188
    src/Domain/Scale.ts on lines 207..219
    src/Domain/Scale.ts on lines 228..240
    src/Domain/Scale.ts on lines 254..266
    src/Domain/Scale.ts on lines 267..279

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

    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

      public static readonly HalfWholeDiminished: ScalePattern = new ScalePattern(
        'Half Whole Diminished',
        [
          Interval.Unison,
          Interval.MinorSecond,
    Severity: Major
    Found in src/Domain/Scale.ts and 5 other locations - About 1 hr to fix
    src/Domain/Scale.ts on lines 179..188
    src/Domain/Scale.ts on lines 228..240
    src/Domain/Scale.ts on lines 241..253
    src/Domain/Scale.ts on lines 254..266
    src/Domain/Scale.ts on lines 267..279

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

    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

      public static readonly DominantDiminished: ScalePattern = new ScalePattern(
        'Dominant Diminished',
        [
          Interval.Unison,
          Interval.MajorSecond,
    Severity: Major
    Found in src/Domain/Scale.ts and 5 other locations - About 1 hr to fix
    src/Domain/Scale.ts on lines 179..188
    src/Domain/Scale.ts on lines 207..219
    src/Domain/Scale.ts on lines 228..240
    src/Domain/Scale.ts on lines 241..253
    src/Domain/Scale.ts on lines 267..279

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

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

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

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

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

    Refactorings

    Further Reading

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

        return new ClosedChord(
          chordPitches.pitchForFunction(ChordFunction.Root),
          ChordPattern.patternFor(chordPitches.toIntervals()) ??
            throwExpression('Invalid chord pattern'),
          Duration.Whole,
    Severity: Minor
    Found in src/Domain/Scale.ts and 1 other location - About 55 mins to fix
    src/Domain/Scale.ts on lines 462..468

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

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

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

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

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

    Refactorings

    Further Reading

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

        return new ClosedChord(
          chordPitches.pitchForFunction(ChordFunction.Root),
          ChordPattern.patternFor(chordPitches.toIntervals()) ??
            throwExpression('Invalid chord pattern'),
          Duration.Whole,
    Severity: Minor
    Found in src/Domain/Scale.ts and 1 other location - About 55 mins to fix
    src/Domain/Scale.ts on lines 439..445

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

    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

      public static readonly Dorian: ScalePattern = new ScalePattern('Dorian', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MinorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly Ionian: ScalePattern = new ScalePattern('Ionian', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MajorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly Phrygian: ScalePattern = new ScalePattern('Phrygian', [
        Interval.Unison,
        Interval.MinorSecond,
        Interval.MinorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly Mixolydian: ScalePattern = new ScalePattern('Mixolydian', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MajorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly Lydian: ScalePattern = new ScalePattern('Lydian', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MajorThird,
        Interval.AugmentedFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly Aolian: ScalePattern = new ScalePattern('Aolian', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MinorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly MelodicMinor: ScalePattern = new ScalePattern('Melodic Minor', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MinorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly LocrianSharp2: ScalePattern = new ScalePattern('Locrian #2', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MinorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly Locrian: ScalePattern = new ScalePattern('Locrian', [
        Interval.Unison,
        Interval.MinorSecond,
        Interval.MinorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly HarmonicMinor: ScalePattern = new ScalePattern('Harmonic Minor', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MinorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly LydianDominant: ScalePattern = new ScalePattern('Lydian Dominant', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MajorThird,
        Interval.AugmentedFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly Mixolydianb6: ScalePattern = new ScalePattern('Mixolydian b6', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MajorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly AlteredDominant: ScalePattern = new ScalePattern('Altered Dominant', [
        Interval.Unison,
        Interval.MinorSecond,
        Interval.AugmentedSecond,
        Interval.MajorThird,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly Dorianb2: ScalePattern = new ScalePattern('Dorian b2', [
        Interval.Unison,
        Interval.MinorSecond,
        Interval.MinorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly LydianAugmented: ScalePattern = new ScalePattern('Lydian Augmented', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MajorThird,
        Interval.AugmentedFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 143..151
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly NeapolitanMinor: ScalePattern = new ScalePattern('Neapolitan Minor', [
        Interval.Unison,
        Interval.MinorSecond,
        Interval.MinorThird,
        Interval.PerfectFourth,
    Severity: Major
    Found in src/Domain/Scale.ts and 15 other locations - About 50 mins to fix
    src/Domain/Scale.ts on lines 29..37
    src/Domain/Scale.ts on lines 39..47
    src/Domain/Scale.ts on lines 49..57
    src/Domain/Scale.ts on lines 58..66
    src/Domain/Scale.ts on lines 67..75
    src/Domain/Scale.ts on lines 76..84
    src/Domain/Scale.ts on lines 85..93
    src/Domain/Scale.ts on lines 116..124
    src/Domain/Scale.ts on lines 125..133
    src/Domain/Scale.ts on lines 134..142
    src/Domain/Scale.ts on lines 152..160
    src/Domain/Scale.ts on lines 161..169
    src/Domain/Scale.ts on lines 170..178
    src/Domain/Scale.ts on lines 189..197
    src/Domain/Scale.ts on lines 198..206

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 52.

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

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

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

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

    Refactorings

    Further Reading

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

      public static readonly Blues: ScalePattern = new ScalePattern('Blues', [
        Interval.Unison,
        Interval.MinorThird,
        Interval.PerfectFourth,
        Interval.DiminishedFifth,
    Severity: Minor
    Found in src/Domain/Scale.ts and 1 other location - About 35 mins to fix
    src/Domain/Scale.ts on lines 220..227

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

    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

      public static readonly WholeTone: ScalePattern = new ScalePattern('Whole Tone', [
        Interval.Unison,
        Interval.MajorSecond,
        Interval.MajorThird,
        Interval.DiminishedFifth,
    Severity: Minor
    Found in src/Domain/Scale.ts and 1 other location - About 35 mins to fix
    src/Domain/Scale.ts on lines 108..115

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

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

      *[Symbol.iterator](): Iterator<Pitch> {
        for (const pitch of this.pitches) {
          yield pitch;
        }
      }
    Severity: Minor
    Found in src/Domain/Scale.ts and 2 other locations - About 35 mins to fix
    src/Domain/Counterpoint.ts on lines 43..47
    src/Domain/Pitch.ts on lines 575..579

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

    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