Skip to content

FLW-1251 - #696

Open
NikhilFegade wants to merge 56 commits into
release-2.14from
naf_feature_gamification
Open

NikhilFegade wants to merge 56 commits into
release-2.14from
naf_feature_gamification

Add unit tests for BadgeSyncWorker, MonthlyRecapReminderWorker and Re…

49c9d41
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Nov 16, 2026 in 1m 26s

Annotations

Check warning on line 30 in app/src/main/java/org/piramalswasthya/sakhi/repositories/CbacRecapDataSource.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSsdx5q645-i0dr&open=AaHkUxSsdx5q645-i0dr&pullRequest=696

Check warning on line 38 in app/src/main/java/org/piramalswasthya/sakhi/notifications/NotificationEngine.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSmdx5q645-i0dk&open=AaHkUxSmdx5q645-i0dk&pullRequest=696

Check failure on line 399 in app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/monthly_recap/MonthlyRecapPlaybackFragment.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxPydx5q645-i0da&open=AaHkUxPydx5q645-i0da&pullRequest=696

Check warning on line 30 in app/src/main/java/org/piramalswasthya/sakhi/repositories/CbacRecapDataSource.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this dispatcher. It is pointless when used with only suspending functions.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSsdx5q645-i0ds&open=AaHkUxSsdx5q645-i0ds&pullRequest=696

Check failure on line 217 in app/src/main/java/org/piramalswasthya/sakhi/ui/home_activity/home/SchedulerFragment.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxO6dx5q645-i0dZ&open=AaHkUxO6dx5q645-i0dZ&pullRequest=696

Check failure on line 230 in app/src/main/java/org/piramalswasthya/sakhi/badges/domain/BadgeEvaluator.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 40 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxQudx5q645-i0de&open=AaHkUxQudx5q645-i0de&pullRequest=696

Check failure on line 54 in app/src/main/java/org/piramalswasthya/sakhi/notifications/FormSaveInterceptor.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSndx5q645-i0dm&open=AaHkUxSndx5q645-i0dm&pullRequest=696

Check warning on line 25 in app/src/main/java/org/piramalswasthya/sakhi/repositories/MaternalHealthRecapDataSource.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSrdx5q645-i0dp&open=AaHkUxSrdx5q645-i0dp&pullRequest=696

Check warning on line 21 in app/src/main/java/org/piramalswasthya/sakhi/repositories/BeneficiaryRecapDataSource.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this dispatcher. It is pointless when used with only suspending functions.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxStdx5q645-i0du&open=AaHkUxStdx5q645-i0du&pullRequest=696

Check warning on line 34 in app/src/main/java/org/piramalswasthya/sakhi/badges/BadgeDemoSeeder.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxRYdx5q645-i0df&open=AaHkUxRYdx5q645-i0df&pullRequest=696

Check failure on line 65 in app/src/main/java/org/piramalswasthya/sakhi/helpers/RecapContentCodec.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this method to reduce its Cognitive Complexity from 56 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxRsdx5q645-i0dh&open=AaHkUxRsdx5q645-i0dh&pullRequest=696

Check warning on line 22 in app/src/main/java/org/piramalswasthya/sakhi/repositories/EligibleCoupleRecapDataSource.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this dispatcher. It is pointless when used with only suspending functions.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSudx5q645-i0dw&open=AaHkUxSudx5q645-i0dw&pullRequest=696

Check warning on line 54 in app/src/main/java/org/piramalswasthya/sakhi/notifications/FormSaveInterceptor.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSndx5q645-i0dl&open=AaHkUxSndx5q645-i0dl&pullRequest=696

Check warning on line 21 in app/src/main/java/org/piramalswasthya/sakhi/repositories/BeneficiaryRecapDataSource.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxStdx5q645-i0dt&open=AaHkUxStdx5q645-i0dt&pullRequest=696

Check warning on line 24 in app/src/main/java/org/piramalswasthya/sakhi/repositories/ImmunizationRecapDataSource.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxTKdx5q645-i0d0&open=AaHkUxTKdx5q645-i0d0&pullRequest=696

Check warning on line 1782 in app/src/main/res/values/strings.xml

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Complete the task associated to this "TODO" comment.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxIldx5q645-i0dX&open=AaHkUxIldx5q645-i0dX&pullRequest=696

Check warning on line 38 in app/src/main/java/org/piramalswasthya/sakhi/helpers/RecapStoryGate.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxRtdx5q645-i0di&open=AaHkUxRtdx5q645-i0di&pullRequest=696

Check warning on line 210 in app/src/main/java/org/piramalswasthya/sakhi/repositories/MonthlyRecapRepo.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSwdx5q645-i0dz&open=AaHkUxSwdx5q645-i0dz&pullRequest=696

Check warning on line 21 in app/src/main/java/org/piramalswasthya/sakhi/repositories/HouseholdRecapDataSource.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this dispatcher. It is pointless when used with only suspending functions.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSqdx5q645-i0do&open=AaHkUxSqdx5q645-i0do&pullRequest=696

Check warning on line 67 in app/src/main/java/org/piramalswasthya/sakhi/repositories/MonthlyRecapRepo.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSwdx5q645-i0dy&open=AaHkUxSwdx5q645-i0dy&pullRequest=696

Check warning on line 21 in app/src/main/java/org/piramalswasthya/sakhi/repositories/HouseholdRecapDataSource.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSqdx5q645-i0dn&open=AaHkUxSqdx5q645-i0dn&pullRequest=696

Check warning on line 12 in app/src/main/java/org/piramalswasthya/sakhi/helpers/RecapClock.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Make this interface functional or replace it with a function type.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxRvdx5q645-i0dj&open=AaHkUxRvdx5q645-i0dj&pullRequest=696

Check warning on line 230 in app/src/main/java/org/piramalswasthya/sakhi/badges/domain/BadgeEvaluator.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function has 8 parameters, which is greater than the 7 authorized.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxQudx5q645-i0dc&open=AaHkUxQudx5q645-i0dc&pullRequest=696

Check warning on line 22 in app/src/main/java/org/piramalswasthya/sakhi/repositories/EligibleCoupleRecapDataSource.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSudx5q645-i0dv&open=AaHkUxSudx5q645-i0dv&pullRequest=696

Check warning on line 63 in app/src/main/java/org/piramalswasthya/sakhi/repositories/MonthlyRecapRepo.kt

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid hardcoded dispatchers.

See more on https://sonarcloud.io/project/issues?id=PSMRI_FLW-Mobile-App&issues=AaHkUxSwdx5q645-i0dx&open=AaHkUxSwdx5q645-i0dx&pullRequest=696