The problem with metrics on coders who are just doing run-of-the-mill tasks is that even if you do find a good metric... when they want to push beyond run-of-the-mill and start innovating, they now look bad. You ultimately end up incentivizing coders to game the system, not to build quality code.