Too Long; Didn't Read
Roslyn is an extremely useful platform for C# code analysis. Microsoft does offer a [SqlParser library that is capable of handling most static code analysis on.NET applications come backed by. Microsoft's [Roslyn ](https://www.ms.com/en-us/dotnet/api//msqlserver.management.sql-smo-140.17283.0) Roslyn can be used to analyze the code for either code review automation or rule enforcement.