hi,
has anyone setup a lint check for hardcoded strings?
the default check only targets Text() composables which is not suitable for me.
tried to create a custom lint rule to catch any hardcoded strings used in my custom composables without luck.
was wondering if that isn't a generic problem that has been solved already
t
Timo Drick
04/24/2025, 7:14 AM
Did you tried this: https://slackhq.github.io/compose-lints/
Not sure if it checks about hardcoded strings but at least a lot of other useful compose things. Unfortunately i think it does not work in multiplatform projects.
c
Christoph Wiesner
04/24/2025, 8:41 AM
yep, already had a look. there's no rule for hardcoded strings