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

Inconsistent parsing of tags #423

Open
kaklakariada opened this issue Jul 6, 2024 · 0 comments
Open

Inconsistent parsing of tags #423

kaklakariada opened this issue Jul 6, 2024 · 0 comments
Labels

Comments

@kaklakariada
Copy link
Contributor

kaklakariada commented Jul 6, 2024

Description

OFT parsing of tags is inconsistent as discovered by @RobertZickler in #419.

Steps to Reproduce

Create requirements in a Markdown document with the following content:

Tags: täg
Tags: -tag
Tags:
* täg
* -tag
* _

OFT rejects / ignores tags with forbidden characters when when specified in a single line, but when specifying tags in an itemized list, all characters are allowed.

Expected behavior

  • OFT handles tags consistently OFT rejects tags with special characters even in an itemized list
  • Documentation explicitly explains allowed characters for tags.
  • OFT must reject tag _ because it conflicts with the special parameter --wanted-tags _

Background

  • Tags must not contain special characters to avoid problems parsing them on the command line, when a tag starts with a dash, e.g. -tag.
  • Underscore _ is a wildcard for CLI argument --wanted-tags
@github-project-automation github-project-automation bot moved this to 📫 Backlog in OpenFastTrace Jul 6, 2024
kaklakariada added a commit that referenced this issue Jul 6, 2024
* #419 Fix inconsistencies in documentation and error messages

* #419: Add tests for inconsistent tag parsing, see #423

---------

Co-authored-by: kaklakariada <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📫 Backlog
Development

No branches or pull requests

1 participant