The following code sample flags S3063. Even though ToString is not called the stringbuilder is still used. Is this a false positive?
using System;
using System.Text;
namespace Test
{
internal static class Program
{
static void Main()
{
StringBuilder stringbuilder = new StringBuilder("stringbuilder");
string text = stringbuilder + "test";
Console.WriteLine(text);
}
}
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4