slackhq / slack-lints

A collection of custom Android/Kotlin lint checks we use in our Android and Kotlin code bases at Slack.
Apache License 2.0
222 stars 11 forks source link

Add mock report option to MockDetector #150

Closed ZacSweers closed 9 months ago

ZacSweers commented 9 months ago

This adds a new on-demand feature to write a report file of incorrectly mocked types. The idea with this is that we can write a tool that scrapes this output file separately after a lint run and aggregate the most commonly mocked types, and use that as a heuristic of what should be prioritized in writing fakes.