Personal set of rules and analyzers distributed as a NuGet package to share configuration across .NET projects.
Heavily based on
Gérald Barré (@Meziantou)'s
"Sharing coding style and Roslyn analyzers across projects"
post and his
CodingStandard
repository.
This config contains rules changed and fine-tuned to my personal and work needs as well as preferences.
Add the NuGet package to your project, and the configs will be automatically imported.
Important
It is recommended to use Directory.Build.props in your project over per .csproj configuration
Warning
This package bans EF Core's AddAsync and AddRangeAsync by default.
Projects that intentionally rely on async value generators, such as HiLo, can disable only those two bans using:
<Project>
<PropertyGroup>
<KiruyutoDotNetConfigEnableEntityFrameworkCoreAsyncAddBans>false</KiruyutoDotNetConfigEnableEntityFrameworkCoreAsyncAddBans>
</PropertyGroup>
</Project>- Dependencies can be found in Kiruyuto.DotNet.Config.csproj
.globalconfigrule configurations are located infiles/directory.propsfiles are located inbuild/directory. These are split into 'categories' for improved maintainability
See CONTRIBUTING.md for guidelines, rule authoring, and local build/testing instructions.
