Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
| headers/test4.h:0:0:0:0 | headers/test4.h | Header file test4.h is missing expected include guard. | headers/test4.h:0:0:0:0 | headers/test4.h | |
| headers/test5.h:0:0:0:0 | headers/test5.h | Header file test5.h is missing expected include guard. | headers/test5.h:0:0:0:0 | headers/test5.h | |
| headers/test7.h:0:0:0:0 | headers/test7.h | Header file test7.h is never included by reusing the include guard used by $@. | headers/test6.h:0:0:0:0 | headers/test6.h | include guard |
| headers/test8.h:0:0:0:0 | headers/test8.h | Header file test8.h is missing expected include guard. | headers/test8.h:0:0:0:0 | headers/test8.h | |
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" ?>
<codingstandards>
<!--GENERATED: DO NOT MODIFY. Changes should be made to coding-standards.yml instead.-->
<deviations>
<deviations-entry>
<rule-id>cpp-test-dummy</rule-id>
<justification>This header is deliberately excluded to test the exclusion mechanism.</justification>
</deviations-entry>
</deviations>
</codingstandards>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
deviations:
- rule-id: cpp-test-dummy
justification: This header is deliberately excluded to test the exclusion mechanism.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// COMPLIANT - excluded via deviation
int g7;
2 changes: 2 additions & 0 deletions c/common/test/rules/includeguardsnotused/headers/test8.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// NON_COMPLIANT
int g6;
6 changes: 5 additions & 1 deletion c/common/test/rules/includeguardsnotused/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@

#include "headers/test6.h" //NON_COMPLIANT - non unique and reported in alert for the next

#include "headers/test7.h" //NON_COMPLIANT - non unique
#include "headers/test7.h" //NON_COMPLIANT - non unique

#include "headers/test8.h" //NON_COMPLIANT - missing include guard, not excluded

#include "headers/excluded/test8.h" //COMPLIANT - missing include guard, but excluded via deviation
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
| headers/test4.hpp:0:0:0:0 | headers/test4.hpp | Header file test4.hpp is missing expected include guard. | headers/test4.hpp:0:0:0:0 | headers/test4.hpp | |
| headers/test5.hpp:0:0:0:0 | headers/test5.hpp | Header file test5.hpp is missing expected include guard. | headers/test5.hpp:0:0:0:0 | headers/test5.hpp | |
| headers/test6.hpp:0:0:0:0 | headers/test6.hpp | Header file test6.hpp is missing expected include guard. | headers/test6.hpp:0:0:0:0 | headers/test6.hpp | |
| headers/test7.hpp:0:0:0:0 | headers/test7.hpp | Header file test7.hpp is missing expected include guard. | headers/test7.hpp:0:0:0:0 | headers/test7.hpp | |
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" ?>
<codingstandards>
<!--GENERATED: DO NOT MODIFY. Changes should be made to coding-standards.yml instead.-->
<deviations>
<deviations-entry>
<rule-id>cpp-test-dummy</rule-id>
<justification>This header is deliberately excluded to test the exclusion mechanism.</justification>
</deviations-entry>
</deviations>
</codingstandards>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
deviations:
- rule-id: cpp-test-dummy
justification: This header is deliberately excluded to test the exclusion mechanism.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// COMPLIANT - excluded via deviation
int g7;
2 changes: 2 additions & 0 deletions cpp/common/test/rules/includeguardsnotused/headers/test7.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// NON_COMPLIANT
int g6;
6 changes: 5 additions & 1 deletion cpp/common/test/rules/includeguardsnotused/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@

#include "headers/test5.hpp" //COMPLIANT - non unique precedes malformed

#include "headers/test6.hpp" //COMPLIANT - non unique
#include "headers/test6.hpp" //COMPLIANT - non unique

#include "headers/test7.hpp" //NON_COMPLIANT - missing include guard, not excluded

#include "headers/excluded/test7.hpp" // COMPLIANT - excluded via deviation
Loading