diff --git a/diktat-rules/src/main/kotlin/com/saveourtool/diktat/ruleset/rules/DiktatRule.kt b/diktat-rules/src/main/kotlin/com/saveourtool/diktat/ruleset/rules/DiktatRule.kt index 3d9860f79e..c71470bcc0 100644 --- a/diktat-rules/src/main/kotlin/com/saveourtool/diktat/ruleset/rules/DiktatRule.kt +++ b/diktat-rules/src/main/kotlin/com/saveourtool/diktat/ruleset/rules/DiktatRule.kt @@ -68,10 +68,10 @@ abstract class DiktatRule( log.error( internalError ) { - """Internal error has occurred in rule [$id]. Please make an issue on this bug at https://github.com/saveourtool/diKTat/. - As a workaround you can disable these inspections in yml config: <$inspections>. - Root cause of the problem is in [${node.getFilePathSafely()}] file. - """.trimIndent() + """Internal error has occurred in rule [$id]. Please make an issue on this bug at https://github.com/saveourtool/diKTat/. + As a workaround you can disable these inspections in yml config: <$inspections>. + Root cause of the problem is in [${node.getFilePathSafely()}] file. + """.trimIndent() } // we are very sorry for throwing common Error here, but unfortunately we are not able to throw // any existing Exception, as they will be caught in ktlint framework and the logging will be confusing: diff --git a/diktat-test-framework/src/main/kotlin/com/saveourtool/diktat/test/framework/processing/FileComparator.kt b/diktat-test-framework/src/main/kotlin/com/saveourtool/diktat/test/framework/processing/FileComparator.kt index e5516774ac..b44484d0eb 100644 --- a/diktat-test-framework/src/main/kotlin/com/saveourtool/diktat/test/framework/processing/FileComparator.kt +++ b/diktat-test-framework/src/main/kotlin/com/saveourtool/diktat/test/framework/processing/FileComparator.kt @@ -1,10 +1,11 @@ package com.saveourtool.diktat.test.framework.processing import com.saveourtool.diktat.test.framework.util.readTextOrNull + +import io.github.oshai.kotlinlogging.KotlinLogging import io.github.petertrr.diffutils.diff import io.github.petertrr.diffutils.patch.ChangeDelta import io.github.petertrr.diffutils.text.DiffRowGenerator -import io.github.oshai.kotlinlogging.KotlinLogging import java.io.File