io.gitlab.arturbosch.detekt.rules.AllowedExceptionNamePattern.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of detekt-psi-utils Show documentation
Show all versions of detekt-psi-utils Show documentation
Static code analysis for Kotlin
package io.gitlab.arturbosch.detekt.rules
import org.jetbrains.kotlin.psi.KtCatchClause
const val ALLOWED_EXCEPTION_NAME = "_|(ignore|expected).*"
fun KtCatchClause.isAllowedExceptionName(regex: Regex) =
catchParameter?.identifierName()?.matches(regex) == true
© 2015 - 2025 Weber Informatics LLC | Privacy Policy