High quality code is easy to change. That means it’s understandable, it’s interoperable and it’s clean. Excellent definition.
So I’ve come to the belief that the only definition of quality in code that makes any sense is our ability to change the code. If it’s easy to change, it’s high quality; if it’s hard to change, it’s not.