H-PixelDroid/PixelDroid

View on GitHub
app/src/main/java/org/pixeldroid/app/utils/BlurHashDecoder.kt

Summary

Maintainability
A
1 hr
Test Coverage

Method decode has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private fun decode(blurHash: String?, width: Int?, height: Int?, punch: Float = 1f): Bitmap? {
        if (blurHash == null || width == null || height == null || blurHash.length < 6) {
            return null
        }
        require(width > 0) { "Width must be greater than zero" }
Severity: Minor
Found in app/src/main/java/org/pixeldroid/app/utils/BlurHashDecoder.kt - About 1 hr to fix

    Method composeBitmap has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

                width: Int, height: Int,
                numCompX: Int, numCompY: Int,
                colors: Array<FloatArray>
    Severity: Minor
    Found in app/src/main/java/org/pixeldroid/app/utils/BlurHashDecoder.kt - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status