-
Notifications
You must be signed in to change notification settings - Fork 231
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 S1450: Rule should not raise an issue when methods call each other #158
Comments
I have the following situation where SonarQube puts out a warning! public class Foo {
private readonly int moo;
public Foo(int moo) {
this.moo = moo;
}
public too() {
//do something with this.moo
}
public too2() {
//do something with this.moo
}
} In think this is an legal case, or am I wrong? |
@p3root Apologies the huge delay in responding, and thanks for providing a repro. We've recently had a sweep through some older FP issues to try to resolve them and I've had a quick look at this one. I can't get the issue to repro with the following code based on the example you provided (tweaked slightly so it compiles):
Does the modified code accurately reflect your scenario? FYI the issue does repro with the m1, m2 code snipped above (again, tweaked so that it compiles). |
See RSPEC-1450 and SONARCS-676
The text was updated successfully, but these errors were encountered: