ilyalehchylin/educats-xamarin

View on GitHub
source/EduCATS/Data/DataAccess.cs

Summary

Maintainability
B
4 hrs
Test Coverage

Class DataAccess has 36 methods (exceeds 20 allowed). Consider refactoring.
Wontfix

    public static partial class DataAccess
    {
        public static string Username { get; private set; }

        /// <summary>
Severity: Minor
Found in source/EduCATS/Data/DataAccess.cs - About 4 hrs to fix

    File DataAccess.cs has 275 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    using System.Collections.Generic;
    using System.Net;
    using System.Threading.Tasks;
    using EduCATS.Constants;
    using EduCATS.Data.Models;
    Severity: Minor
    Found in source/EduCATS/Data/DataAccess.cs - About 2 hrs to fix

      Similar blocks of code found in 3 locations. Consider refactoring.
      Wontfix

              public async static Task<List<RecommendationModel>> GetRecommendations(int subjectId, int userId)
              {
                  var dataAccess = new DataAccess<RecommendationModel>(
                      "recommendations_fetch_error", getRecommendationsCallback(subjectId, userId),
                      GetKey(GlobalConsts.DataGetRecommendationsKey, subjectId, userId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 2 other locations - About 1 hr to fix
      source/EduCATS/Data/DataAccess.cs on lines 289..295
      source/EduCATS/Data/DataAccess.cs on lines 339..345

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

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

              public async static Task<List<TestModel>> GetAvailableTests(int subjectId, int userId)
              {
                  var dataAccess = new DataAccess<TestModel>(
                      "testing_get_tests_error", getTestsCallback(subjectId, userId),
                      GetKey(GlobalConsts.DataGetTestsKey, subjectId, userId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 2 other locations - About 1 hr to fix
      source/EduCATS/Data/DataAccess.cs on lines 339..345
      source/EduCATS/Data/DataAccess.cs on lines 455..461

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

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

              public async static Task<List<TestResultsModel>> GetUserAnswers(int userId, int testId)
              {
                  var dataAccess = new DataAccess<TestResultsModel>(
                      "test_results_error", getTestAnswersCallback(userId, testId),
                      GetKey(GlobalConsts.DataGetTestAnswersKey, userId, testId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 2 other locations - About 1 hr to fix
      source/EduCATS/Data/DataAccess.cs on lines 289..295
      source/EduCATS/Data/DataAccess.cs on lines 455..461

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<LabsVisitingList> GetTestPracticialStatistics(int subjectId, int groupId)
              {
                  var dataAccess = new DataAccess<LabsVisitingList>(
                      "stats_marks_error", getTestPracticialStatsCallback(subjectId, groupId),
                      GetKey(GlobalConsts.DataGetMarksKey, subjectId, groupId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 1 hr to fix
      source/EduCATS/Data/DataAccess.cs on lines 148..154
      source/EduCATS/Data/DataAccess.cs on lines 162..168
      source/EduCATS/Data/DataAccess.cs on lines 170..176
      source/EduCATS/Data/DataAccess.cs on lines 225..231
      source/EduCATS/Data/DataAccess.cs on lines 239..245
      source/EduCATS/Data/DataAccess.cs on lines 261..267
      source/EduCATS/Data/DataAccess.cs on lines 275..281

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

      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 8 locations. Consider refactoring.
      Wontfix

                  public async static Task<StatsModel> GetStatistics(int subjectId, int groupId)
              {
                  var dataAccess = new DataAccess<StatsModel>(
                      "stats_marks_error", getStatsCallback(subjectId, groupId),
                      GetKey(GlobalConsts.DataGetMarksKey, subjectId, groupId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 1 hr to fix
      source/EduCATS/Data/DataAccess.cs on lines 162..168
      source/EduCATS/Data/DataAccess.cs on lines 170..176
      source/EduCATS/Data/DataAccess.cs on lines 192..198
      source/EduCATS/Data/DataAccess.cs on lines 225..231
      source/EduCATS/Data/DataAccess.cs on lines 239..245
      source/EduCATS/Data/DataAccess.cs on lines 261..267
      source/EduCATS/Data/DataAccess.cs on lines 275..281

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<TakedLabs> GetLabsTest(int subjectId, int groupId)
              {
                  var dataAccess = new DataAccess<TakedLabs>(
                      "labs_fetch_error", getTestLabsCallback(subjectId, groupId),
                      GetKey(GlobalConsts.DataGetLabsKey, subjectId, groupId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 1 hr to fix
      source/EduCATS/Data/DataAccess.cs on lines 148..154
      source/EduCATS/Data/DataAccess.cs on lines 162..168
      source/EduCATS/Data/DataAccess.cs on lines 170..176
      source/EduCATS/Data/DataAccess.cs on lines 192..198
      source/EduCATS/Data/DataAccess.cs on lines 225..231
      source/EduCATS/Data/DataAccess.cs on lines 239..245
      source/EduCATS/Data/DataAccess.cs on lines 275..281

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<LabsModel> GetLabs(int subjectId, int groupId)
              {
                  var dataAccess = new DataAccess<LabsModel>(
                      "labs_fetch_error", getLabsCallback(subjectId, groupId),
                      GetKey(GlobalConsts.DataGetLabsKey, subjectId, groupId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 1 hr to fix
      source/EduCATS/Data/DataAccess.cs on lines 148..154
      source/EduCATS/Data/DataAccess.cs on lines 162..168
      source/EduCATS/Data/DataAccess.cs on lines 170..176
      source/EduCATS/Data/DataAccess.cs on lines 192..198
      source/EduCATS/Data/DataAccess.cs on lines 225..231
      source/EduCATS/Data/DataAccess.cs on lines 261..267
      source/EduCATS/Data/DataAccess.cs on lines 275..281

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<TakedLabs> GetPractTest(int subjectId, int groupId)
              {
                  var dataAccess = new DataAccess<TakedLabs>(
                      "stats_marks_error", getTestPractScheduleCallbak(subjectId, groupId),
                      GetKey(GlobalConsts.DataGetMarksKey, subjectId, groupId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 1 hr to fix
      source/EduCATS/Data/DataAccess.cs on lines 148..154
      source/EduCATS/Data/DataAccess.cs on lines 162..168
      source/EduCATS/Data/DataAccess.cs on lines 192..198
      source/EduCATS/Data/DataAccess.cs on lines 225..231
      source/EduCATS/Data/DataAccess.cs on lines 239..245
      source/EduCATS/Data/DataAccess.cs on lines 261..267
      source/EduCATS/Data/DataAccess.cs on lines 275..281

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<LecturesModel> GetLectures(int subjectId, int groupId)
              {
                  var dataAccess = new DataAccess<LecturesModel>(
                      "lectures_fetch_error", getLecturesCallback(subjectId, groupId),
                      GetKey(GlobalConsts.DataGetLecturesKey, subjectId, groupId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 1 hr to fix
      source/EduCATS/Data/DataAccess.cs on lines 148..154
      source/EduCATS/Data/DataAccess.cs on lines 162..168
      source/EduCATS/Data/DataAccess.cs on lines 170..176
      source/EduCATS/Data/DataAccess.cs on lines 192..198
      source/EduCATS/Data/DataAccess.cs on lines 225..231
      source/EduCATS/Data/DataAccess.cs on lines 239..245
      source/EduCATS/Data/DataAccess.cs on lines 261..267

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<LecturesModel> GetLecturesTest(int subjectId, int groupId)
              {
                  var dataAccess = new DataAccess<LecturesModel>(
                      "lectures_fetch_error", getLecturesCallbackTest(subjectId, groupId),
                      GetKey(GlobalConsts.DataGetLecturesKey, subjectId, groupId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 1 hr to fix
      source/EduCATS/Data/DataAccess.cs on lines 148..154
      source/EduCATS/Data/DataAccess.cs on lines 162..168
      source/EduCATS/Data/DataAccess.cs on lines 170..176
      source/EduCATS/Data/DataAccess.cs on lines 192..198
      source/EduCATS/Data/DataAccess.cs on lines 239..245
      source/EduCATS/Data/DataAccess.cs on lines 261..267
      source/EduCATS/Data/DataAccess.cs on lines 275..281

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<LabsVisitingList> GetTestStatistics(int subjectId, int groupId)
              {
                  var dataAccess = new DataAccess<LabsVisitingList>(
                      "stats_marks_error", getTestStatsCallback(subjectId, groupId),
                      GetKey(GlobalConsts.DataGetMarksKey, subjectId, groupId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 1 hr to fix
      source/EduCATS/Data/DataAccess.cs on lines 148..154
      source/EduCATS/Data/DataAccess.cs on lines 170..176
      source/EduCATS/Data/DataAccess.cs on lines 192..198
      source/EduCATS/Data/DataAccess.cs on lines 225..231
      source/EduCATS/Data/DataAccess.cs on lines 239..245
      source/EduCATS/Data/DataAccess.cs on lines 261..267
      source/EduCATS/Data/DataAccess.cs on lines 275..281

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<ExtendedTestResultModel> GetUserAnswers(int testId)
              {
                  var dataAccess = new DataAccess<ExtendedTestResultModel>(
                      "test_results_error", getTestAnswersCallback(testId),
                      GetKey(GlobalConsts.DataGetTestAnswersKey, testId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 50 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 178..184
      source/EduCATS/Data/DataAccess.cs on lines 205..211
      source/EduCATS/Data/DataAccess.cs on lines 247..253
      source/EduCATS/Data/DataAccess.cs on lines 386..392
      source/EduCATS/Data/DataAccess.cs on lines 400..406
      source/EduCATS/Data/DataAccess.cs on lines 413..419
      source/EduCATS/Data/DataAccess.cs on lines 421..427

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<GroupModel> GetOnlyGroups(int subjectId)
              {
                  var dataAccess = new DataAccess<GroupModel>(
                      "groups_fetch_error", getGroupsCallback(subjectId),
                      GetKey(GlobalConsts.DataGetGroupsKey, subjectId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 50 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 178..184
      source/EduCATS/Data/DataAccess.cs on lines 247..253
      source/EduCATS/Data/DataAccess.cs on lines 347..353
      source/EduCATS/Data/DataAccess.cs on lines 386..392
      source/EduCATS/Data/DataAccess.cs on lines 400..406
      source/EduCATS/Data/DataAccess.cs on lines 413..419
      source/EduCATS/Data/DataAccess.cs on lines 421..427

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<Laboratories> GetLabs(int subjectId)
              {
                  var dataAccess = new DataAccess<Laboratories>(
                      "labs_fetch_error", getLabsCallback(subjectId),
                      GetKey(GlobalConsts.DataGetLabsKey, subjectId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 50 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 178..184
      source/EduCATS/Data/DataAccess.cs on lines 205..211
      source/EduCATS/Data/DataAccess.cs on lines 347..353
      source/EduCATS/Data/DataAccess.cs on lines 386..392
      source/EduCATS/Data/DataAccess.cs on lines 400..406
      source/EduCATS/Data/DataAccess.cs on lines 413..419
      source/EduCATS/Data/DataAccess.cs on lines 421..427

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<ConceptModel> GetConceptTree(int elementId)
              {
                  var dataAccess = new DataAccess<ConceptModel>(
                      "eemc_concept_tree_error", getConceptTreeCallback(elementId),
                      GetKey(GlobalConsts.DataGetConceptTreeKey, elementId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 50 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 178..184
      source/EduCATS/Data/DataAccess.cs on lines 205..211
      source/EduCATS/Data/DataAccess.cs on lines 247..253
      source/EduCATS/Data/DataAccess.cs on lines 347..353
      source/EduCATS/Data/DataAccess.cs on lines 400..406
      source/EduCATS/Data/DataAccess.cs on lines 413..419
      source/EduCATS/Data/DataAccess.cs on lines 421..427

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<ConceptModelTest> GetConceptCascade(int elementId)
              {
                  var dataAccess = new DataAccess<ConceptModelTest>(
                      "eemc_concept_tree_error", getConceptCascadeCallback(elementId),
                      GetKey(GlobalConsts.DataGetConceptTreeKey, elementId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 50 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 178..184
      source/EduCATS/Data/DataAccess.cs on lines 205..211
      source/EduCATS/Data/DataAccess.cs on lines 247..253
      source/EduCATS/Data/DataAccess.cs on lines 347..353
      source/EduCATS/Data/DataAccess.cs on lines 386..392
      source/EduCATS/Data/DataAccess.cs on lines 413..419
      source/EduCATS/Data/DataAccess.cs on lines 421..427

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<FilesModel> GetFiles(int subjectId)
              {
                  var dataAccess = new DataAccess<FilesModel>(
                      "files_fetch_error", getFilesCallback(subjectId),
                      GetKey(GlobalConsts.DataGetFilesKey, subjectId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 50 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 178..184
      source/EduCATS/Data/DataAccess.cs on lines 205..211
      source/EduCATS/Data/DataAccess.cs on lines 247..253
      source/EduCATS/Data/DataAccess.cs on lines 347..353
      source/EduCATS/Data/DataAccess.cs on lines 386..392
      source/EduCATS/Data/DataAccess.cs on lines 400..406
      source/EduCATS/Data/DataAccess.cs on lines 421..427

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<Practs> GetPracticals(int subjectId)
              {
                  var dataAccess = new DataAccess<Practs>(
                      "stats_marks_error", getTestPractScheduleCallbak(subjectId),
                      GetKey(GlobalConsts.DataGetPractsKey, subjectId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 50 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 205..211
      source/EduCATS/Data/DataAccess.cs on lines 247..253
      source/EduCATS/Data/DataAccess.cs on lines 347..353
      source/EduCATS/Data/DataAccess.cs on lines 386..392
      source/EduCATS/Data/DataAccess.cs on lines 400..406
      source/EduCATS/Data/DataAccess.cs on lines 413..419
      source/EduCATS/Data/DataAccess.cs on lines 421..427

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

      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 8 locations. Consider refactoring.
      Wontfix

              public async static Task<FilesModelTest> GetFilesTest(int subjectId)
              {
                  var dataAccess = new DataAccess<FilesModelTest>(
                      "files_fetch_error", getFilesCallback(subjectId),
                      GetKey(GlobalConsts.DataGetFilesKey, subjectId));
      Severity: Major
      Found in source/EduCATS/Data/DataAccess.cs and 7 other locations - About 50 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 178..184
      source/EduCATS/Data/DataAccess.cs on lines 205..211
      source/EduCATS/Data/DataAccess.cs on lines 247..253
      source/EduCATS/Data/DataAccess.cs on lines 347..353
      source/EduCATS/Data/DataAccess.cs on lines 386..392
      source/EduCATS/Data/DataAccess.cs on lines 400..406
      source/EduCATS/Data/DataAccess.cs on lines 413..419

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

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

              public async static Task<InfoLecturesModel> GetInfoLectures(int subjectId)
              {
                      var dataAccess = new DataAccess<InfoLecturesModel>(
                          "today_subjects_error", getInfoLecturesCallback(subjectId), GlobalConsts.DataGetSubjectsKey);
                      return await GetDataObject(dataAccess, false) as InfoLecturesModel;
      Severity: Minor
      Found in source/EduCATS/Data/DataAccess.cs and 2 other locations - About 40 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 123..128
      source/EduCATS/Data/DataAccess.cs on lines 135..140

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

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

              public async static Task<CalendarModel> GetProfileInfoCalendar(string username)
              {
                  var dataAccess = new DataAccess<CalendarModel>(
                      "today_calendar_error", getCalendarCallback(username), GlobalConsts.DataGetCalendarKey);
                  return await GetDataObject(dataAccess, false) as CalendarModel;
      Severity: Minor
      Found in source/EduCATS/Data/DataAccess.cs and 2 other locations - About 40 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 111..116
      source/EduCATS/Data/DataAccess.cs on lines 135..140

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

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

              public async static Task<CalendarSubjectModelTest> GetSchedule(string date)
              {
                  var dataAccess = new DataAccess<CalendarSubjectModelTest>(
                      "today_calendar_error", getScheduleCallback(date), GlobalConsts.DataGetCalendarKey);
                  return await GetDataObject(dataAccess, false) as CalendarSubjectModelTest;
      Severity: Minor
      Found in source/EduCATS/Data/DataAccess.cs and 2 other locations - About 40 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 111..116
      source/EduCATS/Data/DataAccess.cs on lines 123..128

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

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

              public async static Task<UserModel> Login(string username, string password)
              {
                  var dataAccess = new DataAccess<UserModel>("login_error", loginCallback(username, password));
                  return await GetDataObject(dataAccess, false) as UserModel;
              }
      Severity: Minor
      Found in source/EduCATS/Data/DataAccess.cs and 1 other location - About 40 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 46..50

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

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

              public async static Task<TokenModel> GetToken(string username, string password)
              {
                  var dataAccess = new DataAccess<TokenModel>("login_error", getTokenCallback(username, password));
                  return await GetDataObject(dataAccess, false) as TokenModel;
              }
      Severity: Minor
      Found in source/EduCATS/Data/DataAccess.cs and 1 other location - About 40 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 34..38

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

      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

              public async static Task<GroupInfo> GetGroupInfo(string groupName)
              {
                  var dataAccess = new DataAccess<GroupInfo>(
                      "Error", getGroupInfoCallback(groupName));
                  return await GetDataObject(dataAccess, false) as GroupInfo;
      Severity: Minor
      Found in source/EduCATS/Data/DataAccess.cs and 1 other location - About 35 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 302..306

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

      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

              public async static Task<TestDetailsModel> GetTest(int testId)
              {
                  var dataAccess = new DataAccess<TestDetailsModel>("get_test_error", getTestCallback(testId));
                  return await GetDataObject(dataAccess, false) as TestDetailsModel;
              }
      Severity: Minor
      Found in source/EduCATS/Data/DataAccess.cs and 1 other location - About 35 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 442..447

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

      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

              {
                  var dataAccess = new DataAccess<NewsModel>(
                      "today_news_load_error", getNewsCallback(username), GlobalConsts.DataGetNewsKey);
                  return await GetDataObject(dataAccess, true) as List<NewsModel>;
              }
      Severity: Minor
      Found in source/EduCATS/Data/DataAccess.cs and 1 other location - About 30 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 93..97

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

      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

                  {
                      var dataAccess = new DataAccess<SubjectModel>(
                          "today_subjects_error", getSubjectsCallback(username), GlobalConsts.DataGetSubjectsKey);
                      return await GetDataObject(dataAccess, true) as List<SubjectModel>;
                  }
      Severity: Minor
      Found in source/EduCATS/Data/DataAccess.cs and 1 other location - About 30 mins to fix
      source/EduCATS/Data/DataAccess.cs on lines 79..83

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

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

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

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

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

      Refactorings

      Further Reading

      There are no issues that match your filters.

      Category
      Status