Bazel Checkers Support

Viewed 1727

What options do Bazel provide for creating new or extending existing targets that call C/C++-code checkers such as

  • qac
  • cppcheck
  • iwyu

?

Do I need to use a genrule or is there some other target rule for that?

Is https://bazel.build/versions/master/docs/be/extra-actions.html my only viable choice here?

In security critical software industries, such as aviation and automotive, it's very common to use the results of these calls to collect so called "metric reports".

In these cases, calls to such linters must have outputs that are further processed by the build actions of these metric report collectors. In such cases, I cannot find a useful way of reusing Bazel's "extra-actions". Ideas any one?

1 Answers
Related