Hi all :android-wave: , For `<https://detekt.dev/d...
# detekt
a
Hi all 👋 , For
<https://detekt.dev/docs/rules/potential-bugs#lateinitusage>
, What is the expectation for injected fields in
Activity
,
BroadCastReceiver
, etc?
Copy code
Using lateinit for property initialization can be error-prone and the actual initialization is not guaranteed. Try using constructor injection or delegation to initialize properties.
The suggestions are not applicable in this context.
Tried this and it worked.
Copy code
ignoreAnnotated: [ 'Inject' ]
👍 1