Skip to content

Commit 67eac42

Browse files
committed
Replace queryable with supportable for clarity.
This makes it consistent with the user manual.
1 parent a2ef954 commit 67eac42

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

rules.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Language,Standard,ID,Queryable?,Obligation level,Enforcement level,Allocated target,Description,Similar,Package,Difficulty,Justification for querability level
1+
Language,Standard,ID,Supportable,Obligation level,Enforcement level,Allocated target,Description,Similar,Package,Difficulty,Justification for querability level
22
cpp,AUTOSAR,A0-1-1,Yes,Required,Automated,Implementation,A project shall not contain instances of non-volatile variables being given values that are not subsequently used.,M0-1-6,DeadCode,Medium,
33
cpp,AUTOSAR,A0-1-2,Yes,Required,Automated,Implementation,The value returned by a function having a non-void return type that is not an overloaded operator shall be used.,M0-1-7,DeadCode,Easy,
44
cpp,AUTOSAR,A0-1-3,Yes,Required,Automated,Implementation,"Every function defined in an anonymous namespace, or static function with internal linkage, or private member function shall be used.",M0-1-10,DeadCode,Easy,

scripts/generate_rules/generate_package_description.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def generate_short_name(title):
9696
language = rule[0]
9797
standard = rule[1]
9898
rule_id = rule[2]
99-
queryable = rule[3]
99+
supportable = rule[3]
100100
obligation_level = rule[4]
101101
enforcement_level = rule[5]
102102
allocated_targets = rule[6]
@@ -106,8 +106,8 @@ def generate_short_name(title):
106106
difficulty = rule[10]
107107
# Find all rules in the given language and package
108108
if language == language_name and package == package_name:
109-
if not queryable == "Yes":
110-
print("Error: " + standard + " " + rule_id + " is marked as part of package " + package_name + " but is not marked as queryable.")
109+
if not supportable == "Yes":
110+
print("Error: " + standard + " " + rule_id + " is marked as part of package " + package_name + " but is not marked as supportable.")
111111
sys.exit(1)
112112

113113
# Add the AUTOSAR obligation, enforcement and allocated target as query properties.

scripts/verify_rule_package_consistency.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
standard = rule[1]
4949
rule_id = rule[2]
50-
queryable = rule[3]
50+
supportable = rule[3]
5151
obligation_level = rule[4]
5252
enforcement_level = rule[5]
5353
allocated_targets = rule[6]
@@ -57,9 +57,9 @@
5757
difficulty = rule[10]
5858
# If the rule is associated with a package
5959
if package:
60-
if not queryable == "Yes":
60+
if not supportable == "Yes":
6161
print(
62-
f"ERROR: {standard} {rule_id} is included as part of package {package} but is not marked as queryable.")
62+
f"ERROR: {standard} {rule_id} is included as part of package {package} but is not marked as supportable.")
6363
failed = True
6464
else:
6565
package_rules_from_csv[package].add(rule_id)
@@ -98,7 +98,7 @@
9898
failed = True
9999
if not rule_id in package_rules_from_csv[package_name]:
100100
print(
101-
f" - ERROR: Rule {rule_id} included in {package_name}.json but not marked as queryable in rules.csv.")
101+
f" - ERROR: Rule {rule_id} included in {package_name}.json but not marked as supportable in rules.csv.")
102102
failed = True
103103
rules_csv_rule_ids = package_rules_from_csv[package_name]
104104

0 commit comments

Comments
 (0)