See my other comment here.
The minute I know I evaluated on code metrics . I start to game then. It’s not even malicious.
The second minute, it’s malicious and I just spend half a day becoming your best asset. while producing zero work of value and possibly creating tech debt.
Give pointy head bosses (PHBs) insight into who is the most productive. At least that's how my former VP of engineering, the one who measured developer productivety by checking git commit counts, would use it.
Now I know what my AI learning-by-doing project will be: Granulr: take a single diff and generate n commits that do the same thing but inflate line and commit diff counts along with plausible commit messages.
I'm surprised to keep encountering two bad ideas in software which everyone has known are bad ideas for a rather long time:
a) integration by means of a shared database
b) making engineers even suspect they are being evaluated on some source-code metrics