arduino-lint is a command line tool that checks for common problems in Arduino projects:
- Sketches
- Libraries
For usage instructions, see the documentation
There is a GitHub Actions action that makes it easy to use arduino-lint` in your CI workflows!
See https://github.com/arduino/arduino-lint-action for more information.