I have created custom android Lint check rule it works well when I run it from command line but Android Studio does not take that rule when checking it with "Inspect Code".I have selected all the Lint Rules in Inspection Profile of android studio.
What I did is
- Created JAR with custom lint check rule
- Placed the jar into ~/.android/lint
When I run the lint checking from command line it works as it should. like below output shows it check against the rule.
lint OpenGLLearning
Scanning OpenGLLearning: ...............................
Scanning OpenGLLearning (Phase 2): ....
res/layout/activity_opengl.xml:8: Error: Edit Text ID Must be starting with et [etName]
<EditText
^
Here etName is my Issue ID for custom lint rule which I created. but Android Studio does not list "etName" rule anywhere and not show error when checked against lint with Inspect Code.
when I run
./gradlew check
it does checks against rule.and custom rule also appears when I run lint --list command on terminal but not able to figure out why it not checked by Inspect Code in Android Studio.
I am using build tools 21.0.2 and Target Version 21