-
Notifications
You must be signed in to change notification settings - Fork 24
Extend weak content check for tool needs #158
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
Changes from all commits
22aead8
9a2f672
46f0377
fb5c083
1c9c25c
ae21610
1fa5988
b462d08
d59f31d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,11 +131,10 @@ def check_description(app: Sphinx, need: NeedsInfoType, log: CheckLogger): | |
| --- | ||
| """ | ||
| weak_words = app.config.weak_words | ||
| if need["type"] in [ | ||
| "stkh_req", | ||
| "feat_req", | ||
| "comp_req", | ||
| ] and need.get("content", None): | ||
| need_options = get_need_type(app.config.needs_types, need["type"]) | ||
|
|
||
| tags = need_options.get("tags", []) | ||
| if "requirement_excl_process" in tags and need.get("content", None): | ||
|
Comment on lines
+134
to
+137
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is still not quiet right. Basically do not want to change python code if we want to change which needs or what words are affected. |
||
| for word in weak_words: | ||
| if word in need["content"]: | ||
| msg = f"contains a weak word: `{word}`. Please revise the description." | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ needs_types_base_options: | |
| - shall | ||
| - must | ||
| - will | ||
| # req-Id: tool_req__docs_common_attr_description | ||
| # req-Id: tool_req__docs_common_attr_desc_wording | ||
| content: | ||
| - just | ||
| - about | ||
|
|
@@ -73,8 +73,6 @@ needs_types: | |
| status: ^(valid)$ | ||
| optional_links: | ||
| links: ^.*$ | ||
| tags: | ||
| - requirement | ||
|
|
||
| std_wp: | ||
| title: Standard Work Product | ||
|
|
@@ -235,6 +233,7 @@ needs_types: | |
| hash: ^.*$ | ||
| tags: | ||
| - requirement | ||
| - requirement_excl_process | ||
|
|
||
| # req-Id: tool_req__docs_req_types | ||
| feat_req: | ||
|
|
@@ -261,6 +260,7 @@ needs_types: | |
| hash: ^.*$ | ||
| tags: | ||
| - requirement | ||
| - requirement_excl_process | ||
|
|
||
| # req-Id: tool_req__docs_req_types | ||
| comp_req: | ||
|
|
@@ -286,6 +286,7 @@ needs_types: | |
| hash: ^.*$ | ||
| tags: | ||
| - requirement | ||
| - requirement_excl_process | ||
|
|
||
| # req-Id: tool_req__docs_req_types | ||
| tool_req: | ||
|
|
@@ -315,6 +316,7 @@ needs_types: | |
| parent_has_problem: ^.*$ | ||
| tags: | ||
| - requirement | ||
| - requirement_excl_process | ||
|
|
||
| # req-Id: tool_req__docs_req_types | ||
| aou_req: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not aou? Any other missing?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the list of the requirement we need to cover not all of them I didn't want the new tag name to be more longer or I can exclude aou also in the name: https://eclipse-score.github.io/docs-as-code/pr-140/product/requirements.html#tool_req__docs_req_weak_content
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did add AOU I think in my PR, as I saw it missing. |
||
|
|
@@ -340,7 +342,6 @@ needs_types: | |
| tags: | ||
| - requirement | ||
|
|
||
|
|
||
| # Architecture | ||
| feat_arc_sta: | ||
| title: Feature Architecture Static View | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.