File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -52,3 +52,4 @@ stages:
52
52
- template : templates/build.yaml
53
53
parameters :
54
54
srcFolder : ' SysmonForLinux'
55
+ runStaticAnalysis : true
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ parameters:
2
2
- name : srcFolder
3
3
type : string
4
4
default : ' '
5
+ - name : runStaticAnalysis
6
+ type : boolean
5
7
6
8
steps :
7
9
- script : |
@@ -25,7 +27,11 @@ steps:
25
27
./diag_script.sh&
26
28
fi
27
29
# -------------------------- TEMP DIAG END ----------------------------------------------------
28
- rm -rf build && mkdir build && cd build
29
- scan-build cmake ..
30
- scan-build -v --status-bugs -o verifier_result --exclude ../test --exclude openssl -disable-checker cplusplus.NewDelete,cplusplus.NewDeleteLeaks make
30
+ if [ ${{ parameters.runStaticAnalysis }} == True ]; then
31
+ rm -rf build && mkdir build && cd build
32
+ scan-build cmake ..
33
+ scan-build -v --status-bugs -o verifier_result --exclude ../test --exclude openssl -disable-checker cplusplus.NewDelete,cplusplus.NewDeleteLeaks make
34
+ else
35
+ echo "Skipping static code analysis."
36
+ fi
31
37
displayName : " Static analysis of Sysmon source code"
You can’t perform that action at this time.
0 commit comments