google / google/codeworld

Add warnings for bad coding patterns

Open
#399 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.