Felix-CodingClimber / DotNetElements

Opinionated framework to build .NET applications fast while focusing more on the final product and less on writing low level code.
MIT License
2 stars 1 forks source link

Name async methods with the async suffix #11

Open Felix-CodingClimber opened 7 months ago

Felix-CodingClimber commented 7 months ago

Use https://github.com/microsoft/vs-threading?tab=readme-ov-file Microsoft.VisualStudio.Threading.Analyzers or .editorconfig with

# Async methods should have "Async" suffix
dotnet_naming_rule.async_methods_end_in_async.symbols = any_async_methods
dotnet_naming_rule.async_methods_end_in_async.style = end_in_async
dotnet_naming_rule.async_methods_end_in_async.severity = warning

dotnet_naming_symbols.any_async_methods.applicable_kinds = method
dotnet_naming_symbols.any_async_methods.applicable_accessibilities = *
dotnet_naming_symbols.any_async_methods.required_modifiers = async

dotnet_naming_style.end_in_async.required_suffix = Async
dotnet_naming_style.end_in_async.capitalization = pascal_case