Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

enable nullability in PackageItemViewModelTests - #6596

#6596
Merged
zivkan merged 3 commits into
NuGet:devNuGet/NuGet.Client:devfrom
SimonCropp:enable-nullability-in-PackageItemViewModelTestsCopy head branch name to clipboard
Aug 26, 2025
Merged

enable nullability in PackageItemViewModelTests#6596
zivkan merged 3 commits into
NuGet:devNuGet/NuGet.Client:devfrom
SimonCropp:enable-nullability-in-PackageItemViewModelTestsCopy head branch name to clipboard

Conversation

@SimonCropp

@SimonCropp SimonCropp commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

Bug

Fixes: NuGet/Home#14434

Description

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@SimonCropp
SimonCropp requested a review from a team as a code owner July 22, 2025 01:08
@SimonCropp
SimonCropp requested review from donnie-msft and zivkan July 22, 2025 01:08
@dotnet-policy-service dotnet-policy-service Bot added the Community PRs created by someone not in the NuGet team label Jul 22, 2025
@dotnet-policy-service dotnet-policy-service Bot added the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Jul 29, 2025
@dotnet-policy-service dotnet-policy-service Bot removed the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Aug 4, 2025
@dotnet-policy-service dotnet-policy-service Bot added the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Aug 13, 2025
@dotnet-policy-service dotnet-policy-service Bot removed the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Aug 13, 2025
@SimonCropp

Copy link
Copy Markdown
Contributor Author

bump

@dotnet-policy-service dotnet-policy-service Bot added the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Aug 23, 2025
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

This PR has been automatically marked as stale because it has no activity for 7 days. It will be closed if no further activity occurs within another 30 days of this comment. If it is closed, you may reopen it anytime when you're ready again, as long as you don't delete the branch.

@zivkan zivkan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimonCropp This PR doesn't have anything that would cause me to ask for changes or block it as conceptually unwanted. Indeed, having all our code use nullable checks would help reduce risk of NullReferenceException bugs in the product.

But this PR enables nullable for a test file, while the product code continues to not have null checks. At best this PR does not help improve null checking in the product, and at worst it might make some people assume the product code is being null checked, when it's not.

In the past, when I felt less pressure to get other work done, I was spending tens of hours enabling nullable checks for whole projects at a time (1, 2, 3, 4). It's a lot of painful work, so I understand if an external contributor doesn't want to make the effort. Otherwise, I'd really prefer to see individual files enabling nullable when other work is already being done on them.

This repo has ~4200 *.cs files. Some of them already have nullable enabled, but most don't yet. I really don't want to see hundreds, let alone thousands, of PRs each null annotating one file.

@dotnet-policy-service dotnet-policy-service Bot removed the Status:No recent activity PRs that have not had any recent activity and will be closed if the label is not removed label Aug 26, 2025
@zivkan
zivkan merged commit 51e1820 into NuGet:dev Aug 26, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community PRs created by someone not in the NuGet team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect nullability

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.