-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SLVS-1693 Fix: issues set to empty after hotspots event #5886
SLVS-1693 Fix: issues set to empty after hotspots event #5886
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small feedback
@@ -49,3 +44,15 @@ void ScheduleAnalysis(string filePath, | |||
/// </summary> | |||
void CancelForFile(string filePath); | |||
} | |||
|
|||
public interface IFindingsPublisher |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this interface into its own class.
return analysisIssueVisualizations; | ||
} | ||
|
||
private bool ValidatePath(string path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename the method to something more speaking: for now, it is unexpected that the ValidatePath returns true in the case that it fails. Possible name: IsPathInvalid
Another approach would be to inverse the returns: in the fail case, it should return false.
@@ -46,20 +39,18 @@ public void HandleNewIssues_UpdatedSnapshotAndHotspotStoreHaveExpectedValues() | |||
{ | |||
var hotspotStoreMock = new Mock<ILocalHotspotsStoreUpdater>(); | |||
|
|||
var hotspot = CreateIssue("S112", startLine: 1, endLine: 1, isHotspot: true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename the test as well: HandleNewIssues_UpdatedSnapshotHasExpectedValues
@@ -87,6 +77,33 @@ public void HandleNewIssues_UpdatedSnapshotAndHotspotStoreHaveExpectedValues() | |||
notificationHandler.UpdatedSnapshot.AnalyzedFilePath.Should().Be(expectedFilePath); | |||
} | |||
|
|||
[TestMethod] | |||
public void HandleNewHotspots_UpdatedSnapshotAndHotspotStoreHaveExpectedValues() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to
public void HandleNewHotspots_UpdatedSnapshotAndHotspotStoreHaveExpectedValues() | |
public void HandleNewHotspots_HotspotStoreHasExpectedValues() |
Quality Gate passedIssues Measures |
1d8a731
into
feature/cfamily-migration
SLVS-1693