Skip to content

Commit

Permalink
diktatFix
Browse files Browse the repository at this point in the history
  • Loading branch information
nulls committed Sep 20, 2023
1 parent bd0dc32 commit 9474251
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ abstract class DiktatRule(
log.error(
internalError

Check warning on line 69 in diktat-rules/src/main/kotlin/com/saveourtool/diktat/ruleset/rules/DiktatRule.kt

View check run for this annotation

Codecov / codecov/patch

diktat-rules/src/main/kotlin/com/saveourtool/diktat/ruleset/rules/DiktatRule.kt#L69

Added line #L69 was not covered by tests
) {
"""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()

Check warning on line 74 in diktat-rules/src/main/kotlin/com/saveourtool/diktat/ruleset/rules/DiktatRule.kt

View check run for this annotation

Codecov / codecov/patch

diktat-rules/src/main/kotlin/com/saveourtool/diktat/ruleset/rules/DiktatRule.kt#L74

Added line #L74 was not covered by tests
}
// 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:
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 9474251

Please sign in to comment.