Skip to content

Commit 0cac607

Browse files
committed
Nullable annotations
1 parent a0e1c57 commit 0cac607

12 files changed

+26
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[*.cs]
2+
3+
# IDE0240: Remove redundant nullable directive
4+
# The directive needs to be included since all sources in a source package are considered generated code
5+
# when referenced from a project via package reference.
6+
dotnet_diagnostic.IDE0240.severity = none

src/BuiltInTools/HotReloadAgent.Host/Microsoft.DotNet.HotReload.Agent.Host.Package.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,4 @@
3838
<ItemGroup>
3939
<Compile Include="..\dotnet-watch\Utilities\ProcessUtilities.cs" />
4040
</ItemGroup>
41-
4241
</Project>

src/BuiltInTools/HotReloadAgent.Host/PipeListener.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable enable
5+
46
using System.Diagnostics;
57
using System.IO.Pipes;
68
using System.Reflection;

src/BuiltInTools/HotReloadAgent.Host/StartupHook.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable enable
5+
46
using System.Diagnostics;
57
using System.IO.Pipes;
68
using System.Reflection;

src/BuiltInTools/Web.Middleware/ApplicationPaths.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable enable
5+
46
using Microsoft.AspNetCore.Http;
57

68
namespace Microsoft.AspNetCore.Watch.BrowserRefresh

src/BuiltInTools/Web.Middleware/BlazorWasmHotReloadMiddleware.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable enable
5+
46
using System.Text.Json;
57
using Microsoft.AspNetCore.Http;
68
using Microsoft.Extensions.Logging;

src/BuiltInTools/Web.Middleware/BrowserRefreshMiddleware.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable enable
5+
46
using Microsoft.AspNetCore.Http;
57
using Microsoft.AspNetCore.Http.Features;
68
using Microsoft.Extensions.Logging;

src/BuiltInTools/Web.Middleware/BrowserScriptMiddleware.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable enable
5+
46
using System.Globalization;
57
using Microsoft.AspNetCore.Http;
68
using Microsoft.Extensions.Logging;

src/BuiltInTools/Web.Middleware/HostingStartup.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable enable
5+
46
using Microsoft.AspNetCore.Builder;
57
using Microsoft.AspNetCore.Hosting;
68
using Microsoft.Extensions.DependencyInjection;

src/BuiltInTools/Web.Middleware/ResponseStreamWrapper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
#nullable enable
5+
46
using System.Diagnostics;
57
using System.IO.Compression;
68
using System.IO.Pipelines;

0 commit comments

Comments
 (0)