The evolution of code analysis in Visual Studio is continuous. This means that Visual Studio 2019 certainly has more tools for this purpose than Visual Studio 2017, and so on.
One of the issues that you (as a software architect) need to deal with is the coding style of the team. This certainly results in a better understanding of the code. For instance, if you go to Visual Studio Menu | Tools | Options, you will find ways to set up how to deal with different code style patterns, and it even indicates a bad coding style as an error in the Code Style option, as follows:
For instance, the preceding screenshot suggests that Avoid unused parameters were considered an error. After this change, the result of the compilation of the same code presented at the beginning of the chapter was different, as you...