SysTutorials

Linux Manual Pages › Section 1

csbuild(1)

NAME

csbuild – tool for plugging static analyzers into the build process

DESCRIPTION

usage: csbuild [-h] -c BUILD_CMD [-g GIT_COMMIT_RANGE] [–git-bisect]

[–added-exit-code ADDED_EXIT_CODE] [–base-fail-exit-code BASE_FAIL_EXIT_CODE] [–print-current] [–no-print-current] [–print-added] [–no-print-added] [–print-fixed] [–no-print-fixed] [–clean] [–no-clean] [–cswrap-timeout CSWRAP_TIMEOUT] [–color] [–no-color] [–gen-travis-yml] [–install INSTALL] [–prep-cmd PREP_CMD] [-w GCC_WARNING_LEVEL] [-U EMBED_CONTEXT] [–version]

optional arguments:

-h, –help
show this help message and exit
-c BUILD_CMD, –build-cmd BUILD_CMD
shell command used to build the sources (runs in $PWD)
-g GIT_COMMIT_RANGE, –git-commit-range GIT_COMMIT_RANGE
range of git revisions for a differential scan
–git-bisect
if a new defect is added, use git-bisect to identify the cause WARNING: The given command must (re)compile all sources for this option to work!
–added-exit-code ADDED_EXIT_CODE
exit code to return if there is any defect added in the new version
–base-fail-exit-code BASE_FAIL_EXIT_CODE
exit code to return if the base scan fails
–print-current
print all defects in the current version (default unless -g is given) WARNING: The given command must (re)compile all sources for this option to work!
–no-print-current
disables –print-current
–print-added
print defects added in the new version (default if -g is given)
–no-print-added
disables –print-added
–print-fixed
print defects fixed in the new version WARNING: The given command must (re)compile all sources for this option to work!
–no-print-fixed
disables –print-fixed
–clean
clean the temporary directory with results on exit (default)
–no-clean
disables –clean
–cswrap-timeout CSWRAP_TIMEOUT
maximal amount of time taken by analysis of a single module [s]
–color
use colorized console output (default if connected to a tty)
–no-color
disables –color
–gen-travis-yml
generate the .travis.yml file for Travis CI (requires –install)
–install INSTALL
space-separated list of packages to install with –gen-travis-yml
–prep-cmd PREP_CMD
shell command to run before the build (runs in $PWD)
-w GCC_WARNING_LEVEL, –gcc-warning-level GCC_WARNING_LEVEL
Adjust GCC warning level. -w0 means no additional warnings, -w1 appends -Wall and -Wextra, and -w2 enables some other useful warnings (default).
-U EMBED_CONTEXT, –embed-context EMBED_CONTEXT
embed a number of lines of context from the source file for the key event (defaults to 3).
–version
print the version of csbuild and exit