Is it possible to use cpp-linter-action with PlatformIO? #137
-
I tried implementing the GitHub Action in a repository using PlatformIO, but it has issues finding libraries provided by the package manager.
QuestionPlatformIO has support for linting but I wanted to have a better CI using cpp-linter-action. Would it be possible to integrate those systems? If not, could cpp-lint support packages / build from PlatformIO with proper configuration? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It is, but you would need a way of indicating where the Arduino Core (or PlatformIO BSP) sources exists. Typically this would be done with a compilation Assuming that nothing in PIO is installed globally (a practice that is strongly discouraged now), you might be able to point clang-tidy to somewhere in the git-ignored .pio folder (build env). PS: I've been using cpp-linter to run clang-format on a majority of the nRF24 repos (Arduino-based C++ libs) since I joined the cpp-linter org. |
Beta Was this translation helpful? Give feedback.
I think PIO supports building a compilation database. (see PIO docs)
In the past, long ago, I tried using Arduino CLI to generate a compilation database, but it didn't work at the time. I'm not sure if the bugs have been resolved since then.