Skip to content

Commit

Permalink
feature/more-prefixes-boolean-methods(#417)
Browse files Browse the repository at this point in the history
### What's done:
 * Fixed bugs
  • Loading branch information
aktsay6 committed Dec 31, 2020
1 parent 8fe878f commit f5be6c6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ import com.pinterest.ktlint.core.ast.ElementType.TYPE_REFERENCE
import com.pinterest.ktlint.core.ast.ElementType.VALUE_PARAMETER_LIST
import com.pinterest.ktlint.core.ast.parent
import com.pinterest.ktlint.core.ast.prevCodeSibling
import org.cqfn.diktat.ruleset.constants.Warnings
import org.jetbrains.kotlin.builtins.PrimitiveType
import org.jetbrains.kotlin.com.intellij.lang.ASTNode
import org.jetbrains.kotlin.com.intellij.psi.impl.source.tree.LeafPsiElement
Expand Down Expand Up @@ -91,11 +90,11 @@ class IdentifierNaming(private val configRules: List<RulesConfig>) : Rule("ident
}
val configuration by lazy {
BooleanFunctionsConfiguration(
this.configRules.getRuleConfig(FUNCTION_BOOLEAN_PREFIX)?.configuration ?: emptyMap()
this.configRules.getRuleConfig(FUNCTION_BOOLEAN_PREFIX)?.configuration ?: emptyMap()
)
}
private lateinit var emitWarn: EmitType
private var isFixMode: Boolean = false
private lateinit var emitWarn: EmitType

override fun visit(
node: ASTNode,
Expand Down

0 comments on commit f5be6c6

Please sign in to comment.