Skip to content

Commit

Permalink
Merge pull request #230 from Linfye/fix-long-parameter-list
Browse files Browse the repository at this point in the history
Fix Long Parameter List
  • Loading branch information
andrewtavis authored Oct 28, 2024
2 parents 7ead6c1 + 44898ea commit 0bf3879
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/be/scri/helpers/DatabaseHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ class DatabaseHelper(
}

override fun onCreate(db: SQLiteDatabase) {
// No operation for now
}

override fun onUpgrade(
db: SQLiteDatabase,
oldVersion: Int,
newVersion: Int,
) {
// No operation for now
}

fun loadDatabase(language: String) {
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/java/be/scri/helpers/RatingHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.util.Log
import android.widget.Toast
import be.scri.activities.MainActivity
import com.google.android.play.core.review.ReviewManagerFactory
Expand All @@ -15,6 +16,7 @@ class RatingHelper {
val packageManager = context.packageManager
packageManager.getInstallerPackageName(context.packageName)
} catch (e: PackageManager.NameNotFoundException) {
Log.e("RatingHelper", "Failed to get install source", e)
null
}

Expand Down
10 changes: 5 additions & 5 deletions detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ style:
LoopWithTooManyJumpStatements:
active: false
WildcardImport:
active: false
active: true
ReturnCount:
active: false
UnusedPrivateProperty:
Expand All @@ -24,23 +24,23 @@ complexity:
ComplexCondition:
active: true
LongParameterList:
active: false
active: true
LongMethod:
active: true
CyclomaticComplexMethod:
active: false

exceptions:
SwallowedException:
active: false
active: true
InstanceOfCheckForException:
active: false
active: true

empty-blocks:
EmptyCatchBlock:
active: true
EmptyFunctionBlock:
active: false
active: true

performance:
SpreadOperator:
Expand Down

0 comments on commit 0bf3879

Please sign in to comment.