Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: suppress new sonarqube issues #369

Merged

Conversation

maureenorea-clores
Copy link
Collaborator

@maureenorea-clores maureenorea-clores commented Dec 11, 2023

Description

  • Suppressed newly introduced Sonarqube issues regarding the use of singletons, as it is causing build failure
  • Will re-visit these suppressions in the succeeding versions.

Links

N/A

Checklist

  • I have read the contributing guidelines.
  • I wrote/updated tests for new/changed code
  • I removed all sensitive data before every commit, including API endpoints and keys, and internal links
  • I checked that all possible internal and platform/library exceptions are gracefully handled and will not crash the host app
  • I checked for open & known issues (especially crashes) for any newly added platform APIs or libraries
  • I tested non-trivial changes on a real device
  • I added ticket/changes in changelog
  • I ran ./gradlew check without errors

@rakutentech-danger-bot
Copy link
Collaborator

7 Warnings
⚠️ Tests were not updated.
⚠️ Verb "suppres" in the PR title must be in imperative tense.
⚠️ PR title "build: suppress new sonarqube issues" should append ticket number(s).
⚠️ No coverage data found for com/rakuten/tech/mobile/inappmessaging/runtime/data/repositories/HostAppInfoRepository
⚠️ No coverage data found for com/rakuten/tech/mobile/inappmessaging/runtime/workmanager/schedulers/EventMessageReconciliationScheduler
⚠️ No coverage data found for com/rakuten/tech/mobile/inappmessaging/runtime/workmanager/schedulers/ConfigScheduler
⚠️ No coverage data found for com/rakuten/tech/mobile/inappmessaging/runtime/workmanager/schedulers/MessageMixerPingScheduler

JaCoCo Code Coverage 97.6% ✅

Class Covered Meta Status
com/rakuten/tech/mobile/inappmessaging/runtime/view/InAppMessagingTooltipView 74% 0%
com/rakuten/tech/mobile/inappmessaging/runtime/data/repositories/HostAppInfoRepository No coverage data found : -% No coverage data found : -% 🃏
com/rakuten/tech/mobile/inappmessaging/runtime/data/repositories/CampaignRepository 100% 0%
com/rakuten/tech/mobile/inappmessaging/runtime/data/repositories/AccountRepository 100% 0%
com/rakuten/tech/mobile/inappmessaging/runtime/workmanager/schedulers/EventMessageReconciliationScheduler No coverage data found : -% No coverage data found : -% 🃏
com/rakuten/tech/mobile/inappmessaging/runtime/workmanager/schedulers/ConfigScheduler No coverage data found : -% No coverage data found : -% 🃏
com/rakuten/tech/mobile/inappmessaging/runtime/workmanager/schedulers/MessageMixerPingScheduler No coverage data found : -% No coverage data found : -% 🃏

Generated by 🚫 Danger

Copy link
Contributor

@puneetksh puneetksh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we have release scheduled for tomorrow, so considering that we may choose to suppress this warning for now and later on we may investigate about removing this annotation i.e. @SuppressWarnings("kotlin:S6515") from the code.

@@ -27,6 +27,7 @@ internal interface MessageMixerPingScheduler {
*/
fun pingMessageMixerService(initialDelay: Long, workManager: WorkManager? = null)

@SuppressWarnings("kotlin:S6515")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW, May I know what is this S6516 warning ?

  • It seems to be there for every companion object ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://rules.sonarsource.com/kotlin/RSPEC-6515/.
Encourages to use the built-in feature object, instead of manually creating singletons.

Copy link
Contributor

@mdusmangani-jp mdusmangani-jp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

sonarcloud bot commented Dec 11, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@maureenorea-clores maureenorea-clores merged commit cfcb373 into rakutentech:master Dec 11, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants