dermot-murphy/CStyleCheck

Embedded C Style Compliance Checker (Barr-C / MISRA-C complementary)

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
configPath to the YAML rule configuration file, relative to the workspace root.nosrc/rules.yml
includeNewline- or space-separated glob patterns for source files to scan. Defaults to source/**/*.c and source/**/*.h.nosource/**/*.c source/**/*.h
excludeNewline- or space-separated glob patterns to exclude from scanning.no""
options-filePath to an options file read via --options-file. Options in the file are applied before any other arguments so explicit inputs always win.no""
definesPath to a project defines file (--defines).no""
aliasesPath to a module alias map file (--aliases).no""
exclusionsPath to a per-file rule exclusion YAML (--exclusions).no""
copyrightPath to a plain-text file containing the copyright block comment template (--copyright). When supplied, every C source file must begin with this block comment (followed by one blank line). The year on the '(C) Copyright YEAR' line may differ from the template.no""
baseline-filePath to a baseline JSON file produced by --write-baseline. Violations present in the baseline are suppressed so CI only fails on new ones.no""
warnings-as-errorsPromote all warnings and info-level messages to errors.nofalse
fail-onMinimum severity level that causes the action to exit with code 1. Accepted values: error | warning | info | never. 'error' �� fail only if there are error-level violations (default). 'warning' — fail if there are errors or warnings. 'info' — fail on any violation. 'never' — always exit 0 (useful for annotation-only steps).noerror
sarif-fileIf set, CStyleCheck also writes a SARIF 2.1.0 file to this path. Intended for upload to GitHub Code Scanning via github/codeql-action/upload-sarif.no""
argsVerbatim extra arguments appended to the cstylecheck command line. Use this as an escape hatch for any flag not exposed as a dedicated input.no""
namedescription
violationsTotal number of violations (all severity levels combined).
errorsNumber of error-level violations.
warningsNumber of warning-level violations.
infoNumber of info-level violations.
sarif-fileAbsolute path to the SARIF output file, if sarif-file input was given.