Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #48.
dotnet_style_parentheses_in_other_operators
We got some better documentation from .NET about this setting which makes it clear that we should change our configuration from a
suggestion
of usingalways_for_clarity
to awarning
to usenever_if_unnecessary
:The second example seems more desirable.
dotnet_style_operator_placement_when_wrapping
Realized that this setting was missing the error level, so set it to
warning
.csharp_style_prefer_null_check_over_type_check
Enabled this setting to prefer
is not null
overis object
. Set to warning level. See dotnet/roslyn#55005.dotnet_style_namespace_match_folder
Enabled this setting so that namespaces must match folders. Set at
suggestion
level as sometimes devs want to also use logical folders to group content instead of representing hard folders. This is particularly useful when a namespace contains a large amount of content. See dotnet/roslyn#49990.I've also polled the community for their thoughts on the defaults here https://twitter.com/RehanSaeedUK/status/1424724592082493440.