S1450 issues are not appearing in the VS2015 IDE.
namespace S1450_FalseNegativeInVS2015IDE
{
public class Example1
{
int field; // << expecting S1450 to be raised here but does not appear in VS2015.3 IDE
// It is correctly detected when running from the command line and in the VS2017 IDE
public void Increment(int val)
{
field = val + 1;
}
}
}
Please provide a description of the behavior you expect.
The issue does not appear in the IDE, but it does appear when analysing during builds.
Works as expected in VS2017.
Hi @duncanp-sonar, do you keep the project you used to reproduce the issue? I cannot reproduce it locally using the latest nuget:

Could this be caused by having "test" in the project name as I suggested in #1536?
@valhristov the project name was "BugsWIP" (attached) BugsWip.zip
It uses the analyzer embedded in SLVS rather than the NuGet.
I've tried repro-ing again, and the issue does appear sometimes but not always
e.g.
I suspect the issue might be with how the rule is being called in VS2015.3, rather than the rule itself.
@valhristov could you check whether your rule rewrite also fixes this issue?
It takes a couple of seconds for the issues to appear (not only S1450) but they appear consistently without the need to rebuild.
Closing the issue then!