Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/DocoptNet/CodeGeneration/SourceGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ static void Generate(CSharpSourceBuilder code,

const string usageConstName = "Usage";

code["#nullable enable"].NewLine
code["// <auto-generated/>"].NewLine
.NewLine
["#nullable enable"].NewLine

.NewLine
.Using("System.Collections")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// <auto-generated/>

#nullable enable

using System.Collections;
Expand Down
5 changes: 5 additions & 0 deletions tests/Integration/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[*.cs]
dotnet_analyzer_diagnostic.category-Style.severity = warning

# IDE0055: Fix formatting
dotnet_diagnostic.IDE0055.severity = suggestion
4 changes: 4 additions & 0 deletions tests/Integration/DocoptNet.Tests.Integration.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<IsPackable>false</IsPackable>
<RestoreAdditionalProjectSources>$(MSBuildThisFileDirectory)..\..\dist</RestoreAdditionalProjectSources>
<RestorePackagesPath>$(MSBuildThisFileDirectory).nuget</RestorePackagesPath>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<!-- Workaround for IDE0005 (Remove unnecessary usings/imports); see https://github.com/dotnet/roslyn/issues/41640 -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<NoWarn>$(NoWarn);CS1591</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading