pedromsantos/glenn

View on GitHub
src/Domain/Scale.ts

Summary

Maintainability
A
1 hr
Test Coverage
A
96%

File Scale.ts has 424 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 { Interval } from './Interval';
import { MelodicLine, Note, Octave } from './Note';
Severity: Minor
Found in src/Domain/Scale.ts - About 6 hrs to fix

    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 206..218
    src/Domain/Scale.ts on lines 227..239
    src/Domain/Scale.ts on lines 240..252
    src/Domain/Scale.ts on lines 253..265
    src/Domain/Scale.ts on lines 266..278

    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 178..187
    src/Domain/Scale.ts on lines 206..218
    src/Domain/Scale.ts on lines 240..252
    src/Domain/Scale.ts on lines 253..265
    src/Domain/Scale.ts on lines 266..278

    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 178..187
    src/Domain/Scale.ts on lines 227..239
    src/Domain/Scale.ts on lines 240..252
    src/Domain/Scale.ts on lines 253..265
    src/Domain/Scale.ts on lines 266..278

    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 178..187
    src/Domain/Scale.ts on lines 206..218
    src/Domain/Scale.ts on lines 227..239
    src/Domain/Scale.ts on lines 253..265
    src/Domain/Scale.ts on lines 266..278

    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 178..187
    src/Domain/Scale.ts on lines 206..218
    src/Domain/Scale.ts on lines 227..239
    src/Domain/Scale.ts on lines 240..252
    src/Domain/Scale.ts on lines 253..265

    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 178..187
    src/Domain/Scale.ts on lines 206..218
    src/Domain/Scale.ts on lines 227..239
    src/Domain/Scale.ts on lines 240..252
    src/Domain/Scale.ts on lines 266..278

    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 2 locations. Consider refactoring.
    Open

        return new ClosedChord(
          chordPitches.pitchForFunction(ChordFunction.Root),
          ChordPattern.patternFor(chordPitches.toIntervals()) ?? ChordPattern.Major,
          Duration.Whole,
          Octave.C4
    Severity: Minor
    Found in src/Domain/Scale.ts and 1 other location - About 55 mins to fix
    src/Domain/Scale.ts on lines 455..460

    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 2 locations. Consider refactoring.
    Open

        return new ClosedChord(
          chordPitches.pitchForFunction(ChordFunction.Root),
          ChordPattern.patternFor(chordPitches.toIntervals()) ?? ChordPattern.Major7,
          Duration.Whole,
          Octave.C4
    Severity: Minor
    Found in src/Domain/Scale.ts and 1 other location - About 55 mins to fix
    src/Domain/Scale.ts on lines 433..438

    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 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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 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 28..36
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 188..196
    src/Domain/Scale.ts on lines 197..205

    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 28..36
    src/Domain/Scale.ts on lines 38..46
    src/Domain/Scale.ts on lines 48..56
    src/Domain/Scale.ts on lines 57..65
    src/Domain/Scale.ts on lines 66..74
    src/Domain/Scale.ts on lines 75..83
    src/Domain/Scale.ts on lines 84..92
    src/Domain/Scale.ts on lines 115..123
    src/Domain/Scale.ts on lines 124..132
    src/Domain/Scale.ts on lines 133..141
    src/Domain/Scale.ts on lines 142..150
    src/Domain/Scale.ts on lines 151..159
    src/Domain/Scale.ts on lines 160..168
    src/Domain/Scale.ts on lines 169..177
    src/Domain/Scale.ts on lines 197..205

    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 219..226

    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 107..114

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

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

    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