Rule RSPEC-1128 fails to take into account comment tags

Using the VS2019 extension SonarLint v4.13.0.11687
I am getting “Remove this unnecessary ‘using’.” message when the namespace is used by documentation comment tags. Example:

using Primus.KPI.BitProcessing.Interfaces;
[and later in the class code:]
        /// <summary>
        /// Query for <see cref="IBitDataService.GetInstallBuildItems(int)"/>
        /// </summary>
        public const string GetInstallBuildItems = @" ... ";
1 Like

thanks @Siderite !
we have a ticket (https://github.com/SonarSource/sonar-dotnet/issues/2694) to track this issue

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.