microting/eform-sdk-dotnet

View on GitHub
eFormCore/Infrastructure/Data/Entities/Language.cs

Summary

Maintainability
F
6 days
Test Coverage

Method AddDefaultLanguages has 350 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public static async Task AddDefaultLanguages(MicrotingDbContext dbContext)
        {

            if (dbContext.Languages.FirstOrDefault(x => x.Name == "Danish") != null)
            {
Severity: Major
Found in eFormCore/Infrastructure/Data/Entities/Language.cs - About 1 day to fix

    File Language.cs has 362 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    using System.Linq;
    using System.Threading.Tasks;
    
    namespace Microting.eForm.Infrastructure.Data.Entities
    {
    Severity: Minor
    Found in eFormCore/Infrastructure/Data/Entities/Language.cs - About 4 hrs to fix

      Method AddDefaultLanguages has a Cognitive Complexity of 40 (exceeds 20 allowed). Consider refactoring.
      Open

              public static async Task AddDefaultLanguages(MicrotingDbContext dbContext)
              {
      
                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Danish") != null)
                  {
      Severity: Minor
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs - About 3 hrs to fix

      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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Norwegian") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "Norwegian");
                      language.Name = "Norsk";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 41..46
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 69..74
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 87..92
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 105..110
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 141..146
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 159..164
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 177..182
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 195..200
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 213..218
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 231..236
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 249..254
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 267..272

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Italian") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "Italian");
                      language.Name = "Italiana";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 41..46
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 69..74
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 87..92
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 105..110
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 123..128
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 141..146
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 159..164
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 177..182
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 213..218
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 231..236
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 249..254
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 267..272

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Finish") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "Finish");
                      language.Name = "Suomalainen";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 41..46
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 69..74
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 87..92
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 105..110
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 123..128
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 141..146
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 159..164
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 177..182
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 195..200
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 213..218
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 231..236
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 249..254

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Dutch") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "Dutch");
                      language.Name = "Neerlandais";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 41..46
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 69..74
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 87..92
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 105..110
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 123..128
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 141..146
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 159..164
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 177..182
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 195..200
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 231..236
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 249..254
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 267..272

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Swedish") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "Swedish");
                      language.Name = "Svenska";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 41..46
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 69..74
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 87..92
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 105..110
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 123..128
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 159..164
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 177..182
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 195..200
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 213..218
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 231..236
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 249..254
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 267..272

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "French") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "French");
                      language.Name = "Français";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 41..46
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 69..74
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 87..92
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 105..110
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 123..128
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 141..146
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 159..164
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 195..200
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 213..218
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 231..236
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 249..254
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 267..272

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Portuguese") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "Portuguese");
                      language.Name = "Português";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 41..46
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 69..74
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 87..92
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 105..110
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 123..128
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 141..146
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 159..164
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 177..182
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 195..200
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 213..218
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 231..236
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 267..272

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Brazilian Portuguese") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "Brazilian Portuguese");
                      language.Name = "Portugues do Brasil";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 41..46
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 69..74
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 87..92
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 105..110
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 123..128
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 141..146
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 159..164
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 177..182
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 195..200
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 213..218
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 249..254
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 267..272

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "German") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "German");
                      language.Name = "Deutsch";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 41..46
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 87..92
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 105..110
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 123..128
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 141..146
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 159..164
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 177..182
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 195..200
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 213..218
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 231..236
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 249..254
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 267..272

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Ukrainian") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "Ukrainian");
                      language.Name = "українська";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 41..46
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 69..74
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 105..110
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 123..128
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 141..146
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 159..164
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 177..182
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 195..200
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 213..218
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 231..236
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 249..254
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 267..272

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Polish") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "Polish");
                      language.Name = "Polski";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 41..46
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 69..74
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 87..92
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 123..128
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 141..146
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 159..164
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 177..182
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 195..200
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 213..218
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 231..236
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 249..254
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 267..272

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Danish") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "Danish");
                      language.Name = "Dansk";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 69..74
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 87..92
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 105..110
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 123..128
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 141..146
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 159..164
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 177..182
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 195..200
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 213..218
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 231..236
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 249..254
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 267..272

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Spanish") != null)
                  {
                      Language language = dbContext.Languages.First(x => x.Name == "Spanish");
                      language.Name = "Español";
                      await language.Update(dbContext);
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 12 other locations - About 55 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 41..46
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 69..74
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 87..92
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 105..110
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 123..128
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 141..146
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 177..182
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 195..200
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 213..218
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 231..236
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 249..254
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 267..272

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Slovenský") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Slovenský",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "English") == null)
                  {
                      Language language = new Language
                      {
                          Name = "English",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Norsk") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Norsk",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Lietuvių") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Lietuvių",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Română") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Română",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Türkçe") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Türkçe",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Latviski") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Latviski",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Čeština") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Čeština",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "українська") == null)
                  {
                      Language language = new Language
                      {
                          Name = "українська",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Polski") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Polski",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Íslenska") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Íslenska",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Português") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Português",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Dansk") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Dansk",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Deutsch") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Deutsch",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "български") == null)
                  {
                      Language language = new Language
                      {
                          Name = "български",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Magyar") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Magyar",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Slovenščina") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Slovenščina",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Español") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Española",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Français") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Français",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Neerlandais") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Neerlandais",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Portugues do Brasil") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Portugues do Brasil",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Hrvatski") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Hrvatski",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Italiana") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Italiana",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Ελληνικά") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Ελληνικά",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Suomalainen") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Suomalainen",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Eesti") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Eesti",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 148..157
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

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

                  if (dbContext.Languages.FirstOrDefault(x => x.Name == "Svenska") == null)
                  {
                      Language language = new Language
                      {
                          Name = "Svenska",
      Severity: Major
      Found in eFormCore/Infrastructure/Data/Entities/Language.cs and 26 other locations - About 40 mins to fix
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 47..56
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 58..67
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 76..85
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 94..103
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 112..121
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 130..139
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 166..175
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 184..193
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 202..211
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 220..229
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 238..247
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 256..265
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 274..283
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 285..294
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 296..305
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 307..316
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 318..327
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 329..338
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 340..349
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 351..360
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 362..371
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 373..382
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 384..393
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 395..404
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 406..415
      eFormCore/Infrastructure/Data/Entities/Language.cs on lines 417..426

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

      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