Sorry, data for that comparison is no longer available.

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 407 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 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 90..106

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

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

    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('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 267..280
    src/__test__/Domain/Guitar.tab.test.ts on lines 298..311
    src/__test__/Domain/Guitar.tab.test.ts on lines 313..326
    src/__test__/Domain/Guitar.tab.test.ts on lines 328..341
    src/__test__/Domain/Guitar.tab.test.ts on lines 343..356

    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 283..296
    src/__test__/Domain/Guitar.tab.test.ts on lines 298..311
    src/__test__/Domain/Guitar.tab.test.ts on lines 313..326
    src/__test__/Domain/Guitar.tab.test.ts on lines 328..341
    src/__test__/Domain/Guitar.tab.test.ts on lines 343..356

    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('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 267..280
    src/__test__/Domain/Guitar.tab.test.ts on lines 283..296
    src/__test__/Domain/Guitar.tab.test.ts on lines 313..326
    src/__test__/Domain/Guitar.tab.test.ts on lines 328..341
    src/__test__/Domain/Guitar.tab.test.ts on lines 343..356

    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 267..280
    src/__test__/Domain/Guitar.tab.test.ts on lines 283..296
    src/__test__/Domain/Guitar.tab.test.ts on lines 298..311
    src/__test__/Domain/Guitar.tab.test.ts on lines 313..326
    src/__test__/Domain/Guitar.tab.test.ts on lines 328..341

    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 267..280
    src/__test__/Domain/Guitar.tab.test.ts on lines 283..296
    src/__test__/Domain/Guitar.tab.test.ts on lines 298..311
    src/__test__/Domain/Guitar.tab.test.ts on lines 328..341
    src/__test__/Domain/Guitar.tab.test.ts on lines 343..356

    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 267..280
    src/__test__/Domain/Guitar.tab.test.ts on lines 283..296
    src/__test__/Domain/Guitar.tab.test.ts on lines 298..311
    src/__test__/Domain/Guitar.tab.test.ts on lines 313..326
    src/__test__/Domain/Guitar.tab.test.ts on lines 343..356

    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 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 135..147
    src/__test__/Domain/Guitar.tab.test.ts on lines 149..161
    src/__test__/Domain/Guitar.tab.test.ts on lines 163..175

    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 414..427
    src/__test__/Domain/Guitar.tab.test.ts on lines 429..442
    src/__test__/Domain/Guitar.tab.test.ts on lines 467..480
    src/__test__/Domain/Guitar.tab.test.ts on lines 482..495

    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 414..427
    src/__test__/Domain/Guitar.tab.test.ts on lines 444..457
    src/__test__/Domain/Guitar.tab.test.ts on lines 467..480
    src/__test__/Domain/Guitar.tab.test.ts on lines 482..495

    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 149..161
    src/__test__/Domain/Guitar.tab.test.ts on lines 163..175
    src/__test__/Domain/Guitar.tab.test.ts on lines 177..189

    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 414..427
    src/__test__/Domain/Guitar.tab.test.ts on lines 429..442
    src/__test__/Domain/Guitar.tab.test.ts on lines 444..457
    src/__test__/Domain/Guitar.tab.test.ts on lines 482..495

    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 414..427
    src/__test__/Domain/Guitar.tab.test.ts on lines 429..442
    src/__test__/Domain/Guitar.tab.test.ts on lines 444..457
    src/__test__/Domain/Guitar.tab.test.ts on lines 467..480

    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 135..147
    src/__test__/Domain/Guitar.tab.test.ts on lines 163..175
    src/__test__/Domain/Guitar.tab.test.ts on lines 177..189

    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 135..147
    src/__test__/Domain/Guitar.tab.test.ts on lines 149..161
    src/__test__/Domain/Guitar.tab.test.ts on lines 177..189

    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 429..442
    src/__test__/Domain/Guitar.tab.test.ts on lines 444..457
    src/__test__/Domain/Guitar.tab.test.ts on lines 467..480
    src/__test__/Domain/Guitar.tab.test.ts on lines 482..495

    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 206..217
    src/__test__/Domain/Guitar.tab.test.ts on lines 219..230
    src/__test__/Domain/Guitar.tab.test.ts on lines 232..243

    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 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 193..204
    src/__test__/Domain/Guitar.tab.test.ts on lines 206..217
    src/__test__/Domain/Guitar.tab.test.ts on lines 219..230

    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 193..204
    src/__test__/Domain/Guitar.tab.test.ts on lines 206..217
    src/__test__/Domain/Guitar.tab.test.ts on lines 232..243

    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 193..204
    src/__test__/Domain/Guitar.tab.test.ts on lines 219..230
    src/__test__/Domain/Guitar.tab.test.ts on lines 232..243

    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