Switch code style check to enforcement mode

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2022-12-09 12:23:35 +01:00
parent 449bd8303e
commit c848d226bf

View file

@ -3741,20 +3741,12 @@ support_test_psa_compliance () {
[ "$ver_major" -eq 3 ] && [ "$ver_minor" -ge 10 ]
}
component_test_corrected_code_style () {
./scripts/code_style.py --fix
msg "build: make, default config (out-of-box), corrected code style"
make
msg "test: main suites make, default config (out-of-box), corrected code style"
make test
# Clean up code-style corrections
git checkout -- .
component_check_code_style () {
msg "Check C code style"
./scripts/code_style.py
}
support_test_corrected_code_style() {
support_check_code_style() {
case $(uncrustify --version) in
*0.75.1*) true;;
*) false;;