From f66a1086b59517e89d947920fbae713f281156b1 Mon Sep 17 00:00:00 2001 From: Vasileios Naskos Date: Fri, 10 Jan 2025 11:42:09 +0100 Subject: [PATCH] Add more issues --- src/SLCore.IntegrationTests/FileAnalysisTestsRunner.cs | 5 ++++- src/SLCore.IntegrationTests/Resources/CFamilyIssues.cpp | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/SLCore.IntegrationTests/FileAnalysisTestsRunner.cs b/src/SLCore.IntegrationTests/FileAnalysisTestsRunner.cs index 0f06aab9e..bcc1e2df1 100644 --- a/src/SLCore.IntegrationTests/FileAnalysisTestsRunner.cs +++ b/src/SLCore.IntegrationTests/FileAnalysisTestsRunner.cs @@ -227,7 +227,10 @@ internal class CFamilyIssuesFile : ITestingFile public List 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), ]; } diff --git a/src/SLCore.IntegrationTests/Resources/CFamilyIssues.cpp b/src/SLCore.IntegrationTests/Resources/CFamilyIssues.cpp index 22859b93f..66672f845 100644 --- a/src/SLCore.IntegrationTests/Resources/CFamilyIssues.cpp +++ b/src/SLCore.IntegrationTests/Resources/CFamilyIssues.cpp @@ -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; }