Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBL-4452: Migrate to nullable reference types in tests #1607

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

borrrden
Copy link
Member

Massive amount of lines changed but 95% of it is just removing #nullable disabled and then addressing the various ? and ! needed. I tried to be mostly diligent about adding a null check to the test before adding ! but toward the end and the 1000th time doing it for basically the same functionality I gave up.

CBL-5547
This uncovered three nullability regressions though (you can see them in the non test files). I filed one as a ticket, but will cover all three with the same ticket.

I also added in an assembly property to not auto append the git SHA to the version, so that it remains pure as x.y.z-bdddd

borrrden added a commit that referenced this pull request Mar 21, 2024
borrrden added a commit that referenced this pull request Mar 22, 2024
@borrrden borrrden requested review from bmeike and pasin March 22, 2024 00:53
Copy link
Contributor

@bmeike bmeike left a comment

Choose a reason for hiding this comment

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

Not going to read this carefully: The whole point, really, is getting more automatic checks. Definitely a good thing to do.

Massive amount of lines changed but 95% of it is just removing `#nullable disabled` and then addressing the various `?` and `!` needed.  I tried to be mostly diligent about adding a null check to the test before adding `!` but toward the end and the 1000th time doing it for basically the same functionality I gave up.

CBL-5547
This uncovered three nullability regressions though (you can see them in the non test files).  I filed one as a ticket, but will cover all three with the same ticket.

I also added in an assembly property to not auto append the git SHA to the version, so that it remains pure as x.y.z-bdddd
@borrrden borrrden merged commit 0af1df2 into master Jul 16, 2024
1 check was pending
@borrrden borrrden deleted the fix/cbl-4452_and_cbl-5547 branch July 16, 2024 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants