Created
December 15, 2019 10:52
-
-
Save dafi/da14013fb2769698b962508f64a14713 to your computer and use it in GitHub Desktop.
Bug test for detekt ignoring MaximumLineLength and MaxLineLength at function definition level
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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