I have been asked to ask developers in my org to report on code quality.
My problem is how does one measure quality? Yes we can do Unit testing and check for errors and maybe even requirements coverage, but how do we check that the code written is actually fit for purpose or correct.
From a black box perspective, you test the application. If the tests are thorough and the application passes them all, you could infer that the code is fit for purpose.
From a white box perspective, you could carry out some static analysis of the code, looking at things such as cyclomatic complexity, adherence to prescribed standards of style, naming conventions, etc..., and look for potential bugs or security issues using tools such as lint. You could also carry out some dynamic white box analysis looking for memory leaks, buffer overruns, dead locks, etc... These are all basically just more types of testing that focus on non-functional aspects of the program.
To measure Quality you must first come to an agreement on the definition of Quality. Good luck on that one!
I would suggest that rather than Quality, you attempt to measure Coding Efficiency possibly based on LOC vs. Defects or reusability of the code.