-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fixed Sonar Lint code analysis warnings #2389
Conversation
125b383
to
bff9fbd
Compare
…r.TryImplicitConversion
bff9fbd
to
f464e90
Compare
Codecov Report
@@ Coverage Diff @@
## master #2389 +/- ##
=======================================
- Coverage 82% 82% -<1%
=======================================
Files 318 318
Lines 22796 22805 +9
Branches 2789 2790 +1
=======================================
- Hits 18671 18665 -6
- Misses 3419 3433 +14
- Partials 706 707 +1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this a pure refactoring, isn't? (so no functional changes and just moves etc?)
PS: AFAIK sonar isn't working correctly on AppVeyor
private Stack<object> _stack; | ||
private int _previousCount; | ||
private readonly Stack<object> _stack; | ||
private readonly int _previousCount; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that readonly
could influence runtime performance (badly)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only heard that it affect performance for fields in struct, where it will cause the entire struct to be copied on field access. Do you have some details about this other readonly pitfall?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one, but that's indeed structs
And cleaned up PropertyHelper.TryImplicitConversion (Turned ugly with NetStandard1.5)