The following code returns this warning in Kotlin project using Android studio 3.0 on Mac.
private val REQUEST_CODE = 11
private val TAG = "RecentCallsActivity"
Private property name 'REQUEST_CODE' doesn't match regex '_?[a-z][A-Za-z\d]*' less... (⌘F1)
Reports private property names that do not follow the recommended naming conventions.
What is the recommended naming convention ?
I found , a similar question, that answers how to disable the same.
Update: In some examples , I have seen this usage which removes the warning.
class KotlinExampleActivity : Activity() {
companion object {
val TAG: String = KotlinExampleActivity::class.java.simpleName
}
