Skip to content

Commit 9827fb3

Browse files
authored
Update DocumentSettings to use correct default for headerDecoration.
1 parent 7071bb0 commit 9827fb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

StyleCop.Analyzers/StyleCop.Analyzers/Settings/ObjectModel/DocumentationSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected internal DocumentationSettings()
116116
{
117117
this.companyName = DefaultCompanyName;
118118
this.copyrightText = DefaultCopyrightText;
119-
this.headerDecoration = null;
119+
this.headerDecoration = string.Empty;
120120
this.variables = ImmutableDictionary<string, string>.Empty;
121121
this.xmlHeader = true;
122122

@@ -267,7 +267,7 @@ protected internal DocumentationSettings(JsonObject documentationSettingsObject,
267267
this.documentPrivateFields = documentPrivateFields.GetValueOrDefault(false);
268268
this.companyName = companyName ?? DefaultCompanyName;
269269
this.copyrightText = copyrightText ?? DefaultCopyrightText;
270-
this.headerDecoration = headerDecoration;
270+
this.headerDecoration = headerDecoration ?? string.Empty;
271271
this.variables = variables?.ToImmutable() ?? ImmutableDictionary<string, string>.Empty;
272272
this.xmlHeader = xmlHeader.GetValueOrDefault(true);
273273
this.fileNamingConvention = fileNamingConvention.GetValueOrDefault(FileNamingConvention.StyleCop);

0 commit comments

Comments
 (0)