pedromsantos/glenn

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

Summary

Maintainability
A
0 mins
Test Coverage

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

import * as fc from 'fast-check';

import {
  BlankFret,
  Fret,
Severity: Minor
Found in src/__test__/Domain/Guitar.test.ts - About 3 hrs to fix

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

        test('Open B', () => {
          const { sixth, fifth, fourth, third, second, first } = GuitarTunningStrings(
            GuitarTuning.OpenB
          );
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 2 other locations - About 1 day to fix
    src/__test__/Domain/Guitar.test.ts on lines 279..290
    src/__test__/Domain/Guitar.test.ts on lines 305..316

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

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

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

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

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

    Refactorings

    Further Reading

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

        test('Eb', () => {
          const { sixth, fifth, fourth, third, second, first } = GuitarTunningStrings(
            GuitarTuning.EFlat
          );
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 2 other locations - About 1 day to fix
    src/__test__/Domain/Guitar.test.ts on lines 279..290
    src/__test__/Domain/Guitar.test.ts on lines 292..303

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

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

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

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

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

    Refactorings

    Further Reading

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

        test('Open A', () => {
          const { sixth, fifth, fourth, third, second, first } = GuitarTunningStrings(
            GuitarTuning.OpenA
          );
    
    
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 2 other locations - About 1 day to fix
    src/__test__/Domain/Guitar.test.ts on lines 292..303
    src/__test__/Domain/Guitar.test.ts on lines 305..316

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

    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('map frets on G position', () => {
          const frets = GuitarString.Sixth.fretsFor(Position.G);
    
          expect([...frets]).toStrictEqual([
            new Fret(GuitarString.Sixth, 6, Pitch.ASharp),
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 3 other locations - About 4 hrs to fix
    src/__test__/Domain/Guitar.test.ts on lines 196..206
    src/__test__/Domain/Guitar.test.ts on lines 208..218
    src/__test__/Domain/Guitar.test.ts on lines 243..253

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

    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('map frets on A position', () => {
          const frets = GuitarString.Sixth.fretsFor(Position.A);
    
          expect([...frets]).toStrictEqual([
            new Fret(GuitarString.Sixth, 4, Pitch.GSharp),
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 3 other locations - About 4 hrs to fix
    src/__test__/Domain/Guitar.test.ts on lines 196..206
    src/__test__/Domain/Guitar.test.ts on lines 220..230
    src/__test__/Domain/Guitar.test.ts on lines 243..253

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

    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('map frets on C position', () => {
          const frets = GuitarString.Sixth.fretsFor(Position.C);
    
          expect([...frets]).toStrictEqual([
            new Fret(GuitarString.Sixth, 1, Pitch.F),
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 3 other locations - About 4 hrs to fix
    src/__test__/Domain/Guitar.test.ts on lines 208..218
    src/__test__/Domain/Guitar.test.ts on lines 220..230
    src/__test__/Domain/Guitar.test.ts on lines 243..253

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

    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('map frets on D position', () => {
          const frets = GuitarString.Sixth.fretsFor(Position.D);
    
          expect([...frets]).toStrictEqual([
            new Fret(GuitarString.Sixth, 11, Pitch.DSharp),
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 3 other locations - About 4 hrs to fix
    src/__test__/Domain/Guitar.test.ts on lines 196..206
    src/__test__/Domain/Guitar.test.ts on lines 208..218
    src/__test__/Domain/Guitar.test.ts on lines 220..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 131.

    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('be 1 if all frets are within adjacent strings', () => {
        const horizontalFrets = new HorizontalFrets([
          new Fret(GuitarString.Fourth, 2, Pitch.E),
          new Fret(GuitarString.Fifth, 3, Pitch.C),
          new Fret(GuitarString.Third, 2, Pitch.BFlat),
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 1 other location - About 2 hrs to fix
    src/__test__/Domain/Guitar.test.ts on lines 134..142

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

    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('be 2 if all frets are within adjacent of adjacent strings', () => {
        const horizontalFrets = new HorizontalFrets([
          new Fret(GuitarString.Third, 2, Pitch.BFlat),
          new Fret(GuitarString.Fifth, 3, Pitch.C),
          new Fret(GuitarString.First, 3, Pitch.G),
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 1 other location - About 2 hrs to fix
    src/__test__/Domain/Guitar.test.ts on lines 124..132

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

    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('Not be equal if not on same fret', () => {
        const fret1 = new Fret(GuitarString.First, 1);
        const fret2 = new Fret(GuitarString.First, 2);
    
        expect(fret1.equals(fret2)).toBeFalsy();
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 1 other location - About 1 hr to fix
    src/__test__/Domain/Guitar.test.ts on lines 52..57

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

    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('Not be equal if not on same string', () => {
        const fret1 = new Fret(GuitarString.First, 1);
        const fret2 = new Fret(GuitarString.Second, 1);
    
        expect(fret1.equals(fret2)).toBeFalsy();
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 1 other location - About 1 hr to fix
    src/__test__/Domain/Guitar.test.ts on lines 59..64

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

    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('map E to open string', () => {
          expect(GuitarString.Sixth.fretFor(Pitch.E)).toStrictEqual(
            new Fret(GuitarString.Sixth, 0, Pitch.E)
          );
        });
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 4 other locations - About 1 hr to fix
    src/__test__/Domain/Guitar.test.ts on lines 172..176
    src/__test__/Domain/Guitar.test.ts on lines 178..182
    src/__test__/Domain/Guitar.test.ts on lines 184..188
    src/__test__/Domain/Guitar.test.ts on lines 190..194

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

    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('map G to third fret', () => {
          expect(GuitarString.Sixth.fretFor(Pitch.G)).toStrictEqual(
            new Fret(GuitarString.Sixth, 3, Pitch.G)
          );
        });
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 4 other locations - About 1 hr to fix
    src/__test__/Domain/Guitar.test.ts on lines 166..170
    src/__test__/Domain/Guitar.test.ts on lines 172..176
    src/__test__/Domain/Guitar.test.ts on lines 178..182
    src/__test__/Domain/Guitar.test.ts on lines 184..188

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

    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('map F to first fret', () => {
          expect(GuitarString.Sixth.fretFor(Pitch.F)).toStrictEqual(
            new Fret(GuitarString.Sixth, 1, Pitch.F)
          );
        });
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 4 other locations - About 1 hr to fix
    src/__test__/Domain/Guitar.test.ts on lines 166..170
    src/__test__/Domain/Guitar.test.ts on lines 178..182
    src/__test__/Domain/Guitar.test.ts on lines 184..188
    src/__test__/Domain/Guitar.test.ts on lines 190..194

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

    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('map F# to second fret', () => {
          expect(GuitarString.Sixth.fretFor(Pitch.FSharp)).toStrictEqual(
            new Fret(GuitarString.Sixth, 2, Pitch.FSharp)
          );
        });
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 4 other locations - About 1 hr to fix
    src/__test__/Domain/Guitar.test.ts on lines 166..170
    src/__test__/Domain/Guitar.test.ts on lines 172..176
    src/__test__/Domain/Guitar.test.ts on lines 184..188
    src/__test__/Domain/Guitar.test.ts on lines 190..194

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

    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('map Gb to second fret', () => {
          expect(GuitarString.Sixth.fretFor(Pitch.GFlat)).toStrictEqual(
            new Fret(GuitarString.Sixth, 2, Pitch.GFlat)
          );
        });
    Severity: Major
    Found in src/__test__/Domain/Guitar.test.ts and 4 other locations - About 1 hr to fix
    src/__test__/Domain/Guitar.test.ts on lines 166..170
    src/__test__/Domain/Guitar.test.ts on lines 172..176
    src/__test__/Domain/Guitar.test.ts on lines 178..182
    src/__test__/Domain/Guitar.test.ts on lines 190..194

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

    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