Skip to content

Commit a19855b

Browse files
committed
Add implementation scope properties
Specify the scope of each of the newly supported rules.
1 parent 7e5ef5f commit a19855b

File tree

3 files changed

+20
-5
lines changed

3 files changed

+20
-5
lines changed

rule_packages/c/Contracts.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
"short_name": "DoNotViolateInLineLinkageConstraints",
1515
"tags": [
1616
"correctness"
17-
]
17+
],
18+
"implementation_scope": {
19+
"description": "This query only considers the constraints related to inline extern functions."
20+
}
1821
}
1922
],
2023
"title": "Do not violate constraints"
@@ -36,7 +39,10 @@
3639
"shared_implementation_short_name": "UncheckedRangeDomainPoleErrors",
3740
"tags": [
3841
"correctness"
39-
]
42+
],
43+
"implementation_scope": {
44+
"description": "This query identifies possible domain, pole and range errors on a selection of C standard library fuctions from math.h."
45+
}
4046
}
4147
],
4248
"title": "The validity of values passed to library functions shall be checked"
@@ -56,7 +62,10 @@
5662
"shared_implementation_short_name": "FunctionErroneousReturnValueNotTested",
5763
"tags": [
5864
"maintainability"
59-
]
65+
],
66+
"implementation_scope": {
67+
"description": "This query enforces checking on some C standard library functions that may return error codes."
68+
}
6069
}
6170
],
6271
"title": "If a function returns error information, then that error information shall be tested"

rule_packages/c/FloatingTypes.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
"shared_implementation_short_name": "UncheckedRangeDomainPoleErrors",
1616
"tags": [
1717
"correctness"
18-
]
18+
],
19+
"implementation_scope": {
20+
"description": "This query identifies possible domain, pole and range errors on a selection of C standard library fuctions from math.h."
21+
}
1922
}
2023
],
2124
"title": "Prevent or detect domain and range errors in math functions"

rule_packages/cpp/Expressions.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@
8989
"shared_implementation_short_name": "FunctionErroneousReturnValueNotTested",
9090
"tags": [
9191
"maintainability"
92-
]
92+
],
93+
"implementation_scope": {
94+
"description": "The query enforces checking on some C standard library functions that may return error codes."
95+
}
9396
}
9497
],
9598
"title": "If a function generates error information, then that error information shall be tested."

0 commit comments

Comments
 (0)