I once worked at a place where they announced they were going to start evaluating performance reviews based on number of bugs closed. But the very devs who were responsible for closing the bug reports were also responsible for finding the bugs and opening the bug reports.
That policy didn't last very long.