Best Practices Analyzer and Quick Fixes for the library
This Roslyn Analyzer helps you to use the library in the right way.
For example when you use a non generic engine the analyzer suggest you to use the generic version:
Quick Fixes
- Recommends to use the generic version when you use an engine with a typeof() in the constructor
- Suggest to use [FieldHidden] instead of [FieldIgnored] or [FieldNotInFile]
- Use FileHelpers.Dynamic instead of FileHelpers.RunTime namespace
-
Use IComparable
instead of the obsolete IComparableRecord - Check that record class contains valid record attributes
- Check that record class contains any field
- Convert engine.ReadFile in async version with foreach
Global Install
Install the extension and it will be available for all projects:
Download from Visual Studio GalleryNuGet Install
Use the NuGet Package Version and it will work only in installed projects
FileHelpers.Analyzer in NuGet