Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 966 Bytes

README.md

File metadata and controls

19 lines (10 loc) · 966 Bytes

YAnalyzers

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.

Rules

Y0001: Use implicit type

This rule suggests using implicit type (var) when the type is apparent.

Y0002: Use implicit type

This rule suggests using explicit type when the type is not apparent.