Hi , this is a great job for you to make this sample.
I followed the instructions in your article. But no red lines under error code like your screenshots.
I can see the custom rules in the output report of gradle lintDebug , which means the custom rule is adapted correctly.
Hope that you can shed a light on this .
:)