After updating from Detekt 1.22.0-RC1 to 1.22.0-RC2 the ignoreAnnotated configurations are not used.
Expected Behavior
Specific rules for code annotated with an annotation defined in ignoreAnnotated should be ignored.
Observed Behavior
Code gets reported despite the ignoreAnnotated configuration.
Steps to Reproduce
The config file.
Build report with 1.22.0-RC1.
Run ./gradlew assembleDebug detektDebug
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :app
WARNING:The option setting 'android.experimental.enableNewResourceShrinker.preciseShrinking=true' is experimental.
The current default is 'false'.
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:generateDebugBuildConfig
> Task :app:checkDebugAarMetadata
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources UP-TO-DATE
> Task :app:packageDebugResources
> Task :app:mergeDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :app:parseDebugLocalResources
> Task :app:processDebugMainManifest
> Task :app:processDebugManifest
> Task :app:processDebugManifestForPackage
> Task :app:javaPreCompileDebug
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets
> Task :app:compressDebugAssets
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:processDebugResources
> Task :app:checkDebugDuplicateClasses
> Task :app:desugarDebugFileDependencies
> Task :app:kaptGenerateStubsDebugKotlin
> Task :app:mergeExtDexDebug
> Task :app:mergeLibDexDebug
> Task :app:mergeDebugJniLibFolders
> Task :app:kaptDebugKotlin
Values of variant API AnnotationProcessorOptions.arguments are queried and may return non final values, this is unsupported
Values of variant API AnnotationProcessorOptions.arguments are queried and may return non final values, this is unsupported
Values of variant API AnnotationProcessorOptions.arguments are queried and may return non final values, this is unsupported
> Task :app:mergeDebugNativeLibs NO-SOURCE
> Task :app:stripDebugDebugSymbols NO-SOURCE
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :app:compileDebugKotlin
> Task :app:compileDebugJavaWithJavac
> Task :app:hiltAggregateDepsDebug
> Task :app:detektDebug
> Task :app:hiltJavaCompileDebug
> Task :app:transformDebugClassesWithAsm
> Task :app:mergeDebugJavaResource
> Task :app:dexBuilderDebug
> Task :app:mergeProjectDexDebug
> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:assembleDebug
BUILD SUCCESSFUL in 2m 21s
36 actionable tasks: 36 executed
Build report with 1.22.0-RC2.
Run ./gradlew assembleDebug detektDebug
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :app
WARNING:The option setting 'android.experimental.enableNewResourceShrinker.preciseShrinking=true' is experimental.
The current default is 'false'.
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:generateDebugBuildConfig
> Task :app:checkDebugAarMetadata
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources UP-TO-DATE
> Task :app:packageDebugResources
> Task :app:mergeDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :app:parseDebugLocalResources
> Task :app:processDebugMainManifest
> Task :app:processDebugManifest
> Task :app:processDebugManifestForPackage
> Task :app:javaPreCompileDebug
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets
> Task :app:compressDebugAssets
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:processDebugResources
> Task :app:checkDebugDuplicateClasses
> Task :app:desugarDebugFileDependencies
> Task :app:kaptGenerateStubsDebugKotlin
> Task :app:mergeExtDexDebug
> Task :app:mergeLibDexDebug
> Task :app:mergeDebugJniLibFolders
> Task :app:kaptDebugKotlin
Values of variant API AnnotationProcessorOptions.arguments are queried and may return non final values, this is unsupported
Values of variant API AnnotationProcessorOptions.arguments are queried and may return non final values, this is unsupported
Values of variant API AnnotationProcessorOptions.arguments are queried and may return non final values, this is unsupported
> Task :app:mergeDebugNativeLibs NO-SOURCE
> Task :app:stripDebugDebugSymbols NO-SOURCE
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :app:compileDebugKotlin
> Task :app:compileDebugJavaWithJavac
> Task :app:hiltAggregateDepsDebug
> Task :app:detektDebug
The BindingContext was created with 159 issues. Run detekt CLI with --debug or set `detekt { debug = true }` in Gradle to see the error messages.
/home/runner/work/Sample-PunkApp/Sample-PunkApp/app/src/main/kotlin/com/g00fy2/punkapp/ui/beers/Beers.kt:22:5: Function names should match the pattern: [a-z][a-zA-Z0-9]* [FunctionNaming]
/home/runner/work/Sample-PunkApp/Sample-PunkApp/app/src/main/kotlin/com/g00fy2/punkapp/ui/beers/Beers.kt:34:5: Function names should match the pattern: [a-z][a-zA-Z0-9]* [FunctionNaming]
/home/runner/work/Sample-PunkApp/Sample-PunkApp/app/src/main/kotlin/com/g00fy2/punkapp/ui/beers/BeerCard.kt:25:5: Function names should match the pattern: [a-z][a-zA-Z0-9]* [FunctionNaming]
/home/runner/work/Sample-PunkApp/Sample-PunkApp/app/src/main/kotlin/com/g00fy2/punkapp/ui/beers/BeerCard.kt:56:13: Function names should match the pattern: [a-z][a-zA-Z0-9]* [FunctionNaming]
/home/runner/work/Sample-PunkApp/Sample-PunkApp/app/src/main/kotlin/com/g00fy2/punkapp/ui/beers/BeerCard.kt:[7](https://github.com/G00fY2/Sample-PunkApp/actions/runs/3263770673/jobs/5363350392#step:5:8)3:13: Function names should match the pattern: [a-z][a-zA-Z0-9]* [FunctionNaming]
/home/runner/work/Sample-PunkApp/Sample-PunkApp/app/src/main/kotlin/com/g00fy2/punkapp/ui/main/PunkMain.kt:11:5: Function names should match the pattern: [a-z][a-zA-Z0-9]* [FunctionNaming]
/home/runner/work/Sample-PunkApp/Sample-PunkApp/app/src/main/kotlin/com/g00fy2/punkapp/ui/theme/PunkAppTheme.kt:31:5: Function names should match the pattern: [a-z][a-zA-Z0-9]* [FunctionNaming]
/home/runner/work/Sample-PunkApp/Sample-PunkApp/app/src/main/kotlin/com/g00fy2/punkapp/ui/beers/BeerCard.kt:56:13: Private function `MessageCardPreview` is unused. [UnusedPrivateMember]
/home/runner/work/Sample-PunkApp/Sample-PunkApp/app/src/main/kotlin/com/g00fy2/punkapp/ui/beers/BeerCard.kt:73:13: Private function `MessageCardDarkPreview` is unused. [UnusedPrivateMember]
> Task :app:hiltJavaCompileDebug
> Task :app:transformDebugClassesWithAsm
> Task :app:mergeDebugJavaResource
> Task :app:dexBuilderDebug
> Task :app:mergeProjectDexDebug
> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:assembleDebug
BUILD SUCCESSFUL in 3m 8s
36 actionable tasks: 36 executed
Your Environment
See the sample project. Also occurred in other (closed source) project with stable release versions (AGP 7.3.1, Compose 1.2.1).
After updating from Detekt 1.22.0-RC1 to 1.22.0-RC2 the
ignoreAnnotatedconfigurations are not used.Expected Behavior
Specific rules for code annotated with an annotation defined in
ignoreAnnotatedshould be ignored.Observed Behavior
Code gets reported despite the
ignoreAnnotatedconfiguration.Steps to Reproduce
The config file.
Build report with 1.22.0-RC1.
Build report with 1.22.0-RC2.
Your Environment
See the sample project. Also occurred in other (closed source) project with stable release versions (AGP 7.3.1, Compose 1.2.1).