Add warnings for bad coding patterns
Open
discussion
- Dominant language
- Haskell
- Stars
- 1.3k
- Forks
- 201
- PR merge metrics
- No merged PRs in 30d
Description
CodeWorld could add its own warnings to those from the compiler, when it detects bad coding patterns that students often adopt. Some examples:
* Lots of duplicate code
* Lines longer than a certain length
* No spaces around an operator
* Lots of variables with the same name but different numbers after it, like `bird`, `bird1`, `bird2`, etc.
* Nesting that is too deep
This could be a gentle nudge to suggest that there's a better way.
Contributor guide
Assessment
This issue has not been assessed yet.