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

enforce async method naming #2

Merged
merged 1 commit into from
Jan 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,26 @@ csharp_style_throw_expression = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
# Modifier preferences
csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
#### Naming styles ####

# Naming rules

dotnet_naming_rule.suffix_async_should_be_asyncsuffix.severity = error #suggestion
dotnet_naming_rule.suffix_async_should_be_asyncsuffix.symbols = suffix_async
dotnet_naming_rule.suffix_async_should_be_asyncsuffix.style = asyncsuffix

# Symbol specifications

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

# Naming styles

dotnet_naming_style.asyncsuffix.required_prefix =
dotnet_naming_style.asyncsuffix.required_suffix = Async
dotnet_naming_style.asyncsuffix.word_separator =
dotnet_naming_style.asyncsuffix.capitalization = pascal_case
# Expression-level preferences
csharp_prefer_braces = true:silent
csharp_style_deconstructed_variable_declaration = true:suggestion
Expand Down