-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backend/sdoc: print deprecation warnings when REFS/RELATIONS field is…
… not the last among all fields
- Loading branch information
Showing
14 changed files
with
76 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from strictdoc.core.environment import SDocRuntimeEnvironment | ||
|
||
__version__ = "0.0.44a16" | ||
__version__ = "0.0.44a17" | ||
|
||
|
||
environment = SDocRuntimeEnvironment(__file__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...fs_replaced_with_relations/20_show_warning_when_refs_or_relations_are_not_last/input.sdoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[DOCUMENT] | ||
TITLE: Hello world doc | ||
|
||
[REQUIREMENT] | ||
UID: REQ-1 | ||
STATEMENT: Shall do 1. | ||
|
||
[REQUIREMENT] | ||
UID: REQ-2 | ||
REFS: | ||
- TYPE: Parent | ||
VALUE: REQ-1 | ||
STATEMENT: Shall do 1. |
8 changes: 8 additions & 0 deletions
8
...fs_replaced_with_relations/20_show_warning_when_refs_or_relations_are_not_last/test.itest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
RUN: %strictdoc export %S --output-dir Output | filecheck %s --dump-input=fail | ||
|
||
CHECK: warning: RELATIONS (previously REFS) requirement field should be the last field, after all other fields. See the section "Relations" in the user guide for more details. Correct requirement example: | ||
CHECK: Published: Hello world doc | ||
|
||
RUN: %cat %S/Output/html/index.html | filecheck %s --dump-input=fail --check-prefix CHECK-HTML | ||
CHECK-HTML: Hello world doc | ||
CHECK-HTML: input.sdoc |
20 changes: 20 additions & 0 deletions
20
...replaced_with_relations/21_do_not_show_warning_when_refs_or_relations_are_last/input.sdoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[DOCUMENT] | ||
TITLE: Hello world doc | ||
|
||
[REQUIREMENT] | ||
UID: REQ-1 | ||
STATEMENT: Shall do 1. | ||
|
||
[REQUIREMENT] | ||
UID: REQ-2 | ||
STATEMENT: Shall do 1. | ||
REFS: | ||
- TYPE: Parent | ||
VALUE: REQ-1 | ||
|
||
[REQUIREMENT] | ||
UID: REQ-3 | ||
STATEMENT: Shall do 1. | ||
RELATIONS: | ||
- TYPE: Parent | ||
VALUE: REQ-1 |
8 changes: 8 additions & 0 deletions
8
...replaced_with_relations/21_do_not_show_warning_when_refs_or_relations_are_last/test.itest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
RUN: %strictdoc export %S --output-dir Output | filecheck %s --dump-input=fail | ||
|
||
CHECK-NOT: warning: RELATIONS (previously REFS) requirement field should be the last field | ||
CHECK: Published: Hello world doc | ||
|
||
RUN: %cat %S/Output/html/index.html | filecheck %s --dump-input=fail --check-prefix CHECK-HTML | ||
CHECK-HTML: Hello world doc | ||
CHECK-HTML: input.sdoc |