You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The full path for the detekt.NoUnusedImports check is not reported - the file is only identified as MainActivity.kt. The path for detekt.UnusedImports is included as expected.
Your Environment
Version of Detekt used: 1.12.0 (I intended to also check 1.13.0 but it seems that this one has not been published yet)
The text was updated successfully, but these errors were encountered:
Can confirm this is happening to me too.
Considering all other checks have correct path (only the formatting ones are broken), I don't think it is a expected behaviour.
As of
1.12.0
, the formatting checks which wrap KtLint do not include the full path of the file in the reports.Context
In order to be able to process results from Detekt reports, the full path of each file is needed to unambiguously identify the originating file.
Expected Behavior
With this example configuration (containing one of each a Detekt check and a KtLint check for demonstration purposes):
An unused import in a sample project outputs the following Checkstyle report when ran with Detekt
1.11.0
and earlier:The full path is recorded for both checks.
Observed Behavior
As of Detekt
1.12.0
, the following Checkstyle report is generated:The full path for the
detekt.NoUnusedImports
check is not reported - the file is only identified asMainActivity.kt
. The path fordetekt.UnusedImports
is included as expected.Your Environment
1.13.0
but it seems that this one has not been published yet)The text was updated successfully, but these errors were encountered: