Code Quality Process needs to be established at the start of development cycle so that all stakeholders (developers, PM, architects, etc.) will be aligned to same objective of delivering quality code.
Also, to track Code Quality throughput development cycle, a tool (excel based) like this below can be used by team pro-actively: