aboutsummaryrefslogtreecommitdiff
path: root/ktlint-core/src/test/kotlin/com/github/shyiko/ktlint/core/ErrorSuppressionTest.kt
diff options
context:
space:
mode:
authorAurimas Liutikas <aurimas@google.com>2018-05-25 16:15:10 -0700
committerAurimas Liutikas <aurimas@google.com>2018-05-25 16:15:10 -0700
commit3432676ef4ed599933a9a05a9f4e712e7e657f1b (patch)
tree8aa62a48ff99be9923c5f57521ba855b763eb8aa /ktlint-core/src/test/kotlin/com/github/shyiko/ktlint/core/ErrorSuppressionTest.kt
parent946fa4217826656ac2e82c101f63c5c471ee5df0 (diff)
parent326cdc53aa67dc3e8d68eb24fcc08b3e4a7b9bde (diff)
downloadktlint-3432676ef4ed599933a9a05a9f4e712e7e657f1b.tar.gz
Merge commit '326cdc53aa67dc3e8d68eb24fcc08b3e4a7b9bde'HEADmastermain
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.kt7
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)