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

Enable nullable context for entire solution #915

Merged
merged 3 commits into from
Jan 3, 2023

Conversation

atifaziz
Copy link
Member

@atifaziz atifaziz commented Dec 20, 2022

This PR enables the nullable context for the entire solution by addressing all warnings that appeared in test projects. It remove individual #nullable enable directives in files. The nullable context is now enabled on all projects via Directory.Build.props.

This PR also revises SequenceReader<> to be sealed (YAGNI) and simpler in implementation, and as a result, making it easier to address nullability warnings. A BreakException is introduced that is thrown by SequenceReader<> to avoid it being masked by InvalidOperationException that's also common in methods under test.

Pending:

  • NullArgumentTest

@atifaziz atifaziz self-assigned this Dec 20, 2022
@codecov
Copy link

codecov bot commented Dec 20, 2022

Codecov Report

Merging #915 (33c27b4) into master (69cc931) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #915   +/-   ##
=======================================
  Coverage   92.39%   92.39%           
=======================================
  Files         112      112           
  Lines        3444     3444           
  Branches     1021     1021           
=======================================
  Hits         3182     3182           
  Misses        200      200           
  Partials       62       62           
Impacted Files Coverage Δ
MoreLinq/Reactive/Subject.cs 81.53% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@atifaziz atifaziz marked this pull request as ready for review December 29, 2022 13:38
@atifaziz atifaziz changed the title 🚧 Enable nullable context for entire solution Enable nullable context for entire solution Dec 29, 2022
@atifaziz atifaziz merged commit a8e13e0 into morelinq:master Jan 3, 2023
@atifaziz atifaziz deleted the nullable-enable branch January 3, 2023 17:19
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.

2 participants