dotnet / dotnet/sdk

Gradual Removal of #nullable disable Directives

Open
#45,715 0 comments 0 reactions 0 assignees View on GitHub
Area-NetSDK untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Describe the bug
With the recent merge of the PR that centralized the management of `nullable` reference types in the main `Directory.Build.Props` file, we have ensured consistent default behavior across the entire repository. This change also included adding `#nullable disable` at the top of each `.cs` file, excluding files in projects where nullable reference types are already enabled.

To further clean up and simplify our codebase, we will gradually remove all `#nullable disable` directives from the `src` and `test` directories. This will avoid duplicate configurations and ensure consistency.

This change is part of our ongoing effort to improve code quality and maintainability. By centralizing the management of nullable reference types, we can ensure a more streamlined and consistent development experience.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.