popcodeorg / popcodeorg/popcode
Show warnings if code isn't indented properly
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 191
- 派生
- 143
- 平均合并
- 4 天 11 小时
- 30 天内合并 PR
- 5
描述
It would be great if students were advised on proper indentation in an automated fashion. It would help them get in the habit of formatting code cleanly much sooner, and help them find obvious bugs in their own code.
From our conversation over Slack, it sounds like we could infer what indentation type the code is primarily using, and enforce that everywhere in the code.
Maybe we wouldn't want to block the page from loading when indentation errors are present, but instead add a warning annotation to the line that's improperly indented.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
该 issue 未指定任何文件或测试;首先定位编辑器中负责加载代码和进行行注释的入口点。确定如何推断缩进样式,以及如何在不阻塞页面的情况下显示警告,然后验证缩进不正确的行会被注释,而有效代码不受影响。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100