https://kotlinlang.org logo
#detekt
Title
# detekt
m

mkrussel

11/09/2023, 8:03 PM
I created my first compose multiplatform project and detekt seems to be ignoring my suppression for functions annotated with Composable in my config file.
Copy code
naming:
  active: true
  FunctionNaming:
    active: true
    ignoreAnnotated:
      - "Composable"
This works with my Android compose only modules. If I deactivate the rule, then the warnings are not found, so I know that it is reading the config file. This is only reported for the task that have type resolution enabled and other annotations will correctly suppress the warning.
e

ephemient

11/09/2023, 8:17 PM
tried fully-qualified
androidx.compose.runtime.Composable
?
I think it's supposed to work either way but just to check
m

mkrussel

11/09/2023, 8:19 PM
It still reports warnings when fully qualified