Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/ci/run-static-analysis.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / ci / run-static-analysis.sh` 36 lines ยท 551 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Perform various static code analysis checks 4 # 5 6 . ${0%/*}/lib.sh 7 8 make coccicheck 9 10 set +x 11 12 fail= 13 for cocci_patch in tools/coccinelle/*.patch 14 do 15 if test -s "$cocci_patch" 16 then 17 echo "$(tput setaf 1)Coccinelle suggests the following changes in '$cocci_patch':$(tput sgr0)" 18 cat "$cocci_patch" 19 fail=UnfortunatelyYes 20 fi 21 done 22 23 if test -n "$fail" 24 then 25 echo "$(tput setaf 1)error: Coccinelle suggested some changes$(tput sgr0)" 26 exit 1 27 fi 28 29 make check-headers || 30 exit 1 31 32 make check-pot 33 34 ${0%/*}/check-unsafe-assertions.sh 35 36 save_good_tree