Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lint

nim-lint for developing

Ref RFC timotheecour/Nim#415

lint items

  • 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: 0 usually 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)

TODO

  • Better messages with filename, line and col number

Usage

Type nim c -r lint.nim.

About

nim-lint for developing

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages