As reported on this community thread
C#
public string UsedInTuple(string value) // Noncompliant FP
{
var x = (value, 7);
return x.value;
}
This is still reproducible when latest master DLL is referenced directly from a project (v8.6.1).
But it's not reproducible inside a test (see this commit
<ItemGroup>
<Analyzer Include="c:\Projects\sonar-dotnet\sonaranalyzer-dotnet\src\SonarAnalyzer.CSharp\bin\Debug\net46\\Google.Protobuf.dll" />
<Analyzer Include="c:\Projects\sonar-dotnet\sonaranalyzer-dotnet\src\SonarAnalyzer.CSharp\bin\Debug\net46\\SonarAnalyzer.CFG.dll" />
<Analyzer Include="c:\Projects\sonar-dotnet\sonaranalyzer-dotnet\src\SonarAnalyzer.CSharp\bin\Debug\net46\\SonarAnalyzer.CSharp.dll" />
<Analyzer Include="c:\Projects\sonar-dotnet\sonaranalyzer-dotnet\src\SonarAnalyzer.CSharp\bin\Debug\net46\\SonarAnalyzer.dll" />
</ItemGroup>
Just stumbled across this in our code. Any estimate when a fix for this will be released?
Hi @markusschaber, we don't have any specific estimation. Rough guess is that we'll try to fix this until January 2021.
Most helpful comment
Hi @markusschaber, we don't have any specific estimation. Rough guess is that we'll try to fix this until January 2021.