microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

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

        [Test]
        public async Task question_Create_DoesCreate_QuestionSetTrue_ValidDisplayBackButtonEnabledImageTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

        [Test]
        public async Task question_Create_DoesCreate_QuestionSetFalse_ImageTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

        [Test]
        public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

        [Test]
        public async Task question_Create_DoesCreate_QuestionSetTrue_BackButtonEnabledTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

        [Test]
        public async Task question_Create_DoesCreate_QuestionSetTrue_ValidDisplayBackButtonEnabledTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

        [Test]
        public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedImageTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

                        [Test]
        public async Task question_Create_DoesCreate_QuestionSetFalse_ValidDisplayImageTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

                [Test]
        public async Task question_Create_DoesCreate_QuestionSetFalse_PrioritisedValidDisplayTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

        [Test]
        public async Task question_Create_DoesCreate_QuestionSetFalse_ValidDisplayBackButtonEnabledImageTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844

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

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

                [Test]
        public async Task question_Create_DoesCreate_QuestionSetFalse_PrioritisedImageTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

                                [Test]
        public async Task question_Create_DoesCreate_QuestionSetFalse_PrioritisedValidDisplayImageTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

        [Test]
        public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedValidDisplayBackButtonEnabledTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 896..960
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

        [Test]
        public async Task question_Create_DoesCreate_QuestionSetTrue_PrioritisedValidDisplayImageTrue()
        {
            // Arrange
            string name = Guid.NewGuid().ToString();
Severity: Major
Found in eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs and 28 other locations - About 1 day to fix
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 42..103
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 105..169
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 173..237
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 239..303
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 305..369
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 371..435
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 436..500
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 501..565
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 566..630
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 632..696
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 698..762
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 764..828
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 830..894
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 962..1026
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1028..1092
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1097..1161
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1163..1224
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1226..1287
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1289..1350
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1351..1412
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1413..1474
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1475..1536
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1537..1598
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1599..1660
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1661..1720
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1721..1782
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1783..1844
eFormSDK.Integration.Tests/SqlControllerTestQuestion.cs on lines 1845..1906

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

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

Identical blocks of code found in 5 locations. Consider refactoring.
Open

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.UnitVersion", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");
eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 3603..3691
eFormCore/Migrations/20221016081344_AddingIsActiveToLanguage.Designer.cs on lines 3609..3697
eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 3616..3704
eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 3616..3704

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

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

Identical blocks of code found in 5 locations. Consider refactoring.
Open

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.UnitVersion", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");
eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 3603..3691
eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 3615..3703
eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 3616..3704
eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 3616..3704

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

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

Identical blocks of code found in 5 locations. Consider refactoring.
Open

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.UnitVersion", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");
eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 3603..3691
eFormCore/Migrations/20221016081344_AddingIsActiveToLanguage.Designer.cs on lines 3609..3697
eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 3615..3703
eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 3616..3704

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

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

Identical blocks of code found in 5 locations. Consider refactoring.
Open

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.UnitVersion", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");
eFormCore/Migrations/20221016081344_AddingIsActiveToLanguage.Designer.cs on lines 3609..3697
eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 3615..3703
eFormCore/Migrations/20230506062507_AddingInitialsToWorkers.Designer.cs on lines 3616..3704
eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 3616..3704

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

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

Identical blocks of code found in 5 locations. Consider refactoring.
Open

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.UnitVersion", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");
eFormCore/Migrations/20220207094729_AddingIsLockedToSiteUnitWorkers.Designer.cs on lines 3603..3691
eFormCore/Migrations/20221016081344_AddingIsActiveToLanguage.Designer.cs on lines 3609..3697
eFormCore/Migrations/20221129082337_AddingReceivedByServerAtToCases.Designer.cs on lines 3615..3703
eFormCore/Migrations/20230607084834_AddingOriginalFileLocationToUploadedData.Designer.cs on lines 3616..3704

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

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

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.check_list_versions", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
eFormCore/Migrations/20200620171527_AddingExcelExportEnabledToCheckList.Designer.cs on lines 471..557

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

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

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

            modelBuilder.Entity("Microting.eForm.Infrastructure.Data.Entities.check_list_versions", b =>
                {
                    b.Property<int>("Id")
                        .ValueGeneratedOnAdd()
                        .HasAnnotation(autoIDGenStrategy, autoIDGenStrategyValue);
eFormCore/Migrations/20200701101500_LettingSurveyConfigurationIdBeNullable.Designer.cs on lines 471..557

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

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