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 null checker on Libplanet project's top-level files #1022

Merged
merged 2 commits into from
Sep 29, 2020

Conversation

dahlia
Copy link
Contributor

@dahlia dahlia commented Sep 28, 2020

This enables null checker on Libplanet project's top-level files to contribute to #458.

Also upgraded StyleCop.Analyzers to 1.2.0-beta.205 in order to avoid DotNetAnalyzers/StyleCopAnalyzers#2927.

Total files:

$ find Libplanet/ -name '*.cs' | wc -l
187

Files that enable null checker (43%):

$ git grep '#nullable enable' Libplanet/ | wc -l
81

Note that it was before (39%):

$ git grep '#nullable enable' Libplanet/ | wc -l
73

to check new syntaxes introduced since C# 8.

[changelog skip]
@codecov
Copy link

codecov bot commented Sep 28, 2020

Codecov Report

Merging #1022 into main will increase coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1022      +/-   ##
==========================================
+ Coverage   88.33%   88.38%   +0.04%     
==========================================
  Files         331      331              
  Lines       30232    30234       +2     
==========================================
+ Hits        26705    26721      +16     
+ Misses       1922     1903      -19     
- Partials     1605     1610       +5     
Impacted Files Coverage Δ
Libplanet.Stun/Stun/Messages/StunMessage.cs 70.10% <ø> (ø)
Libplanet.Tests/Action/ActionContextTest.cs 90.65% <ø> (ø)
Libplanet.Tests/Blockchain/BlockChainTest.cs 98.58% <ø> (ø)
Libplanet/Address.cs 88.99% <ø> (-1.75%) ⬇️
Libplanet/AddressExtensions.cs 100.00% <ø> (ø)
Libplanet/ByteArrayExtensions.cs 100.00% <ø> (ø)
Libplanet/ByteUtil.cs 88.23% <ø> (ø)
Libplanet/FixedSizedQueue.cs 100.00% <ø> (ø)
Libplanet/HashDigest.cs 94.18% <ø> (-2.29%) ⬇️
Libplanet/Hashcash.cs 100.00% <ø> (ø)
... and 17 more

@dahlia
Copy link
Contributor Author

dahlia commented Sep 29, 2020

@planetarium/libplanet Could you review this?

@dahlia dahlia merged commit 75c8ab4 into planetarium:main Sep 29, 2020
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.

3 participants