Current problem
In #5953, some messages do not follow the generic template with good code and bad code or can't be triggered easily. Among them:
internal errors
configuration errors
Code that require multiple examples
There already are multiple example mixed in the existing files.
Messages that depend on multiple file or dependency to trigger
other
Desired solution
We need to create templates for those message so we can generate the proper skeleton for them.
- For internal errors, probably only a message stating "You should never encounter this one, please open an issue if you do"
- For configuration errors a bad.toml and good.toml with some tests close to what we do for good.py / bad.py (maybe running on a dummy empty file)
- For code that require multiple examples, handle multiple example more gracefully than right now (we just add a longer example with multiple part)
Additional context
The Sphinx extension that generates these pages needs to be modified see #5953 (comment)
Current problem
In #5953, some messages do not follow the generic template with good code and bad code or can't be triggered easily. Among them:
internal errors
configuration errors
Code that require multiple examples
There already are multiple example mixed in the existing files.
A <= message-symbol < D#9006Messages that depend on multiple file or dependency to trigger
cyclic-import#8322other
Desired solution
We need to create templates for those message so we can generate the proper skeleton for them.
Additional context
The Sphinx extension that generates these pages needs to be modified see #5953 (comment)