Skip to content

[Discussion] Linting the RTS code

While looking at @bgamari's commment on !5119 (comment 334267) I realised we could try and automate the detection of bad citizens in our RTS C code. Tools like cpplint or oclint exist and could be used to warn us about those things. This feels like a better solution than having to re-define those functions like this:

#define usleep(_) #pragma error("NO!")

Candidates for exclusion could be

  • usleep
  • assert (in favour of ASSERT)
Edited by Hécate Kleidukos
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information