-
Hi! I'd like to create a custom rule to check that every activity layout xml file has a property defined in its parent container. To be able to do that, first I need Detekt to be run over src/main/res/layout/*.xml files. I tried using setSource in my detekt.gradle file but it didn't work. Thanks very much, Pabloku |
Beta Was this translation helpful? Give feedback.
Answered by
cortinico
Jun 14, 2022
Replies: 2 comments 2 replies
-
You can't do this with Detekt. You'll have to use Android Lint as you need to access an Android Resource |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
cortinico
-
is it the same for gradle file like properties or settings ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't do this with Detekt. You'll have to use Android Lint as you need to access an Android Resource