When a badly formatted todo marker is present in the project, pdd throws an error and stops processing subsequent files. This means that the generation of any rightly formatted puzzles fails.
My proposal is to make this behaviour configurable.
Suggested solution
Add pdd configuration option to handle encounters with badly formatted markers either show a Warning or throw an Error
Introduce the flag to control behaviour errors when a todo marker:
Flag--skip-errors ✅ OR --error-as-warning - Suppress error as warning for badly formatted todo markers
Usage
# should only show warnings. should generate puzzles successfully
$ pdd --skip-errors -f test.xml
# default behaviour
# should show errors. should not generate puzzles
$ pdd -f test.xml
Description
Current behaviour
When a badly formatted todo marker is present in the project,
pdd
throws an error and stops processing subsequent files. This means that the generation of any rightly formatted puzzles fails. My proposal is to make this behaviour configurable.Suggested solution
Add pdd configuration option to handle encounters with badly formatted markers either show a Warning or throw an Error
Introduce the flag to control behaviour errors when a todo marker:
Flag
--skip-errors
✅ OR--error-as-warning
- Suppress error as warning for badly formatted todo markersUsage
For ~/.pdd file
Types of issue