Summary
In this chapter, you saw how code metrics provide several measurements of code quality, and how easy it is to generate them. Code metrics include the number of lines – including blank lines – versus the number of executable lines of code, the cyclomatic complexity, the level of cohesion and coupling, and how maintainable your code is. The refactoring color codes are green for “good”, yellow for “ideally needs refactoring”, and red for “definitely needs refactoring”.
You then saw how easy it is to provide a static code analysis of projects and view the results. Viewing and modifying rulesets that govern what gets analyzed and what doesn’t get analyzed was also covered. Then, you experienced quick actions and learned how to perform bug fixes, add using
statements, and refactor code with a single command.
Then, we used the JetBrains dotTrace profiler to measure our application’s performance, track down...