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 Aug 26, 2023
1 parent 2d09946 commit 05187b1
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 bool Consume(ISyntaxInfo syntaxInfo)

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 bool Consume(ISyntaxInfo syntaxInfo)
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 05187b1

Please sign in to comment.