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

Fix S2386: Rule should not report when readonly field is initialized with null #504

Closed
Evangelink opened this issue Jun 30, 2017 · 0 comments
Assignees
Labels
Type: False Positive Rule IS triggered when it shouldn't be.
Milestone

Comments

@Evangelink
Copy link
Contributor

Evangelink commented Jun 30, 2017

Description

If a static readonly mutable field is initialized with null then the rule reports an issue.

Expected behavior

No issue is reported.

Actual behavior

Issue is reported.

RSPEC-2386

@Evangelink Evangelink added Area: Rules Type: False Positive Rule IS triggered when it shouldn't be. labels Jun 30, 2017
@Evangelink Evangelink added this to the near-future milestone Jun 30, 2017
@Evangelink Evangelink changed the title FIx S2386: Rule should not report when readonly field is initialized with null Fix S2386: Rule should not report when readonly field is initialized with null Jun 30, 2017
@Evangelink Evangelink modified the milestones: 6.2, near-future Jun 30, 2017
@Evangelink Evangelink self-assigned this Jun 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: False Positive Rule IS triggered when it shouldn't be.
Projects
None yet
Development

No branches or pull requests

2 participants