-
Notifications
You must be signed in to change notification settings - Fork 165
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
Apply ArgumentNullException.ThrowIfNull to NLog source-code #889
Conversation
…latforms in NLog.Web
Codecov ReportBase: 70% // Head: 69% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #889 +/- ##
=====================================
- Coverage 70% 69% -1%
=====================================
Files 65 65
Lines 1218 1230 +12
Branches 308 316 +8
=====================================
- Hits 850 849 -1
- Misses 229 240 +11
- Partials 139 141 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Would it be possible to apply the solution found here: NLog/NLog#5068 ? (Explicit define Would be nice to get rid of these lines (Maybe always use #if NET6_0_OR_GREATER
using ArgumentNullException = System.ArgumentNullException;
#else
using ArgumentNullException = NLog.Web.Internal.ArgumentNullException;
#endif |
Should now be as requested, thank you for the reference into NLog commit. |
Added unit tests for CallerArgumentExpressionAttribute class |
Could you make an unit-test that verifies that |
unit test added as requested |
Kudos, SonarCloud Quality Gate passed! |
Looks like the internal Thank you for this nice pull-request and the unit-tests. |
I try to follow your example exactly as you say.
I had to make if statement for this attribute
#if NETCOREAPP3_1_OR_GREATER
[CallerArgumentExpression("argument")]
#endif
since it is not in NET 461 or CORE 2.x, but other than that I did not find any difficulty.