dimsuz
01/12/2022, 4:47 PMpackage my.project; fun TextField()
rather than fun MyProjectTextField()
to differtiate this from built-in anrdoidx.compose.material.TextField
.
So I'm about to write some rule which detekts usages of com.google.TextField
and suggests replacing it with my.project.TextField
, same for classes. And I thought maybe I missed some existing rule.Brais Gabin
01/12/2022, 4:49 PMForbiddenImport
?Brais Gabin
01/12/2022, 4:50 PMForbiddenImport
with this implemented: https://github.com/detekt/detekt/issues/3501dimsuz
01/12/2022, 4:50 PMdimsuz
01/12/2022, 4:51 PMBrais Gabin
01/12/2022, 5:06 PMdimsuz
01/12/2022, 5:13 PMBrais Gabin
01/12/2022, 5:34 PMdimsuz
01/12/2022, 5:42 PMForbiddenImport:
active: true
imports:
- import: 'org.mockito.*'
reason: 'Use `com.nhaarman.mockitokotlin2` instead'
- import: 'kotlinx.android.synthetic.*'
reason: 'Use ViewBinding instead'
But perhaps this will be not as easy to implement as a global reason (for starters)dimsuz
01/12/2022, 5:43 PMMichael Marshall
01/12/2022, 11:32 PM