googlesamples / googlesamples/android-custom-lint-rules

How can I check that UVariable is nullable type?

Open
#86 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1k
Forks
176
PR merge metrics
No merged PRs in 30d

Description

I didnt find an answer for the question in the doc (https://googlesamples.github.io/android-custom-lint-rules/)
I want to check that variable is nullable type. For example:
an fun for `UVariable`:
```
fun isNullable(uVariable: UVariable): Boolean {
}
```
for `var value: Strings` should return false
for `var value: Strings?` should return true

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.