An analyzers package implemented with the .NET Compiler platform (aka Roslyn), available via NuGet.
Currently contains 'Y0001' and 'Y0002', which are replacements to IDE0007 and IDE0008.
For both rules, many developers (including me) don't like the heuristics they use for determining whether the type is apparent. The replacements try to provide a different implementation which adheres to dotnet/runtime coding style.
Feel free to open issues suggesting other rules, or reporting bugs with existing rules.
This rule suggests using implicit type (var
) when the type is apparent.
This rule suggests using explicit type when the type is not apparent.