pedromsantos/glenn

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

Summary

Maintainability
A
0 mins
Test Coverage

File Guitar.tab.test.ts has 414 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 5 hrs to fix

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

      test('map C G E descending on C position', () => {
        const line = new PitchLine([Pitch.C, Pitch.G, Pitch.E], PitchLineDirection.Descending);
        const fretLine = new PositionFrets(Position.C, guitarStrings).map(line);
        const renderedTab = Tab.render(fretLine?.toTab(guitarStrings));
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 1 other location - About 4 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 96..108

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

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

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

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

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

    Refactorings

    Further Reading

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

      test('map G E C descending on C position', () => {
        const line = new PitchLine([Pitch.G, Pitch.E, Pitch.C], PitchLineDirection.Descending);
        const fretLine = new PositionFrets(Position.C, guitarStrings).map(line);
        const renderedTab = Tab.render(fretLine?.toTab(guitarStrings));
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.tab.test.ts and 1 other location - About 4 hrs to fix
    src/__test__/Domain/Guitar.tab.test.ts on lines 110..122

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

    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 280..293
    src/__test__/Domain/Guitar.tab.test.ts on lines 296..309
    src/__test__/Domain/Guitar.tab.test.ts on lines 326..339
    src/__test__/Domain/Guitar.tab.test.ts on lines 341..354
    src/__test__/Domain/Guitar.tab.test.ts on lines 356..369

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 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 280..293
    src/__test__/Domain/Guitar.tab.test.ts on lines 296..309
    src/__test__/Domain/Guitar.tab.test.ts on lines 311..324
    src/__test__/Domain/Guitar.tab.test.ts on lines 326..339
    src/__test__/Domain/Guitar.tab.test.ts on lines 356..369

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 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 280..293
    src/__test__/Domain/Guitar.tab.test.ts on lines 311..324
    src/__test__/Domain/Guitar.tab.test.ts on lines 326..339
    src/__test__/Domain/Guitar.tab.test.ts on lines 341..354
    src/__test__/Domain/Guitar.tab.test.ts on lines 356..369

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 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 280..293
    src/__test__/Domain/Guitar.tab.test.ts on lines 296..309
    src/__test__/Domain/Guitar.tab.test.ts on lines 311..324
    src/__test__/Domain/Guitar.tab.test.ts on lines 341..354
    src/__test__/Domain/Guitar.tab.test.ts on lines 356..369

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 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 280..293
    src/__test__/Domain/Guitar.tab.test.ts on lines 296..309
    src/__test__/Domain/Guitar.tab.test.ts on lines 311..324
    src/__test__/Domain/Guitar.tab.test.ts on lines 326..339
    src/__test__/Domain/Guitar.tab.test.ts on lines 341..354

    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 296..309
    src/__test__/Domain/Guitar.tab.test.ts on lines 311..324
    src/__test__/Domain/Guitar.tab.test.ts on lines 326..339
    src/__test__/Domain/Guitar.tab.test.ts on lines 341..354
    src/__test__/Domain/Guitar.tab.test.ts on lines 356..369

    Duplicated Code

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

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

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

    Tuning

    This issue has a mass of 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 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 427..440
    src/__test__/Domain/Guitar.tab.test.ts on lines 442..455
    src/__test__/Domain/Guitar.tab.test.ts on lines 480..493
    src/__test__/Domain/Guitar.tab.test.ts on lines 495..508

    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 442..455
    src/__test__/Domain/Guitar.tab.test.ts on lines 457..470
    src/__test__/Domain/Guitar.tab.test.ts on lines 480..493
    src/__test__/Domain/Guitar.tab.test.ts on lines 495..508

    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 427..440
    src/__test__/Domain/Guitar.tab.test.ts on lines 442..455
    src/__test__/Domain/Guitar.tab.test.ts on lines 457..470
    src/__test__/Domain/Guitar.tab.test.ts on lines 480..493

    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 427..440
    src/__test__/Domain/Guitar.tab.test.ts on lines 457..470
    src/__test__/Domain/Guitar.tab.test.ts on lines 480..493
    src/__test__/Domain/Guitar.tab.test.ts on lines 495..508

    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 427..440
    src/__test__/Domain/Guitar.tab.test.ts on lines 442..455
    src/__test__/Domain/Guitar.tab.test.ts on lines 457..470
    src/__test__/Domain/Guitar.tab.test.ts on lines 495..508

    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 151..163
    src/__test__/Domain/Guitar.tab.test.ts on lines 165..177
    src/__test__/Domain/Guitar.tab.test.ts on lines 193..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 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 151..163
    src/__test__/Domain/Guitar.tab.test.ts on lines 179..191
    src/__test__/Domain/Guitar.tab.test.ts on lines 193..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 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 165..177
    src/__test__/Domain/Guitar.tab.test.ts on lines 179..191
    src/__test__/Domain/Guitar.tab.test.ts on lines 193..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 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 151..163
    src/__test__/Domain/Guitar.tab.test.ts on lines 165..177
    src/__test__/Domain/Guitar.tab.test.ts on lines 179..191

    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 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 222..233
    src/__test__/Domain/Guitar.tab.test.ts on lines 235..246
    src/__test__/Domain/Guitar.tab.test.ts on lines 248..259

    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 209..220
    src/__test__/Domain/Guitar.tab.test.ts on lines 222..233
    src/__test__/Domain/Guitar.tab.test.ts on lines 235..246

    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 209..220
    src/__test__/Domain/Guitar.tab.test.ts on lines 222..233
    src/__test__/Domain/Guitar.tab.test.ts on lines 248..259

    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', () => {
              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 209..220
    src/__test__/Domain/Guitar.tab.test.ts on lines 235..246
    src/__test__/Domain/Guitar.tab.test.ts on lines 248..259

    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