-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #883 from evahabeeballah/polyspace-parser
Fix parsing of line and column numbers in Polyspace parser
- Loading branch information
Showing
4 changed files
with
90 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
src/test/resources/edu/hm/hafner/analysis/parser/polyspace.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
ID Family Group Color New Check Information Function File Status Severity Comment CWE ID Key Line Col | ||
3547 Defect memory Red yes Null pointer Impact: High calculate() D:\Jenkins\workspace\example.c Unreviewed Unset CWE-476 CWE-690 123456789 222 49 | ||
1320 Defect Programming Red yes Qualifier removed in conversion Impact: Low D:\example/test.c Unreviewed Unset CWE-704 123456789 276 5 | ||
184 Custom Rule 4 Structs Not Applicable yes 4.3 All struct fields must follow the specified pattern. File() D:\sample.h Unreviewed High 123456789 631 16 | ||
5630 Run-time Check memory Red yes Out of bounds array index tester() /jenkins/example.c Unreviewed Medium 123456789 468 55 | ||
15484 Run-time Check Data flow Gray yes Unreachable code init() /jenkins/example.c Unreviewed Low 123456789 27 4 | ||
420 MISRA C:2012 11 Pointer type conversions Not Applicable yes 11.1 Conversions shall not be performed between a pointer to a function and any other type. Category: Required tester() /example/myinit.c Unreviewed Unset 123456789 512 48 | ||
421 MISRA C:2012 11 Pointer type conversions Not Applicable yes 11.8 A cast shall not remove any const or volatile qualification from the type pointed to by a pointer. Category: Required calculate() /jenkins/main.c Unreviewed Unset 123456789 70 5 | ||
3528 Guidelines Software Complexity Not Applicable no 123 Depth of call nesting exceeds threshold Category: HIS init() D:\workspace/math.c Unreviewed Unset 123456789 406 10 | ||
3529 Guidelines Software Complexity Not Applicable no 123 Number of calling functions exceeds threshold Category: HIS main() D:\Jenkins\main.c Unreviewed Unset 123456789 131 10 | ||
184 Custom Rule 4 Structs Not Applicable yes 4.3 All struct fields must follow the specified pattern. File() D:\sample.h Unreviewed High CWE-74 123456789 631 16 | ||
5630 Run-time Check memory Red yes Out of bounds array index tester() /jenkins/example.c Unreviewed Medium CWE-864 1236789 468 55 | ||
15484 Run-time Check Data flow Gray yes Unreachable code init() /jenkins/example.c Unreviewed Low CWE-149 1236089 27 4 | ||
420 MISRA C:2012 11 Pointer type conversions Not Applicable yes 11.1 Conversions shall not be performed between a pointer to a function and any other type. Category: Required tester() /example/myinit.c Unreviewed Unset CWE-4135 733913 512 48 | ||
421 MISRA C:2012 11 Pointer type conversions Not Applicable yes 11.8 A cast shall not remove any const or volatile qualification from the type pointed to by a pointer. Category: Required calculate() /jenkins/main.c Unreviewed Unset CWE-317 013751 70 5 | ||
3528 Guidelines Software Complexity Not Applicable no 123 Depth of call nesting exceeds threshold Category: HIS init() D:\workspace/math.c Unreviewed Unset CWE-612 9155 406 10 | ||
3529 Guidelines Software Complexity Not Applicable no 123 Number of calling functions exceeds threshold Category: HIS main() D:\Jenkins\main.c Unreviewed Unset CWE-554 9991112 131 10 |
5 changes: 5 additions & 0 deletions
5
src/test/resources/edu/hm/hafner/analysis/parser/polyspace_cp.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ID Family Group Color New Check Information Function File Status Severity Comment Key Line Col | ||
16153 Run-time Check Data flow Red yes Unreachable code xinitialize() D:\workspace/math.c Unreviewed Unset CC1849A44441 30 4 | ||
16155 Run-time Check Data flow Gray yes Unreachable code method_a() D:\sample.h Unreviewed Medium CC10009C49A1 34 4 | ||
16144 Run-time Check Data flow Gray yes Unreachable code errorCheck() D:\Jenkins\main.c Unreviewed High 81111559C49A1 66 4 | ||
2436 MISRA C:2012 10 The essential type model Not Applicable yes 10.1 Operands shall not be of an inappropriate essential type. Category: Required a_message() /file/SERVICE.c Unreviewed Unset 844C182E62C8B9 217 27 |