Skip to content

Commit 44b724a

Browse files
committed
Enable analyzer FormatEmptyBlock by default and change default severity to Hidden (RCS1023).
1 parent b3c91a9 commit 44b724a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Analyzers/Analyzers.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ protected internal class Foo
465465
<Title>Format empty block.</Title>
466466
<MessageFormat>Format empty block.</MessageFormat>
467467
<Category>Formatting</Category>
468-
<DefaultSeverity>Info</DefaultSeverity>
469-
<IsEnabledByDefault>false</IsEnabledByDefault>
468+
<DefaultSeverity>Hidden</DefaultSeverity>
469+
<IsEnabledByDefault>true</IsEnabledByDefault>
470470
<SupportsFadeOut>false</SupportsFadeOut>
471471
<SupportsFadeOutAnalyzer>false</SupportsFadeOutAnalyzer>
472472
<Samples>

src/Analyzers/CSharp/DiagnosticDescriptors.Generated.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ public static partial class DiagnosticDescriptors
269269
title: "Format empty block.",
270270
messageFormat: "Format empty block.",
271271
category: DiagnosticCategories.Formatting,
272-
defaultSeverity: DiagnosticSeverity.Info,
273-
isEnabledByDefault: false,
272+
defaultSeverity: DiagnosticSeverity.Hidden,
273+
isEnabledByDefault: true,
274274
description: null,
275275
helpLinkUri: $"{HelpLinkUriRoot}{DiagnosticIdentifiers.FormatEmptyBlock}",
276276
customTags: Array.Empty<string>());

0 commit comments

Comments
 (0)