Skip to content

#646: Warning if unknown status is encountered. - #659

Open
redcatbear wants to merge 2 commits into
mainfrom
bug/646_unknown_status_value_silently_ignored
Open

redcatbear wants to merge 2 commits into
mainfrom
bug/646_unknown_status_value_silently_ignored

Conversation

@redcatbear

Copy link
Copy Markdown
Collaborator

Closes #646.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
16.7% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

<groupId>org.itsallcode.openfasttrace</groupId>
<artifactId>openfasttrace</artifactId>
<version>4.12.1</version>
<version>4.12.2</version>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: Should we just write VERSION here so that we don't need to update this every time?

Comment on lines +390 to +392
OFT reports a warning when a Markdown or reStructuredText parser encounters a
`Status:` declaration whose value does not identify a known specification-item
status.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Idea for new feature: add an option to treat all warnings as errors.

Comment on lines +642 to +646
final Level originalLevel = LOGGER.getLevel();
final RecordingLogHandler logHandler = new RecordingLogHandler();
LOGGER.setLevel(Level.WARNING);
LOGGER.addHandler(logHandler);
try

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract Logger setup and RecordingLogHandler into a separate class to allow reusing it.

@github-project-automation github-project-automation Bot moved this from 📫 Backlog to 🔨 In Progress in OpenFastTrace Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 🔨 In Progress

Development

Successfully merging this pull request may close these issues.

Unknown status value is silently ignored and item is treated as approved

2 participants