I'm developing Android app with kotlin. I wonder how can I run the AndroidStudio code inspection in the terminal. I know android lint. But many of the inspection are not check by running ./gradlew lint. For example, if I wrote
var name = "chris"
Log.d("mytag", name)
AndroidStudio code inspection would remind my that name is never changed and could be change to val name = "chris". But when I run ./gradlew lint, this improvement option is not in the result report.
How can I run the inspection in the terminal? That way, I can make a gradle task to check the code and gradually introduce some good practice to my team.