From d8a8c7ae0d0ccb63fc7c6e955dea7713392f8fbe Mon Sep 17 00:00:00 2001 From: Stanley Shyiko Date: Tue, 6 Jun 2017 10:57:30 -0700 Subject: [PATCH] Fixed #54 - if `getValue` is declared as an extension method ktlint thinks its unused --- .../shyiko/ktlint/ruleset/standard/NoUnusedImportsRule.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ktlint-ruleset-standard/src/main/kotlin/com/github/shyiko/ktlint/ruleset/standard/NoUnusedImportsRule.kt b/ktlint-ruleset-standard/src/main/kotlin/com/github/shyiko/ktlint/ruleset/standard/NoUnusedImportsRule.kt index 063177d306..747c63d49a 100644 --- a/ktlint-ruleset-standard/src/main/kotlin/com/github/shyiko/ktlint/ruleset/standard/NoUnusedImportsRule.kt +++ b/ktlint-ruleset-standard/src/main/kotlin/com/github/shyiko/ktlint/ruleset/standard/NoUnusedImportsRule.kt @@ -32,7 +32,9 @@ class NoUnusedImportsRule : Rule("no-unused-imports") { // comparison "compareTo", // iteration (https://github.com/shyiko/ktlint/issues/40) - "iterator" + "iterator", + // by (https://github.com/shyiko/ktlint/issues/54) + "getValue" ) private val ref = mutableSetOf("*") private var packageName = ""