Published source code metrics can be broadly divided into five categories, based on what they measure: size, complexity, coupling, cohesion, and inheritance. We provide a brief description of each category, along with some of the most influential publications on each of these categories of metrics.
These include code maintainability, clarity, testability, portability, robustness, reusability, complexity, safety, security, and more. These code quality metrics can determine how a single piece of code might affect the overall quality of your code.
It is important and best to analyze code when it's written and before the code review. This helps save a lot of time and makes the process of resolving errors cheaper and easier. Code review is one of the top three ways to ensure code quality.
Is there some free tool (preferably command line based) that you can give your root source directory and it will inspect all files and sub-folders and generate a set of nice "statistics"? For example lines of code, number of classes, etc?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With