Skip to content

Commit

Permalink
QualityGate: Make ToString a static method
Browse files Browse the repository at this point in the history
  • Loading branch information
vnaskos-sonar committed Nov 21, 2024
1 parent 32a9db9 commit 83bfbdd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Integration.Vsix/ErrorList/IssuesSnapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/

using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Microsoft.VisualStudio.Shell.TableControl;
using Microsoft.VisualStudio.Shell.TableManager;
using SonarLint.VisualStudio.Core;
using SonarLint.VisualStudio.Core.Analysis;
using SonarLint.VisualStudio.Core.Helpers;
using SonarLint.VisualStudio.Infrastructure.VS;
using SonarLint.VisualStudio.Integration.Vsix.ErrorList;
using SonarLint.VisualStudio.IssueVisualization.Helpers;
using SonarLint.VisualStudio.IssueVisualization.Models;

Expand Down Expand Up @@ -285,7 +281,7 @@ private bool ShouldHideIssue(IAnalysisIssueVisualization issue)
return !issue.Span.HasValue || issue.Span.Value.IsEmpty;
}

private object ToString(AnalysisIssueType? type)
private static string ToString(AnalysisIssueType? type)
{
switch (type)
{
Expand Down

0 comments on commit 83bfbdd

Please sign in to comment.