Skip to content

styling: don't show prefer var rule as suggestion #1260

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

Merged
merged 1 commit into from
Mar 28, 2019
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/accumulate/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/acronym/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/affine-cipher/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/all-your-base/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/allergies/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/alphametics/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/anagram/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/armstrong-numbers/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/atbash-cipher/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/bank-account/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/beer-song/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/binary-search-tree/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/binary-search/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/binary/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/bob/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/book-store/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/bowling/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/bracket-push/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/change/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/circular-buffer/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/clock/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/collatz-conjecture/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/complex-numbers/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/connect/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/crypto-square/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/custom-set/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/darts/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/diamond/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
6 changes: 3 additions & 3 deletions exercises/difference-of-squares/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
###############################

# var preferences
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
csharp_style_var_elsewhere = true:suggestion
csharp_style_var_for_built_in_types = true:none
csharp_style_var_when_type_is_apparent = true:none
csharp_style_var_elsewhere = true:none

# Expression-bodied members
csharp_style_expression_bodied_methods = true:suggestion
Expand Down
Loading