Take a look at the lint issue documentation:
If you pick a particular issue, such as
you can see there are links directly from that documentation to the corresponding implementation, as well as the unit tests for that check.
(Most of the lint checks will be in the same package, but the documentation also links to issues for androidx which lives in a separate place.)
-- Tor