Is it possible to exclude inner classes in the exc...
# detekt
r
Is it possible to exclude inner classes in the exclude rules? E.g. I have
Copy code
UndocumentedPublicFunction:
    active: true
    excludes: [
      '**/src/**/*Component.kt',
    ]
Which excludes all classes with the
Component
suffix. Now I’d like to exclude all inner classes with this suffix, too. I tried these two without success:
Copy code
'**/src/**/*$Component.kt',
      '**/src/**/*.Component.kt',
Any suggestion?
b
That's strange. The exclude should exclude the file, it doesn't exclude classes. If they are inner classes they are inside the same file so that should work out of the box. Maybe I'm losing something here.
r
The file it’s complaining about is using this pattern
**/src/**/*SomeOtherFile.kt
. The
Component
interface I want to exclude is an inner class.