Add flag to list all supported error codes
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 20.6k
- Forks
- 3.3k
- PR merge metrics
- PR metrics pending
Description
Add flag such as --list-error-codes that prints a list of available error codes and short descriptions. Group error codes so that plugin-related are (can be) shown in separate sections, for clarity.
This would be in addition documenting error codes in the docs. One reason for having this option is the ability to show also error codes added by plugins.
Maybe also show which error codes are enabled at the moment.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing mypy's command-line option handling, error-code registry, and plugin loading paths; the issue names no files or tests. Define how --list-error-codes should group built-in and plugin codes, whether it reports currently enabled codes, and what output marks the feature complete.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100