Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name async methods with the async suffix #11

Open
Felix-CodingClimber opened this issue Mar 23, 2024 · 0 comments
Open

Name async methods with the async suffix #11

Felix-CodingClimber opened this issue Mar 23, 2024 · 0 comments

Comments

@Felix-CodingClimber
Copy link
Owner

Felix-CodingClimber commented Mar 23, 2024

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
@Felix-CodingClimber Felix-CodingClimber changed the title Name async methods with the async postfix Name async methods with the async suffix Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant