Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ddd28e6

Browse filesBrowse files
committed
Test new deviation formats for DeviationSuppressions.ql
1 parent c25018f commit ddd28e6
Copy full SHA for ddd28e6

File tree

2 files changed

+30
-1
lines changed
Filter options

2 files changed

+30
-1
lines changed
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
| file://:0:0:0:0 | (no string representation) | // lgtm[cpp/autosar/type-long-double-used] | lgtm[cpp/autosar/type-long-double-used] | main.cpp:12:1:12:58 | Deviation of cpp/autosar/type-long-double-used applied to main.cpp Line 12 |
2+
| file://:0:0:0:0 | (no string representation) | // lgtm[cpp/autosar/type-long-double-used] | lgtm[cpp/autosar/type-long-double-used] | main.cpp:14:1:14:65 | Deviation of cpp/autosar/type-long-double-used applied to main.cpp Line 14 |
3+
| file://:0:0:0:0 | (no string representation) | // lgtm[cpp/autosar/type-long-double-used] | lgtm[cpp/autosar/type-long-double-used] | main.cpp:18:1:18:40 | Deviation of cpp/autosar/type-long-double-used applied to main.cpp Line 18 |
4+
| file://:0:0:0:0 | (no string representation) | // lgtm[cpp/autosar/type-long-double-used] | lgtm[cpp/autosar/type-long-double-used] | main.cpp:21:1:27:1 | Deviation of cpp/autosar/type-long-double-used applied to main.cpp Line 21:27 |
5+
| file://:0:0:0:0 | (no string representation) | // lgtm[cpp/autosar/type-long-double-used] | lgtm[cpp/autosar/type-long-double-used] | main.cpp:29:1:35:1 | Deviation of cpp/autosar/type-long-double-used applied to main.cpp Line 29:35 |
26
| file://:0:0:0:0 | (no string representation) | // lgtm[cpp/autosar/unused-return-value] | lgtm[cpp/autosar/unused-return-value] | nested/nested2/test2.h:1:1:6:1 | Deviation of cpp/autosar/unused-return-value for nested/nested2/test2.h. |
37
| file://:0:0:0:0 | (no string representation) | // lgtm[cpp/autosar/useless-assignment] | lgtm[cpp/autosar/useless-assignment] | coding-standards.xml:1:1:17:19 | Deviation of cpp/autosar/useless-assignment for coding-standards.xml. |
4-
| file://:0:0:0:0 | (no string representation) | // lgtm[cpp/autosar/useless-assignment] | lgtm[cpp/autosar/useless-assignment] | main.cpp:1:1:14:1 | Deviation of cpp/autosar/useless-assignment for main.cpp. |
8+
| file://:0:0:0:0 | (no string representation) | // lgtm[cpp/autosar/useless-assignment] | lgtm[cpp/autosar/useless-assignment] | main.cpp:1:1:39:1 | Deviation of cpp/autosar/useless-assignment for main.cpp. |
59
| file://:0:0:0:0 | (no string representation) | // lgtm[cpp/autosar/useless-assignment] | lgtm[cpp/autosar/useless-assignment] | nested/coding-standards.xml:1:1:13:19 | Deviation of cpp/autosar/useless-assignment for nested/coding-standards.xml. |
610
| file://:0:0:0:0 | (no string representation) | // lgtm[cpp/autosar/useless-assignment] | lgtm[cpp/autosar/useless-assignment] | nested/nested2/test2.h:1:1:6:1 | Deviation of cpp/autosar/useless-assignment for nested/nested2/test2.h. |
711
| file://:0:0:0:0 | (no string representation) | // lgtm[cpp/autosar/useless-assignment] | lgtm[cpp/autosar/useless-assignment] | nested/test.h:1:1:6:1 | Deviation of cpp/autosar/useless-assignment for nested/test.h. |

‎cpp/common/test/deviations/deviations_report_deviated/main.cpp

Copy file name to clipboardExpand all lines: cpp/common/test/deviations/deviations_report_deviated/main.cpp
+25Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,30 @@ int main(int argc, char **argv) {
1010
getX(); // NON_COMPLIANT
1111
long double d1; // NON_COMPLIANT (A0-4-2)
1212
long double d2; // a-0-4-2-deviation COMPLIANT[DEVIATED]
13+
14+
long double d3; // codeql::autosar_deviation(a-0-4-2-deviation)
15+
// COMPLIANT[DEVIATED]
16+
long double d4; // NON_COMPLIANT (A0-4-2)
17+
// codeql::autosar_deviation_next_line(a-0-4-2-deviation)
18+
long double d5; // COMPLIANT[DEVIATED]
19+
long double d6; // NON_COMPLIANT (A0-4-2)
20+
21+
// codeql::autosar_deviation_begin(a-0-4-2-deviation)
22+
long double d7; // COMPLIANT[DEVIATED]
23+
getX(); // NON_COMPLIANT (A0-1-2)
24+
long double d8; // COMPLIANT[DEVIATED]
25+
getX(); // NON_COMPLIANT (A0-1-2)
26+
long double d9; // COMPLIANT[DEVIATED]
27+
// codeql::autosar_deviation_end(a-0-4-2-deviation)
28+
long double d10; // NON_COMPLIANT (A0-4-2)
29+
// codeql::autosar_deviation_begin(a-0-4-2-deviation)
30+
long double d11; // COMPLIANT[DEVIATED]
31+
getX(); // NON_COMPLIANT (A0-1-2)
32+
long double d12; // COMPLIANT[DEVIATED]
33+
getX(); // NON_COMPLIANT (A0-1-2)
34+
long double d13; // COMPLIANT[DEVIATED]
35+
// codeql::autosar_deviation_end(a-0-4-2-deviation)
36+
long double d14; // NON_COMPLIANT (A0-4-2)
37+
getX(); // NON_COMPLIANT (A0-1-2)
1338
return 0;
1439
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.