Add flag to list all supported error codes
未关闭
还没有人认领这个 Issue。
feature
priority-1-normal
topic-usability
- 主要语言
- Python
- 星标
- 20.6k
- 派生
- 3.3k
- PR 合并指标
- PR 指标待抓取
描述
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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪 mypy 的命令行选项处理、错误代码注册表和插件加载路径;issue 未指定任何文件或测试。明确 --list-error-codes 应如何对内置代码和插件代码进行分组、是否报告当前已启用的代码,以及什么输出表示该功能已完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- cli
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100