diff options
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) |