Since my last blog about the new Code Analysis for Al development, I have been wondering what rules Microsoft actually applies in which Code Analyzer. My good friend an colleague is all into decompiling and reflecting – and he helped my find my way to the object model that Microsoft creates for the Source Code Analysis – to get to the “Diagnostic Descriptors”. We did that in PowerShell – of course (I might share the code when it’s ready to – it will end up on my PowerShell Repository eventually).
Below the result. As you know, there are 3 “cops” (Code Analyzers). Let’s see the result per Code Analyzer