From fe03b6dd2651520c73c33a0dfffcd96849734cb2 Mon Sep 17 00:00:00 2001 From: "Vitaly V. Pinchuk" Date: Wed, 1 Jun 2022 21:07:44 +0300 Subject: [PATCH] Improve exception message (#4823) * Improve exception message Report detailed location of an error. * Add test case * Split tests * Improve error location message presentation --- .../gitlab/arturbosch/detekt/core/Analyzer.kt | 1 + .../arturbosch/detekt/core/AnalyzerSpec.kt | 54 +++++++++++++++++++ .../configs/config-value-type-correct.yml | 4 ++ 3 files changed, 59 insertions(+) diff --git a/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/Analyzer.kt b/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/Analyzer.kt index ea0641521fb..3d68a3f2f41 100644 --- a/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/Analyzer.kt +++ b/detekt-core/src/main/kotlin/io/gitlab/arturbosch/detekt/core/Analyzer.kt @@ -155,6 +155,7 @@ private fun MutableMap>.mergeSmells(other: Map