HACKER Q&A
📣 peter-m80

eslint equivalent for C


What is the "industry standard" tool for linting and enforce code style in C?


  👤 thesuperbigfrog Accepted Answer ✓
"lint" and "indent" were the originals.

https://en.wikipedia.org/wiki/List_of_tools_for_static_code_... gives links to modern static analysis tools.


👤 tacostakohashi
clang-tidy / clang-format

to a large extent, lint came from an era when compilers were primitive, these days you should mostly look towards picking and choosing the appropriate compiler warnings.