Skip to content

Commit

Permalink
Add more issues
Browse files Browse the repository at this point in the history
  • Loading branch information
vnaskos-sonar committed Jan 10, 2025
1 parent 0cb08e8 commit f66a108
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/SLCore.IntegrationTests/FileAnalysisTestsRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ internal class CFamilyIssuesFile : ITestingFile

public List<TestIssue> ExpectedIssues =>
[
new("cpp:S1135", new TextRangeDto(7, 4, 7, 17), CleanCodeAttribute.COMPLETE, 0),
new("cpp:S1135", new TextRangeDto(7, 4, 7, 29), CleanCodeAttribute.COMPLETE, 0),
new("cpp:S1481", new TextRangeDto(10, 9, 10, 10), CleanCodeAttribute.CLEAR, 0),
new("cpp:S5350", new TextRangeDto(10, 4, 10, 17), CleanCodeAttribute.CLEAR, 0),
new("cpp:S4962", new TextRangeDto(10, 13, 10, 17), CleanCodeAttribute.CONVENTIONAL, 0),
];
}

Expand Down
5 changes: 4 additions & 1 deletion src/SLCore.IntegrationTests/Resources/CFamilyIssues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ using namespace std;

int main()
{
// TODO: Test
// TODO: This is an issue
cout << "Hello CMake." << endl;

int* a = NULL; // Some more issues

return 0;
}

0 comments on commit f66a108

Please sign in to comment.