Skip to content

Instantly share code, notes, and snippets.

@dafi
Created December 15, 2019 10:52
Show Gist options
  • Save dafi/da14013fb2769698b962508f64a14713 to your computer and use it in GitHub Desktop.
Save dafi/da14013fb2769698b962508f64a14713 to your computer and use it in GitHub Desktop.
Bug test for detekt ignoring MaximumLineLength and MaxLineLength at function definition level
// Work only at file declaration level
// @file:Suppress("MaximumLineLength", "MaxLineLength")
package com.ternaryop.photoshelf.activity
import android.webkit.WebView
class MaximumLineLength {
@Suppress("MaximumLineLength", "MaxLineLength")
fun dummyFunction(view: WebView) {
view.loadUrl("javascript:var img = document.querySelector('img');dimRetriever.setDimensions(img.width, img.height)")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment