Skip to content

Warnings when validating documents with headings #706

@fjpse1

Description

@fjpse1

I have created a requirements document with headings (level ends with zero and normative is false). The headings have the text property empty, but header property not. For example, this is the content of RSTPS-0168.yml

active: true
derived: false
header: |
  Introduction
level: 1.0
links: []
normative: false
ref: ''
reviewed: jSEePfMc7TdjZaqommihYHtcPgHjbhYx2KP6Ed9iga4=
text: ''

When I execute doorstop to validate the requirements I got a lot of warnings related with the headings:

building tree...
loading documents...
validating items...
WARNING: RSTPS: RSTPS-0168: no text
...
...

In my opinion, if a requirement is a heading, instead of checking if the text is empty, it should be checked if the header is empty (or both, text and heder).

What do you think about it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions