opensheetmusicdisplay/opensheetmusicdisplay

View on GitHub
src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts

Summary

Maintainability
F
1 wk
Test Coverage

Function setTempoAndTempoType has a Cognitive Complexity of 60 (exceeds 5 allowed). Consider refactoring.
Open

    private setTempoAndTempoType(soundTempo: number): void {
        if (!this.label) {
            this.tempoInBpm = soundTempo;
            this.tempoEnum = TempoEnum.metronomeMark;
            return;

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Function setTempoAndTempoType has 167 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private setTempoAndTempoType(soundTempo: number): void {
        if (!this.label) {
            this.tempoInBpm = soundTempo;
            this.tempoEnum = TempoEnum.metronomeMark;
            return;

    File InstantaneousTempoExpression.ts has 436 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import {AbstractTempoExpression} from "./AbstractTempoExpression";
    import {PlacementEnum} from "./AbstractExpression";
    import {ArgumentOutOfRangeException} from "../../Exceptions";
    import {Fraction} from "../../../Common/DataObjects/Fraction";
    import {MultiTempoExpression} from "./MultiTempoExpression";

      Function getDefaultValueForTempoType has 42 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static getDefaultValueForTempoType(tempoEnum: TempoEnum): number {
              switch (tempoEnum) {
                  case TempoEnum.larghissimo:
                      return 20;
                  case TempoEnum.grave:

        Avoid too many return statements within this function.
        Open

                    return;
        Severity: Major
        Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                      return;
          Severity: Major
          Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                        return;
            Severity: Major
            Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return;
              Severity: Major
              Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                            return;
                Severity: Major
                Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                              return;
                  Severity: Major
                  Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                                return;
                    Severity: Major
                    Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                                  return;
                      Severity: Major
                      Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                    return;
                        Severity: Major
                        Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                      return;
                          Severity: Major
                          Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                        return;
                            Severity: Major
                            Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                          return;
                              Severity: Major
                              Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                            return;
                                Severity: Major
                                Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                              return;
                                  Severity: Major
                                  Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                                    Avoid too many return statements within this function.
                                    Open

                                                return;
                                    Severity: Major
                                    Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return;
                                      Severity: Major
                                      Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                                    return;
                                        Severity: Major
                                        Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

                                          Avoid too many return statements within this function.
                                          Open

                                                      return;
                                          Severity: Major
                                          Found in src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts - About 30 mins to fix

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

                                                        (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLarghissimo, inputString))
                                                        || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoGrave, inputString))
                                                        || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLento, inputString))
                                                        || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLargo, inputString))
                                                        || (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLarghetto, inputString))
                                            src/MusicalScore/VoiceData/Expressions/MoodExpression.ts on lines 57..76

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoModerato, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.moderato);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoGrave, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.grave);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAdagio, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.adagio);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAllegroModerato, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.allegroModerato);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLargo, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.largo);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAndantino, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.andantino);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAllegretto, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.allegretto);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoVivace, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.vivace);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAllegrissimo, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.allegrissimo);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoPresto, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.presto);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAndanteModerato, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.andanteModerato);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoVivacissimo, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.vivacissimo);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLento, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.lento);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLarghetto, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.larghetto);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAndante, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.andante);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoLarghissimo, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.larghissimo);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAllegro, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.allegro);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoPrestissimo, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.prestissimo);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 336..343
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431

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

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAdagietto, this.label)) {
                                                        if (soundTempo === 0) {
                                                            soundTempo = InstantaneousTempoExpression.getDefaultValueForTempoType(TempoEnum.adagietto);
                                                        }
                                                        this.tempoInBpm = soundTempo;
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 288..295
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 296..303
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 304..311
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 312..319
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 320..327
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 328..335
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 344..351
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 352..359
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 360..367
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 368..375
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 376..383
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 384..391
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 392..399
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 400..407
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 408..415
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 416..423
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 424..431
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 432..439

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

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoChangesGeneral, this.label)) {
                                                        this.tempoInBpm = 0;
                                                        this.tempoEnum = TempoEnum.changes;
                                                        return;
                                                    }
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 440..444

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

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

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

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

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

                                            Refactorings

                                            Further Reading

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

                                                    if (InstantaneousTempoExpression.isStringInStringList(InstantaneousTempoExpression.listInstantaneousTempoAddons, this.label)) {
                                                        this.tempoInBpm = 0;
                                                        this.tempoEnum = TempoEnum.addon;
                                                        return;
                                                    }
                                            src/MusicalScore/VoiceData/Expressions/InstantaneousTempoExpression.ts on lines 445..449

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

                                            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