version: 2.0
params:
- name: includePaths
value: code
tool_params:
pclint-plus:
lnt_env:
lnt_main: project.lnt
lnt_path: $WORKSPACE/code/.cid
compiler: $WORKSPACE/code/.cid/co-gcc.lnt
clangtidy:
prepareWorkDir:
prepareShellScript:
customizationArgs: "--extra-arg=-isystemexternal/log4cplus/generated-headers/include --extra-arg=-isystembazel-out/k8-fastbuild/bin/external/log4cplus/generated-headers/include"
compilerCommandsPath: $WORKSPACE/code/CI/compile_commands.json
binscope:
scan_dirs: output
relative_dir: output
exclude_dirs: output/third_libs
secsolar:
compile_script: sh .cid/build.sh
steps:
pre_codecheck:
- checkout
- sh:
command: |
cd $WORKSPACE/code/.cid #进入编译脚本build.sh目录
sh /opt/buildtools/PclintClangtidyToolBox/bin/all.sh #执行all.sh自动生成编译数据库和lnt文件 如果自定义执行机all.sh路径已实际路径为准
effect_tool: pclint-plus