Talentica/AndroidWithKotlin

View on GitHub
o_notifications/src/main/java/com/talentica/androidkotlin/onotifications/utils/NotificationHelper.kt

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 4 of 4 total issues

Method createChannel has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

fun createChannel(id: String?, name: CharSequence?, importance: Int,
showBadge: Boolean, group: String, color: Int, vibrationPattern: LongArray) {

    Method createNotification has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    fun createNotification(channelId: String, title: String, body: String, ticker: String, onGoing:
    Boolean, color: Int): Int {

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

      fun createNotification(channelId: String, title: String, body: String, ticker: String, onGoing:
      Boolean, color: Int): Int {
      o_notifications/src/main/java/com/talentica/androidkotlin/onotifications/notifications/NotificationPresenter.kt on lines 51..52

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

      .IMPORTANCE_DEFAULT, true, "Personal", Color.CYAN, longArrayOf(100, 200, 300,
      100, 200, 300, 100, 200, 300))
      o_notifications/src/main/java/com/talentica/androidkotlin/onotifications/notifications/NotificationContract.kt on lines 40..41
      Category
      Status