Skip to content

Commit

Permalink
* feature/ktlint-rule-wrapper(#606)
Browse files Browse the repository at this point in the history
### What's done:
  * Fixed bugs
  • Loading branch information
aktsay6 committed Feb 3, 2021
1 parent 84cf9d4 commit 019ea91
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.cqfn.diktat.ruleset.constants.EmitType
import org.cqfn.diktat.ruleset.utils.log
import org.jetbrains.kotlin.com.intellij.lang.ASTNode

typealias DiktatConfigRule = org.cqfn.diktat.common.config.rules.Rule
private typealias DiktatConfigRule = org.cqfn.diktat.common.config.rules.Rule

abstract class DiktatRule(id: String, val configRules: List<RulesConfig>, val rules: List<DiktatConfigRule>): Rule(id) {
var isFixMode: Boolean = false
Expand All @@ -21,7 +21,7 @@ abstract class DiktatRule(id: String, val configRules: List<RulesConfig>, val ru
else {
try {
logic(node)
} catch (e: Exception) {
} catch (e: Throwable) {
log.error("Internal error has occurred in $id. Please make an issue on this bug at https://github.com/cqfn/diKTat/.\n Error: ${e.message}")
}
}
Expand Down

0 comments on commit 019ea91

Please sign in to comment.