nim-lint for developing
Ref RFC timotheecour/Nim#415
- code block => runnableExamples
- proc + noSideEffect => func
- assert in a test file => doAssert
- isMainModule in stdlib => recommend moving to tests/stdlib/tfoo.nim
- double backticks => single backticks
- capitalize the fist letter
- lots of testament specific checks (eg
exitcode: 0usually useless) - etc, countless things that would be best done as a tool instead of relying on every reviewer to check all of those in every PR (plus for making it easier to improve stdlib + third party projects)
- Better messages with filename, line and col number
Type nim c -r lint.nim.