pedromsantos/glenn

View on GitHub
src/__test__/Domain/Guitar.tab.test.ts

Summary

Maintainability
C
1 day
Test Coverage

File Guitar.tab.test.ts has 426 lines of code (exceeds 250 allowed). Consider refactoring.
Wontfix

import { Chord, ChordPattern, ClosedChord } from '../../Domain/Chord';
import { Duration } from '../../Domain/Duration';
import {
  BlankFret,
  Fret,
Severity: Minor
Found in src/__test__/Domain/Guitar.tab.test.ts - About 6 hrs to fix

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

      test('map G E C descending on C position', () => {
        const line = new MelodicLine([
          new Note(Pitch.G, Duration.Eighth, Octave.C4),
          new Note(Pitch.E, Duration.Eighth, Octave.C4),
          new Note(Pitch.C, Duration.Eighth, Octave.C4),
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 1 other location - About 6 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 118..134

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

    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

      test('map C G E descending on C position', () => {
        const line = new MelodicLine([
          new Note(Pitch.C, Duration.Eighth, Octave.C4),
          new Note(Pitch.G, Duration.Eighth, Octave.C3),
          new Note(Pitch.E, Duration.Eighth, Octave.C3),
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 1 other location - About 6 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 100..116

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

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

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

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

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

    Refactorings

    Further Reading

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

            test('from sixth string', () => {
              const chord = new ClosedChord(Pitch.G, ChordPattern.Major, Duration.Quarter, Octave.C4);
              const guitarChord = GuitarChord.fromBassString(chord, GuitarString.Sixth);
              const renderedTab = Tab.render(new Tab(guitarChord.toTab()));
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 292..305
    src/__test__/Domain/Guitar.tab.test.ts on lines 308..321
    src/__test__/Domain/Guitar.tab.test.ts on lines 338..351
    src/__test__/Domain/Guitar.tab.test.ts on lines 353..366
    src/__test__/Domain/Guitar.tab.test.ts on lines 368..381

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 116.

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

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

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

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

    Refactorings

    Further Reading

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

            test('triad from fifth string', () => {
              const chord = new ClosedChord(Pitch.G, ChordPattern.Major, Duration.Quarter, Octave.C4);
              const guitarChord = GuitarChord.fromBassString(chord, GuitarString.Fifth);
              const renderedTab = Tab.render(new Tab(guitarChord.toTab()));
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 292..305
    src/__test__/Domain/Guitar.tab.test.ts on lines 308..321
    src/__test__/Domain/Guitar.tab.test.ts on lines 323..336
    src/__test__/Domain/Guitar.tab.test.ts on lines 353..366
    src/__test__/Domain/Guitar.tab.test.ts on lines 368..381

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 116.

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

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

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

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

    Refactorings

    Further Reading

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

            test('triad from fourth string', () => {
              const chord = new ClosedChord(Pitch.G, ChordPattern.Major, Duration.Quarter, Octave.C4);
              const guitarChord = GuitarChord.fromBassString(chord, GuitarString.Fourth);
              const renderedTab = Tab.render(new Tab(guitarChord.toTab()));
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 292..305
    src/__test__/Domain/Guitar.tab.test.ts on lines 308..321
    src/__test__/Domain/Guitar.tab.test.ts on lines 323..336
    src/__test__/Domain/Guitar.tab.test.ts on lines 338..351
    src/__test__/Domain/Guitar.tab.test.ts on lines 368..381

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 116.

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

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

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

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

    Refactorings

    Further Reading

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

          test('C Major triad on open position', () => {
            const chord = new ClosedChord(Pitch.C, ChordPattern.Major, Duration.Quarter, Octave.C4);
            const guitarChord = GuitarChord.inPosition(chord, Position.Open);
            const renderedTab = Tab.render(new Tab(guitarChord.toTab()));
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 308..321
    src/__test__/Domain/Guitar.tab.test.ts on lines 323..336
    src/__test__/Domain/Guitar.tab.test.ts on lines 338..351
    src/__test__/Domain/Guitar.tab.test.ts on lines 353..366
    src/__test__/Domain/Guitar.tab.test.ts on lines 368..381

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 116.

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

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

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

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

    Refactorings

    Further Reading

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

            test('on C position', () => {
              const chord = new ClosedChord(Pitch.G, ChordPattern.Major, Duration.Quarter, Octave.C4);
              const guitarChord = GuitarChord.inPosition(chord, Position.Open);
              const renderedTab = Tab.render(new Tab(guitarChord.toTab()));
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 292..305
    src/__test__/Domain/Guitar.tab.test.ts on lines 323..336
    src/__test__/Domain/Guitar.tab.test.ts on lines 338..351
    src/__test__/Domain/Guitar.tab.test.ts on lines 353..366
    src/__test__/Domain/Guitar.tab.test.ts on lines 368..381

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 116.

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

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

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

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

    Refactorings

    Further Reading

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

            test('triad from third string', () => {
              const chord = new ClosedChord(Pitch.G, ChordPattern.Major, Duration.Quarter, Octave.C4);
              const guitarChord = GuitarChord.fromBassString(chord, GuitarString.Third);
              const renderedTab = Tab.render(new Tab(guitarChord.toTab()));
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 5 other locations - About 4 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 292..305
    src/__test__/Domain/Guitar.tab.test.ts on lines 308..321
    src/__test__/Domain/Guitar.tab.test.ts on lines 323..336
    src/__test__/Domain/Guitar.tab.test.ts on lines 338..351
    src/__test__/Domain/Guitar.tab.test.ts on lines 353..366

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

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

          test('On fifth string', () => {
            const harmonicLine = new GuitarHarmonicLine(GuitarString.Fifth, chords);
    
            const renderedTab = Tab.render(harmonicLine.toTab());
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 4 other locations - About 2 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 439..452
    src/__test__/Domain/Guitar.tab.test.ts on lines 469..482
    src/__test__/Domain/Guitar.tab.test.ts on lines 492..505
    src/__test__/Domain/Guitar.tab.test.ts on lines 507..520

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 78.

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

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

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

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

    Refactorings

    Further Reading

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

          test('On fourth string', () => {
            const harmonicLine = new GuitarHarmonicLine(GuitarString.Fourth, chords);
    
            const renderedTab = Tab.render(harmonicLine.toTab());
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 4 other locations - About 2 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 439..452
    src/__test__/Domain/Guitar.tab.test.ts on lines 454..467
    src/__test__/Domain/Guitar.tab.test.ts on lines 492..505
    src/__test__/Domain/Guitar.tab.test.ts on lines 507..520

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 78.

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

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

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

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

    Refactorings

    Further Reading

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

        test('Bb on fifth string', () => {
          const fret = new Fret(GuitarString.Fifth, 1).toTab();
          const renderedTab = Tab.renderColumn(fret);
    
          const expectedTab = `e|---|
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 3 other locations - About 2 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 163..175
    src/__test__/Domain/Guitar.tab.test.ts on lines 191..203
    src/__test__/Domain/Guitar.tab.test.ts on lines 205..217

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 78.

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

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

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

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

    Refactorings

    Further Reading

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

          test('On fifth string', () => {
            const harmonicLine = new GuitarHarmonicLine(GuitarString.Fifth, chords);
    
            const renderedTab = Tab.render(harmonicLine.toTab());
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 4 other locations - About 2 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 439..452
    src/__test__/Domain/Guitar.tab.test.ts on lines 454..467
    src/__test__/Domain/Guitar.tab.test.ts on lines 469..482
    src/__test__/Domain/Guitar.tab.test.ts on lines 492..505

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 78.

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

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

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

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

    Refactorings

    Further Reading

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

        test('D# on forth string', () => {
          const fret = new Fret(GuitarString.Fourth, 1).toTab();
          const renderedTab = Tab.renderColumn(fret);
    
          const expectedTab = `e|---|
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 3 other locations - About 2 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 163..175
    src/__test__/Domain/Guitar.tab.test.ts on lines 177..189
    src/__test__/Domain/Guitar.tab.test.ts on lines 205..217

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 78.

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

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

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

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

    Refactorings

    Further Reading

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

          test('On sixth string', () => {
            const harmonicLine = new GuitarHarmonicLine(GuitarString.Sixth, chords);
    
            const renderedTab = Tab.render(harmonicLine.toTab());
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 4 other locations - About 2 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 454..467
    src/__test__/Domain/Guitar.tab.test.ts on lines 469..482
    src/__test__/Domain/Guitar.tab.test.ts on lines 492..505
    src/__test__/Domain/Guitar.tab.test.ts on lines 507..520

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 78.

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

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

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

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

    Refactorings

    Further Reading

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

        test('F on sixth string', () => {
          const fret = new Fret(GuitarString.Sixth, 1).toTab();
          const renderedTab = Tab.renderColumn(fret);
    
          const expectedTab = `e|---|
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 3 other locations - About 2 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 177..189
    src/__test__/Domain/Guitar.tab.test.ts on lines 191..203
    src/__test__/Domain/Guitar.tab.test.ts on lines 205..217

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 78.

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

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

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

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

    Refactorings

    Further Reading

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

          test('On sixth string', () => {
            const harmonicLine = new GuitarHarmonicLine(GuitarString.Sixth, chords);
    
            const renderedTab = Tab.render(harmonicLine.toTab());
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 4 other locations - About 2 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 439..452
    src/__test__/Domain/Guitar.tab.test.ts on lines 454..467
    src/__test__/Domain/Guitar.tab.test.ts on lines 469..482
    src/__test__/Domain/Guitar.tab.test.ts on lines 507..520

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 78.

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

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

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

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

    Refactorings

    Further Reading

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

        test('D on sixth string', () => {
          const fret = new Fret(GuitarString.Sixth, 10).toTab();
          const renderedTab = Tab.renderColumn(fret);
    
          const expectedTab = `e|----|
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 3 other locations - About 2 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 163..175
    src/__test__/Domain/Guitar.tab.test.ts on lines 177..189
    src/__test__/Domain/Guitar.tab.test.ts on lines 191..203

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 78.

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

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

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

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

    Refactorings

    Further Reading

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

            test('C mixolydian scale ascending', () => {
              const expectedTab = `e|---------------|
    B|---------------|
    G|-----------2-3-|
    D|-----2-3-5-----|
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 3 other locations - About 1 hr to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 221..232
    src/__test__/Domain/Guitar.tab.test.ts on lines 247..258
    src/__test__/Domain/Guitar.tab.test.ts on lines 260..271

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 65.

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

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

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

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

    Refactorings

    Further Reading

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

            test('D mixolydian scale ascending on C position 2 octaves', () => {
              const expectedTab = `e|-------------------2-3-5-|
    B|---------------3-5-------|
    G|---------2-4-5-----------|
    D|---2-4-5-----------------|
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 3 other locations - About 1 hr to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 221..232
    src/__test__/Domain/Guitar.tab.test.ts on lines 234..245
    src/__test__/Domain/Guitar.tab.test.ts on lines 247..258

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 65.

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

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

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

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

    Refactorings

    Further Reading

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

            test('C major scale ascending', () => {
              const expectedTab = `e|---------------|
    B|---------------|
    G|-----------2-4-|
    D|-----2-3-5-----|
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 3 other locations - About 1 hr to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 234..245
    src/__test__/Domain/Guitar.tab.test.ts on lines 247..258
    src/__test__/Domain/Guitar.tab.test.ts on lines 260..271

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 65.

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

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

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

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

    Refactorings

    Further Reading

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

            test('C mixolydian scale ascending 2 octaves', () => {
              const expectedTab = `e|---------------------1-3-5-|
    B|-----------------3-5-------|
    G|-----------2-3-5-----------|
    D|-----2-3-5-----------------|
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 3 other locations - About 1 hr to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 221..232
    src/__test__/Domain/Guitar.tab.test.ts on lines 234..245
    src/__test__/Domain/Guitar.tab.test.ts on lines 260..271

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 65.

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

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

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

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

    Refactorings

    Further Reading

    There are no issues that match your filters.

    Category
    Status