Skip to content

Commit

Permalink
Suppress warning about missing XML comment in auto-generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
VaclavSir committed Sep 6, 2023
1 parent 1bee079 commit 1e0ec77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public void Generate(

sourceText.AppendLine("// <auto-generated/>");
sourceText.AppendLine("#nullable enable");
sourceText.AppendLine("#pragma warning disable CS1591");
sourceText.AppendLine("using System;");
sourceText.AppendLine("using Microsoft.Extensions.DependencyInjection;");
sourceText.AppendLine("using HotChocolate.Execution.Configuration;");
Expand Down Expand Up @@ -647,4 +648,4 @@ private static string CreateModuleName(string? assemblyName)
=> assemblyName is null
? "AssemblyTypes"
: assemblyName.Split('.').Last() + "Types";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void Generate(
var sourceText = StringBuilderPool.Get();
sourceText.AppendLine("// <auto-generated/>");
sourceText.AppendLine("#nullable enable");
sourceText.AppendLine("#pragma warning disable CS1591");
sourceText.AppendLine("using System;");
sourceText.AppendLine("using HotChocolate.Execution.Configuration;");

Expand Down

0 comments on commit 1e0ec77

Please sign in to comment.