https://kotlinlang.org logo
#android
Title
# android
n

nebojsa.vuksic

05/08/2017, 2:29 PM
Hi everyone, I get Lint
"IllegalIdentifier"
warning when I use spaces in function naming. Is there any way to fix this without suppressing this warning ? Thanks in advance.
k

kirillrakhman

05/08/2017, 3:00 PM
nebojsa.vuksic: I think the warning is there for a reason. on android, functions can't have spaces in names
n

nebojsa.vuksic

05/08/2017, 3:03 PM
@kirillrakhman I know that 🙂 But Kotlin allows this naming convention with usage of escape identifier. This is very suitable for testing 🙂 I just wanted to know is there any custom Lint rule, so that this warning could be avoided ?
l

lovis

05/08/2017, 3:11 PM
you can go to
Preferences > Editor > Inspections > "Illegal Android Identifier"
and un-error it for Test scope
👍 1
n

nebojsa.vuksic

05/08/2017, 4:28 PM
That helped. Thanks guys 🙂
6 Views