namespace TestNameSpace
{
using System.Collections.Generic;
/// <seealso cref="List{T}" />
public class Test
{
}
}
The sonarqube server (version 9.4.0) reports the issue “S1128 Remove this unnecessary ‘using’” for the using statement even the namespace is used, but “only” in the comment.
Hi @lg2de, thanks for reporting this. I think @Pavel_Mikula managed to reproduce the issue. Unfortunately, we did not had time yet to tackle the problem.
Thanks for reporting this, I added a link to this post on the issue.
Could you please tell us the version of dotnet / MSBuild you are using?
There are repro steps in the ticket, although more info about your build system will give us more details. TL;DR: the compiler seems to behave differently depending on its version.
Yes, we are slowly (and steadily) addressing our backlog while continuously bringing new value. Having information from the community forum can make us prioritize some issues over others, so thanks a lot for being active on this.