提交 5e3aeb83 编写于 作者: S Sam Harwell

Reduce the default severity of preferring conditional expressions

Closes #27195
上级 8e22089f
......@@ -177,7 +177,7 @@ public class CodeStyleOptions
internal static readonly PerLanguageOption<CodeStyleOption<bool>> PreferConditionalExpressionOverAssignment = new PerLanguageOption<CodeStyleOption<bool>>(
nameof(CodeStyleOptions),
nameof(PreferConditionalExpressionOverAssignment),
defaultValue: TrueWithSuggestionEnforcement,
defaultValue: TrueWithSilentEnforcement,
storageLocations: new OptionStorageLocation[]{
EditorConfigStorageLocation.ForBoolCodeStyleOption("dotnet_style_prefer_conditional_expression_over_assignment"),
new RoamingProfileStorageLocation("TextEditor.%LANGUAGE%.Specific.PreferConditionalExpressionOverAssignment")});
......@@ -185,7 +185,7 @@ public class CodeStyleOptions
internal static readonly PerLanguageOption<CodeStyleOption<bool>> PreferConditionalExpressionOverReturn = new PerLanguageOption<CodeStyleOption<bool>>(
nameof(CodeStyleOptions),
nameof(PreferConditionalExpressionOverReturn),
defaultValue: TrueWithSuggestionEnforcement,
defaultValue: TrueWithSilentEnforcement,
storageLocations: new OptionStorageLocation[]{
EditorConfigStorageLocation.ForBoolCodeStyleOption("dotnet_style_prefer_conditional_expression_over_return"),
new RoamingProfileStorageLocation("TextEditor.%LANGUAGE%.Specific.PreferConditionalExpressionOverReturn")});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册