Skip to content

Commit

Permalink
SLVS-1616 TaintIssuesControl & TaintIssuesControlViewModel: remove An…
Browse files Browse the repository at this point in the history
  • Loading branch information
georgii-borovinskikh-sonarsource authored Nov 14, 2024
1 parent 1fad501 commit 64f505a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 52 deletions.
37 changes: 0 additions & 37 deletions src/IssueViz.Security/Taint/AnalysisInformation.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,7 @@
<RowDefinition Name="List" Height="*" />
</Grid.RowDefinitions>
<Border Grid.Row="0" Style="{StaticResource DisclaimerBorderStyle}">
<TextBlock Style="{StaticResource DisclaimerTextBlockStyle}">
<TextBlock.Text>
<MultiBinding StringFormat="{}Server issues found in current file (branch '{0}', last analyzed on {1})">
<Binding Path="AnalysisInformation.BranchName" />
<Binding Path="AnalysisInformation.AnalysisTimestamp" Converter="{StaticResource DateTimeConverter}" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
<TextBlock Style="{StaticResource DisclaimerTextBlockStyle}" Text="Server Security Vulnerabilities found in the current file" />
</Border>
<Grid x:Name="TaintList" Grid.Row="1">
<Grid.ColumnDefinitions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ internal interface ITaintIssuesControlViewModel : INotifyPropertyChanged, IDispo
string WindowCaption { get; }

string ServerType { get; }

AnalysisInformation AnalysisInformation { get; }
}

/// <summary>
Expand Down Expand Up @@ -132,8 +130,6 @@ public ITaintIssueViewModel SelectedIssue
}
}

public AnalysisInformation AnalysisInformation { get; private set; }

public string ServerType => serverType.ToString();

public TaintIssuesControlViewModel(ITaintStore store,
Expand Down Expand Up @@ -301,10 +297,7 @@ private void UpdateIssues()
taintIssueViewModel.TaintIssueViz.PropertyChanged += OnTaintIssuePropertyChanged;
}

AnalysisInformation = new AnalysisInformation("stub", DateTimeOffset.Now);

NotifyPropertyChanged(nameof(HasServerIssues));
NotifyPropertyChanged(nameof(AnalysisInformation));
}


Expand Down

0 comments on commit 64f505a

Please sign in to comment.