Skip to content

Commit 4a7f79d

Browse files
committed
Enable SA1305 (FieldNamesMustNotUseHungarianNotation) and fix all violations
1 parent fbabf70 commit 4a7f79d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers.ruleset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
<Rule Id="SA1302" Action="Error" />
9191
<Rule Id="SA1303" Action="Error" />
9292
<Rule Id="SA1304" Action="Error" />
93+
<Rule Id="SA1305" Action="Warning" />
9394
<Rule Id="SA1309" Action="Error" />
9495
<Rule Id="SA1311" Action="Error" />
9596
<Rule Id="SA1400" Action="Error" />

StyleCop.Analyzers/StyleCop.Analyzers/Helpers/XmlCommentHelper.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ internal static bool IsConsideredEmpty(XmlNodeSyntax xmlSyntax)
9595
return true;
9696
}
9797

98-
var cDataElement = xmlSyntax as XmlCDataSectionSyntax;
99-
if (cDataElement != null)
98+
var cdataElement = xmlSyntax as XmlCDataSectionSyntax;
99+
if (cdataElement != null)
100100
{
101-
foreach (SyntaxToken token in cDataElement.TextTokens)
101+
foreach (SyntaxToken token in cdataElement.TextTokens)
102102
{
103103
if (!string.IsNullOrWhiteSpace(token.ToString()))
104104
{

0 commit comments

Comments
 (0)