Skip to content

Commit

Permalink
build: suppress new sonarqube issues
Browse files Browse the repository at this point in the history
  • Loading branch information
maureenorea-clores authored Dec 11, 2023
1 parent eecd643 commit cfcb373
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ internal abstract class AccountRepository {
preferences: PreferencesUtil = PreferencesUtil,
)

@SuppressWarnings("kotlin:S6515")
companion object {
private const val TOKEN_PREFIX = "OAuth2 "
internal const val ID_TRACKING_ERR_MSG = "Both an access token and a user tracking id have been set. " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ internal abstract class CampaignRepository {
*/
abstract fun clearMessages()

@SuppressWarnings("kotlin:S6515")
companion object {
private var instance: CampaignRepository = CampaignRepositoryImpl()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ internal interface HostAppInfoRepository {
*/
fun getRegisteredActivity(): Activity?

@SuppressWarnings("kotlin:S6515")
companion object {
private const val TAG = "IAM_HostAppRepository"
private var instance: HostAppInfoRepository = HostAppInfoRepositoryImpl()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ internal class InAppMessagingTooltipView(

/** This method binds image to view. */
@Suppress("ClickableViewAccessibility", "TooGenericExceptionCaught", "LongMethod")
@SuppressWarnings("kotlin:S6516")
private fun bindImage() { // Display image.
this.hide(asGone = true)
if (this.imageUrl.isNullOrEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ internal interface ConfigScheduler {

fun startConfig(delay: Long = 0, workManager: WorkManager? = null)

@SuppressWarnings("kotlin:S6515")
companion object {
private const val CONFIG_WORKER_NAME = "iam_config_worker"
private var instance: ConfigScheduler = ConfigSchedulerImpl()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ internal interface EventMessageReconciliationScheduler {
*/
fun startReconciliationWorker(workManager: WorkManager? = null, delay: Long = 0)

@SuppressWarnings("kotlin:S6515")
companion object {
private const val MESSAGES_EVENTS_WORKER_NAME = "iam_messages_events_worker"
private var instance: EventMessageReconciliationScheduler = EventMessageReconciliationSchedulerImpl()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ internal interface MessageMixerPingScheduler {
*/
fun pingMessageMixerService(initialDelay: Long, workManager: WorkManager? = null)

@SuppressWarnings("kotlin:S6515")
companion object {
private const val MESSAGE_MIXER_PING_WORKER = "iam_message_mixer_worker"
private var instance: MessageMixerPingScheduler = MessageMixerPingSchedulerImpl()
Expand Down

0 comments on commit cfcb373

Please sign in to comment.