Skip to content

Conversation

@cmoesel
Copy link
Member

@cmoesel cmoesel commented Dec 8, 2025

Description: This PR allows authors to add a sushi-ignoreErrors.txt file to the root of their project (or input sub-directory) specifying errors that should be ignored. It follows the same file format as sushi-ignoreWarnings.txt:

Errors will be ignored if they completely match the contents of any line of the file (one line per warning, case-sensitive). Regular expressions can also be specified, one per line, indicated by starting and ending the line with /.

In addition, SUSHI will now indicate the number of ignored errors and/or warnings in its summary table (if applicable).

This feature was discussed on Zulip here: #IG creation > Cardinality of text element in resources.

Testing Instructions:

  1. Create a simple SUSHI project with one or more errors (for example, missing required elements).
  2. Run SUSHI and confirm that it logs these errors.
  3. Add a sushi-ignoreErrors.txt file to the root of the project or in the input folder.
  4. Add one or more lines to the file matching the error as indicated above.
  5. Run SUSHI again and confirm that the errors were not logged and that the summary indicates the number of ignored errors.

Related Issue: N/A

@cmoesel cmoesel requested a review from jduteau December 8, 2025 17:44
@cmoesel cmoesel merged commit 01f6705 into master Dec 27, 2025
14 checks passed
@cmoesel cmoesel deleted the ignore-errors branch December 27, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants