diff --git a/StyleCop.Analyzers/StyleCop.Analyzers/Settings/ObjectModel/DocumentationSettings.cs b/StyleCop.Analyzers/StyleCop.Analyzers/Settings/ObjectModel/DocumentationSettings.cs index c0629daa0..584187cb3 100644 --- a/StyleCop.Analyzers/StyleCop.Analyzers/Settings/ObjectModel/DocumentationSettings.cs +++ b/StyleCop.Analyzers/StyleCop.Analyzers/Settings/ObjectModel/DocumentationSettings.cs @@ -116,7 +116,7 @@ protected internal DocumentationSettings() { this.companyName = DefaultCompanyName; this.copyrightText = DefaultCopyrightText; - this.headerDecoration = null; + this.headerDecoration = string.Empty; this.variables = ImmutableDictionary.Empty; this.xmlHeader = true; @@ -267,7 +267,7 @@ protected internal DocumentationSettings(JsonObject documentationSettingsObject, this.documentPrivateFields = documentPrivateFields.GetValueOrDefault(false); this.companyName = companyName ?? DefaultCompanyName; this.copyrightText = copyrightText ?? DefaultCopyrightText; - this.headerDecoration = headerDecoration; + this.headerDecoration = headerDecoration ?? string.Empty; this.variables = variables?.ToImmutable() ?? ImmutableDictionary.Empty; this.xmlHeader = xmlHeader.GetValueOrDefault(true); this.fileNamingConvention = fileNamingConvention.GetValueOrDefault(FileNamingConvention.StyleCop); diff --git a/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json b/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json index 8ae727cc3..99edb52a3 100644 --- a/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json +++ b/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json @@ -263,7 +263,7 @@ "headerDecoration": { "type": "string", "description": "The text used as decoration for the copyright header comment.", - "default": null + "default": "" }, "fileNamingConvention": { "type": "string",