Skip to content

Commit ef8f367

Browse files
Fix: Fix accessing of renamed options
1 parent 03f1fd8 commit ef8f367

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/extensions/score_metrics/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def calculate_need_metrics(app: Sphinx, env: BuildEnvironment) -> None:
3333
The traceability_gate reads this file to enforce CI thresholds.
3434
"""
3535
include_external: bool = bool(
36-
getattr(app.config, "score_metamodel_include_external_needs", False)
36+
getattr(app.config, "score_metrics_include_external_needs", False)
3737
)
3838
calculate_full_need_metrics(app=app, include_external=include_external)
3939

src/extensions/score_metrics/traceability_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def calculate_full_need_metrics(app: Sphinx, include_external: bool):
135135
# We either get the types that should be considered from the configuration
136136
# If none are specified the need types declared in the Metamodel with
137137
# the tags 'requirement' are taken
138-
raw = getattr(app.config, "score_metamodel_requirement_types", "").strip()
138+
raw = getattr(app.config, "score_metrics_requirement_types", "").strip()
139139
filter_reqs = [t.strip() for t in raw.split(",") if t.strip()]
140140
if not filter_reqs:
141141
filter_reqs = get_need_types_by_tags(metamodel.needs_types, {"requirement"})

0 commit comments

Comments
 (0)