A Short guide on how to write custom roslyn analyzer for .NET — What is code analyzer Code analyzers are great tools during development to inspect your code for style, quality, maintainability, design and other issues. they are capable of producing warnings as you are writing your code even before compiling. Writing Custom analyzer C# Roslyn analyzers support many rules which is very helpful but sometime you want to enforce…