Hi all :android-wave: , I am working on adding som...
# android
a
Hi all 👋 , I am working on adding some custom lint checks in my project. I am referring to this new video -

https://www.youtube.com/watch?v=q5q-y3eZTSAâ–¾

by Tor Norbye. I am stuck in checking top-level declaration. How to distinguish between a user-defined class and an implicit class? More details in thread. 🧵
K 1
In Kotlin, creating a file with top level variables or functions also have an implicit class. Example,
Test.kt
Copy code
var x = 1
Will create a
TextKt
How to differentiate this and user defined class?
Custom lint rule: Enforce adding a prefix
My
(for example) to all top-level classes, variables and functions.
c
If you don't get an answer here... you could try https://groups.google.com/g/lint-dev