Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tooling: Correct underscore missing values in docs build errors. #437

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
8 changes: 5 additions & 3 deletions docs/_tooling/extensions/score_metamodel/checks/standards.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
from sphinx_needs.data import NeedsInfoType
from sphinx.application import Sphinx
from sphinx_needs.data import NeedsInfoType

from score_metamodel import (
CheckLogger,
Expand All @@ -27,7 +27,7 @@ def get_standards_needs(needs: list[NeedsInfoType]) -> dict:
return {
need["id"]: need
for need in needs
if need["id"].startswith("STD_REQ_ISO26262__")
if need["id"].startswith("STD_REQ__ISO26262__")
}


Expand All @@ -37,7 +37,9 @@ def get_standards_workproducts(needs: list[NeedsInfoType]) -> dict:
"""

return {
need["id"]: need for need in needs if need["id"].startswith("STD_WP_ISO26262__")
need["id"]: need
for need in needs
if need["id"].startswith("STD_WP__ISO26262__")
}


Expand Down
16 changes: 8 additions & 8 deletions docs/_tooling/extensions/score_metamodel/metamodel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ needs_types:
title: "Standard Requirement"
prefix: "std_req__"
mandatory_options:
id: "^(std_req_iso26262|std_req_iso21434|std_req_isopas8926|std_(g|b)p_aspice_40)__[0-9a-z_]*$"
id: "std_req__(iso26262|iso21434|isopas8926|aspice_40)__[0-9a-z_]*$"
status: "^(valid)$"

std_wp:
title: "Standard Work Product"
prefix: "std_wp__"
mandatory_options:
id: "^(std_wp_iso26262|std_wp_iso21434|std_wp_isopas8926|std_(g|b)p_aspice_40)__[0-9a-z_]*$"
id: "std_wp__(iso26262|iso21434|isopas8926|aspice_40)__[0-9a-z_]*$"
status: "^(valid)$"
# Workflow
workflow:
Expand All @@ -44,7 +44,7 @@ needs_types:
id: "^gd_req__[0-9a-z_]*$"
status: "^(valid|draft)$"
mandatory_links:
complies: "^(std_req_iso26262|std_req_iso21434|std_req_isopas8926|std_(g|b)p_aspice_40)__.*$"
complies: "std_req__(iso26262|iso21434|isopas8926|aspice_40)__.*$"

gd_temp:
title: "Process Template"
Expand All @@ -53,7 +53,7 @@ needs_types:
id: "^gd_temp__[0-9a-z_]*$"
status: "^(valid|draft)$"
mandatory_links:
complies: "^(std_req_iso26262|std_req_iso21434|std_req_isopas8926|std_(g|b)p_aspice_40)__.*$"
complies: "std_req__(iso26262|iso21434|isopas8926|aspice_40)__.*$"

gd_chklst:
title: "Process Checklist"
Expand All @@ -62,7 +62,7 @@ needs_types:
id: "^gd_chklst__[0-9a-z_]*$"
status: "^(valid|draft)$"
mandatory_links:
complies: "^(std_req_iso26262|std_req_iso21434|std_req_isopas8926|std_(g|b)p_aspice_40)__.*$"
complies: "std_req__(iso26262|iso21434|isopas8926|aspice_40)__.*$"

gd_guidl:
title: "Process Guideline"
Expand All @@ -71,7 +71,7 @@ needs_types:
id: "^gd_guidl__[0-9a-z_]*$"
status: "^(valid|draft)$"
mandatory_links:
complies: "^(std_req_iso26262|std_req_iso21434|std_req_isopas8926|std_(g|b)p_aspice_40)__.*$"
complies: "std_req__(iso26262|iso21434|isopas8926|aspice_40)__.*$"

gd_method:
title: "Process Method"
Expand All @@ -80,7 +80,7 @@ needs_types:
id: "^gd_meth__[0-9a-z_]*$"
status: "^(valid|draft)$"
mandatory_links:
complies: "^(std_req_iso26262|std_req_iso21434|std_req_isopas8926|std_(g|b)p_aspice_40)__.*$"
complies: "std_req__(iso26262|iso21434|isopas8926|aspice_40)__.*$"
# Score Workproduct
workproduct:
title: "Workproduct"
Expand All @@ -89,7 +89,7 @@ needs_types:
id: "^wp__[0-9a-z_]*$"
status: "^(valid|draft)$"
mandatory_links:
complies: "^(std_wp_iso26262|std_wp_iso21434|std_wp_isopas8926|std_iic_aspice_40)__.*$"
complies: "std_(wp__iso26262|wp__iso21434|wp__isopas8926|iic_aspice_40)__.*$"
# Role
role:
title: "Role"
Expand Down
Loading