microting/eform-sdk-dotnet

View on GitHub

Showing 3,203 of 3,219 total issues

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

            Field field = new Field
            {
                Color = Guid.NewGuid().ToString(),
                Custom = Guid.NewGuid().ToString(),
                Description = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 5 other locations - About 1 day to fix
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 114..147
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 616..649
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 115..148
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 353..386
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 690..723

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

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

            Field field = new Field
            {
                Color = Guid.NewGuid().ToString(),
                Custom = Guid.NewGuid().ToString(),
                Description = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 5 other locations - About 1 day to fix
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 346..379
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 616..649
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 115..148
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 353..386
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 690..723

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

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

            Field field = new Field
            {
                Color = Guid.NewGuid().ToString(),
                Custom = Guid.NewGuid().ToString(),
                Description = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs and 5 other locations - About 1 day to fix
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 114..147
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 346..379
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 115..148
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 353..386
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 690..723

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

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

            Field parentFIeld = new Field
            {
                Color = Guid.NewGuid().ToString(),
                Custom = Guid.NewGuid().ToString(),
                Description = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/FieldsUTest.cs and 5 other locations - About 1 day to fix
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 114..147
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 346..379
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 616..649
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 115..148
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 690..723

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

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

            CheckList checklist = new CheckList
            {
                Color = Guid.NewGuid().ToString(),
                Custom = Guid.NewGuid().ToString(),
                Description = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.Base.Tests/TagginsUTest.cs and 1 other location - About 1 day to fix
eFormSDK.Base.Tests/TagginsUTest.cs on lines 158..191

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

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

            Field parentFIeld = new Field
            {
                Color = Guid.NewGuid().ToString(),
                Custom = Guid.NewGuid().ToString(),
                Description = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.CheckLists.Tests/FieldsUTest.cs and 5 other locations - About 1 day to fix
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 114..147
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 346..379
eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 616..649
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 353..386
eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 690..723

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

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

            CheckList checklist = new CheckList
            {
                Color = Guid.NewGuid().ToString(),
                Custom = Guid.NewGuid().ToString(),
                Description = Guid.NewGuid().ToString(),
Severity: Major
Found in eFormSDK.Base.Tests/TagginsUTest.cs and 1 other location - About 1 day to fix
eFormSDK.Base.Tests/TagginsUTest.cs on lines 57..90

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

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

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

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

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

Refactorings

Further Reading

Method TemplateItemRead has 208 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public async Task<Template_Dto> TemplateItemRead(int templateId, Language language)
        {
            string methodName = "SqlController.TemplateItemRead";

            try
Severity: Major
Found in eFormCore/Infrastructure/SqlController.cs - About 1 day to fix

    Method Cases_Update_DoesUpdate has 205 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            [Test]
            public async Task Cases_Update_DoesUpdate()
            {
                //Arrange
    
    
    Severity: Major
    Found in eFormSDK.CheckLists.Tests/CasesUTest.cs - About 1 day to fix

      Method FieldValues_Create_DoesCreate has 204 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              [Test]
              public async Task FieldValues_Create_DoesCreate()
              {
                  short shortMinValue = Int16.MinValue;
                  short shortmaxValue = Int16.MaxValue;
      Severity: Major
      Found in eFormSDK.CheckLists.Tests/FieldValuesUTest.cs - About 1 day to fix

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

                [Test]
                public async Task SQL_Tags_GetAllTags_DoesReturnAllTags()
                {
                    // Arrance
                    string tagName1 = "Tag1";
        eFormSDK.Integration.Base.CoreTests/CoreTestTag.cs on lines 145..181

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

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

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

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

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

        Refactorings

        Further Reading

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

                [Test]
                public async Task Core_Tags_GetAllTags_DoesReturnAllTags()
                {
                    // Arrance
                    string tagName1 = "Tag1";
        Severity: Major
        Found in eFormSDK.Integration.Base.CoreTests/CoreTestTag.cs and 1 other location - About 1 day to fix
        eFormSDK.Integration.Base.SqlControllerTests/SqlControllerTestTag.cs on lines 139..187

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

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

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

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

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

        Refactorings

        Further Reading

        Method SaveAnswer has a Cognitive Complexity of 67 (exceeds 20 allowed). Consider refactoring.
        Open

                private async Task SaveAnswer(JToken subItem, int questionSetId)
                {
                    Log.LogStandard("Core.SaveAnswer", $"called {DateTime.UtcNow}");
                    var settings = new JsonSerializerSettings { Error = (se, ev) => { ev.ErrorContext.Handled = true; } };
                    await using (var db = DbContextHelper.GetDbContext())
        Severity: Minor
        Found in eFormCore/Core.cs - About 1 day to fix

        Cognitive Complexity

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

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

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

        Further reading

        Class HttpFake has 56 methods (exceeds 20 allowed). Consider refactoring.
        Open

            public class HttpFake : IHttp
            {
                // var
        //        private string protocolXml = "6";
        
        
        Severity: Major
        Found in eFormCore/Communication/HttpFake.cs - About 1 day to fix

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

                      CheckList checklist = new CheckList
                      {
                          Color = Guid.NewGuid().ToString(),
                          Custom = Guid.NewGuid().ToString(),
                          Description = Guid.NewGuid().ToString(),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/CheckListsUTest.cs and 2 other locations - About 1 day to fix
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 86..118
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 257..289

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

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

                      CheckList checklist = new CheckList
                      {
                          Color = Guid.NewGuid().ToString(),
                          Custom = Guid.NewGuid().ToString(),
                          Description = Guid.NewGuid().ToString(),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/CheckListsUTest.cs and 2 other locations - About 1 day to fix
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 86..118
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 530..562

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

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

                      CheckList checklist = new CheckList
                      {
                          Color = Guid.NewGuid().ToString(),
                          Custom = Guid.NewGuid().ToString(),
                          Description = Guid.NewGuid().ToString(),
          Severity: Major
          Found in eFormSDK.CheckLists.Tests/CheckListsUTest.cs and 2 other locations - About 1 day to fix
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 257..289
          eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 530..562

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

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

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

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

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

          Refactorings

          Further Reading

          Method Up has 199 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  protected override void Up(MigrationBuilder migrationBuilder)
                  {
                      //Setup for SQL Server Provider
                     
                      string autoIDGenStrategy = "SqlServer:ValueGenerationStrategy";
          Severity: Major
          Found in eFormCore/Migrations/20200120164857_AddingTranslationsToInSight.cs - About 7 hrs to fix

            Method TemplateItemReadAll has 197 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                    public async Task<List<Template_Dto>> TemplateItemReadAll(bool includeRemoved, string siteWorkflowState,
                        string searchKey, bool descendingSort, string sortParameter, List<int> tagIds, TimeZoneInfo timeZoneInfo,
                        Language language)
                    {
                        string methodName = "SqlController.TemplateItemReadAll";
            Severity: Major
            Found in eFormCore/Infrastructure/SqlController.cs - About 7 hrs to fix

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

                          CheckList checklist = new CheckList
                          {
                              Color = Guid.NewGuid().ToString(),
                              Custom = Guid.NewGuid().ToString(),
                              Description = Guid.NewGuid().ToString(),
              Severity: Major
              Found in eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs and 17 other locations - About 7 hrs to fix
              eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 79..110
              eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 249..280
              eFormSDK.CheckLists.Tests/CasesUTest.cs on lines 485..516
              eFormSDK.CheckLists.Tests/CheckListSitesUTest.cs on lines 59..90
              eFormSDK.CheckLists.Tests/CheckListSitesUTest.cs on lines 157..188
              eFormSDK.CheckLists.Tests/CheckListSitesUTest.cs on lines 274..305
              eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 79..110
              eFormSDK.CheckLists.Tests/CheckListValuesUTest.cs on lines 377..408
              eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 52..83
              eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 223..254
              eFormSDK.CheckLists.Tests/CheckListsUTest.cs on lines 496..527
              eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 66..97
              eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 297..328
              eFormSDK.CheckLists.Tests/FieldValuesUTest.cs on lines 567..598
              eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 66..97
              eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 305..336
              eFormSDK.CheckLists.Tests/FieldsUTest.cs on lines 642..673

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

              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