microting/eform-sdk-dotnet

View on GitHub

Showing 2,526 of 2,542 total issues

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

            [Test]
            public async Task question_Update_DoesUpdate_ValidDisplayTrue_QSFalse()
            {
                // Arrange
                string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

                            [Test]
            public async Task question_Update_DoesUpdate_PrioritisedValidDisplayTrue_QSFalse()
            {
                // Arrange
                string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

                [Test]
                public async Task question_Update_DoesUpdate_ImageTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

                [Test]
                public async Task question_Update_DoesUpdate_ValidDisplayBackButtonEnabledTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

               [Test]
                public async Task question_Update_DoesUpdate_ValidDisplayImageTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

                [Test]
                public async Task question_Update_DoesUpdate_BackButtonEnabledImageTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

            [Test]
            public async Task question_Update_DoesUpdate_ImageTrue_QSFalse()
            {
                // Arrange
                string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

                                [Test]
                public async Task question_Update_DoesUpdate_PrioritisedBackButtonEnabledTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

                            [Test]
            public async Task question_Update_DoesUpdate_BackButtonEnabledImageTrue_QSFalse()
            {
                // Arrange
                string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

                            [Test]
            public async Task question_Update_DoesUpdate_PrioritisedValidDisplayBackButtonEnabledTrue_QSFalse()
            {
                // Arrange
                string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

        [Test]
        public async Task question_Update_DoesUpdate_AllFalse()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

           [Test]
            public async Task question_Update_DoesUpdate_ValidDisplayImageTrue_QSFalse()
            {
                // Arrange
                string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

            [Test]
            public async Task question_Update_DoesUpdate_PrioritisedTrue_QSFalse()
            {
                // Arrange
                string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

                [Test]
                public async Task question_Update_DoesUpdate_PrioritisedBackButtonEnabledImageTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

                            [Test]
            public async Task question_Update_DoesUpdate_PrioritisedBackButtonEnabledTrue_QSFalse()
            {
                // Arrange
                string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

            [Test]
            public async Task question_Update_DoesUpdate_ValidDisplayBackButtonEnabledTrue_QSFalse()
            {
                // Arrange
                string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

                                [Test]
                public async Task question_Update_DoesUpdate_PrioritisedImageTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

                                [Test]
                public async Task question_Update_DoesUpdate_PrioritisedValidDisplayBackButtonEnabledTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

                            [Test]
            public async Task question_Update_DoesUpdate_ValidDisplayBackButtonEnabledImageTrue_QSFalse()
            {
                // Arrange
                string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2087..2171
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234

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

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

                [Test]
                public async Task question_Update_DoesUpdate_PrioritisedTrue()
                {
                    // Arrange
                    string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 27 other locations - About 2 days to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1912..1996
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1998..2083
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2173..2257
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2259..2343
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2345..2429
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2430..2514
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2515..2599
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2600..2684
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2685..2769
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2770..2854
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2855..2939
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 2940..3024
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3025..3109
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3110..3194
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3199..3284
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3286..3371
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3373..3458
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3460..3545
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3546..3631
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3632..3717
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3718..3803
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3804..3889
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3890..3975
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 3976..4061
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4062..4147
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4148..4234
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 4235..4319

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

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

Severity
Category
Status
Source
Language