microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

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

            Question question2 = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionTranslationUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/AnswerValuesUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question questionForAnswerValue = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/AnswerValuesUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionTranslationUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionsUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionTranslationUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionTranslationUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionTranslationUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question2 = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionTranslationUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionTranslationUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question questionForAnswerValue = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/AnswerValuesUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/AnswerValuesUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionsUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173

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

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

            Question question2 = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionTranslationUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionsUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionTranslationUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question2 = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionTranslationUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/AnswerValuesUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 200..218
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

            Question question = new Question
            {
                Image = randomBool,
                Maximum = rnd.Next(1, 255),
                Minimum = rnd.Next(1, 255),
Severity: Major
Found in eFormSDK.InSight.Tests/QuestionTranslationUTest.cs and 19 other locations - About 3 hrs to fix
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 114..132
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 146..164
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 285..303
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 317..335
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 476..494
eFormSDK.InSight.Tests/AnswerValuesUTest.cs on lines 507..525
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 33..51
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 112..130
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 221..239
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 330..348
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 351..369
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 457..475
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 478..496
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 589..607
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 610..628
eFormSDK.InSight.Tests/QuestionTranslationUTest.cs on lines 709..727
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 59..77
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 155..173
eFormSDK.InSight.Tests/QuestionsUTest.cs on lines 306..324

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

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

Method Core_eFormSimpleNumberFormCreateInDB_ReturnseFormId has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        [Test]
        public async Task Core_eFormSimpleNumberFormCreateInDB_ReturnseFormId()
        {
            string xmlstring = @"
                <?xml version='1.0' encoding='UTF-8'?>
Severity: Major
Found in eFormSDK.Integration.CheckLists.CoreTests/CoreTesteFormCreateInDB.cs - About 3 hrs to fix
    Severity
    Category
    Status
    Source
    Language