Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitddd28e6

Browse files
committed
Test new deviation formats for DeviationSuppressions.ql
1 parentc25018f commitddd28e6

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines 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‎

Lines 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
longdouble d1;// NON_COMPLIANT (A0-4-2)
1212
longdouble d2;// a-0-4-2-deviation COMPLIANT[DEVIATED]
13+
14+
longdouble d3;// codeql::autosar_deviation(a-0-4-2-deviation)
15+
// COMPLIANT[DEVIATED]
16+
longdouble d4;// NON_COMPLIANT (A0-4-2)
17+
// codeql::autosar_deviation_next_line(a-0-4-2-deviation)
18+
longdouble d5;// COMPLIANT[DEVIATED]
19+
longdouble d6;// NON_COMPLIANT (A0-4-2)
20+
21+
// codeql::autosar_deviation_begin(a-0-4-2-deviation)
22+
longdouble d7;// COMPLIANT[DEVIATED]
23+
getX();// NON_COMPLIANT (A0-1-2)
24+
longdouble d8;// COMPLIANT[DEVIATED]
25+
getX();// NON_COMPLIANT (A0-1-2)
26+
longdouble d9;// COMPLIANT[DEVIATED]
27+
// codeql::autosar_deviation_end(a-0-4-2-deviation)
28+
longdouble d10;// NON_COMPLIANT (A0-4-2)
29+
// codeql::autosar_deviation_begin(a-0-4-2-deviation)
30+
longdouble d11;// COMPLIANT[DEVIATED]
31+
getX();// NON_COMPLIANT (A0-1-2)
32+
longdouble d12;// COMPLIANT[DEVIATED]
33+
getX();// NON_COMPLIANT (A0-1-2)
34+
longdouble d13;// COMPLIANT[DEVIATED]
35+
// codeql::autosar_deviation_end(a-0-4-2-deviation)
36+
longdouble d14;// NON_COMPLIANT (A0-4-2)
37+
getX();// NON_COMPLIANT (A0-1-2)
1338
return0;
1439
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp