diff options
author | Aurimas Liutikas <aurimas@google.com> | 2018-05-25 16:15:10 -0700 |
---|---|---|
committer | Aurimas Liutikas <aurimas@google.com> | 2018-05-25 16:15:10 -0700 |
commit | 3432676ef4ed599933a9a05a9f4e712e7e657f1b (patch) | |
tree | 8aa62a48ff99be9923c5f57521ba855b763eb8aa /ktlint-core/src/test/kotlin/com/github/shyiko/ktlint/core/ErrorSuppressionTest.kt | |
parent | 946fa4217826656ac2e82c101f63c5c471ee5df0 (diff) | |
parent | 326cdc53aa67dc3e8d68eb24fcc08b3e4a7b9bde (diff) | |
download | ktlint-3432676ef4ed599933a9a05a9f4e712e7e657f1b.tar.gz |
Update to ktlint 0.23.1
https://github.com/shyiko/ktlint/tree/0.23.1
Test: None
Diffstat (limited to 'ktlint-core/src/test/kotlin/com/github/shyiko/ktlint/core/ErrorSuppressionTest.kt')
-rw-r--r-- | ktlint-core/src/test/kotlin/com/github/shyiko/ktlint/core/ErrorSuppressionTest.kt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ktlint-core/src/test/kotlin/com/github/shyiko/ktlint/core/ErrorSuppressionTest.kt b/ktlint-core/src/test/kotlin/com/github/shyiko/ktlint/core/ErrorSuppressionTest.kt index c85dea7f..73542369 100644 --- a/ktlint-core/src/test/kotlin/com/github/shyiko/ktlint/core/ErrorSuppressionTest.kt +++ b/ktlint-core/src/test/kotlin/com/github/shyiko/ktlint/core/ErrorSuppressionTest.kt @@ -13,8 +13,11 @@ class ErrorSuppressionTest { @Test fun testErrorSuppression() { class NoWildcardImportsRule : Rule("no-wildcard-imports") { - override fun visit(node: ASTNode, autoCorrect: Boolean, - emit: (offset: Int, errorMessage: String, corrected: Boolean) -> Unit) { + override fun visit( + node: ASTNode, + autoCorrect: Boolean, + emit: (offset: Int, errorMessage: String, corrected: Boolean) -> Unit + ) { if (node is LeafPsiElement && node.textMatches("*") && PsiTreeUtil.getNonStrictParentOfType(node, KtImportDirective::class.java) != null) { emit(node.startOffset, "Wildcard import", false) |