This runs a simple style checker on a directory containing C and/or C++ code.
Note
This is not a complex style check; it only catches basic issues by design.
Example usage:
- uses: UoMResearchIT/actions/run-c-style-check@v1.2.3
with:
base-dir: srcImportant
Only supported on Ubuntu runners.
-
base-dirThe name of the base directory containing the sources to check. Required.
Example:
src -
file-patternWhat files to process. This is a regular expression to pass to
egrep. Optional.Default:
.c$|.h$|.cpp$|.hpp$(C and C++ files following ordinary conventions) -
profileWhich profile to use. Optional.
Two current profiles are supported:
std(the default profile)with-asm(for code that makes use of inline assembly)
-
optionsExtra options to pass to the tool
vera++. Optional.
No options by default. -
skip-dir:The name of a subdirectory of the
base-dirthat contains code that should be skipped. Optional.Example:
generated-code
None.
No special permissions required.