|
12 | 12 | - '2.*' |
13 | 13 | pull_request: |
14 | 14 |
|
| 15 | +concurrency: |
| 16 | + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 17 | + cancel-in-progress: true |
| 18 | + |
15 | 19 | permissions: |
16 | 20 | contents: read |
17 | 21 |
|
@@ -427,24 +431,24 @@ jobs: |
427 | 431 | pushd addons/test |
428 | 432 | # We'll force C89 standard to enable an additional verification for |
429 | 433 | # rules 5.4 and 5.5 which have standard-dependent options. |
430 | | - ../../cppcheck --dump -DDUMMY --suppress=uninitvar --inline-suppr misra/misra-test.c --std=c89 --platform=unix64 |
| 434 | + ../../cppcheck --dump -DDUMMY --suppress=uninitvar --inline-suppr misra/misra-test.c --std=c89 --platform=unix64 |
431 | 435 | python3 ../misra.py -verify misra/misra-test.c.dump |
432 | 436 | # Test slight MISRA differences in C11 standard |
433 | 437 | ../../cppcheck --dump -DDUMMY --suppress=uninitvar --inline-suppr misra/misra-test-c11.c --std=c11 --platform=unix64 |
434 | 438 | python3 ../misra.py -verify misra/misra-test-c11.c.dump |
435 | 439 | # TODO: do we need to verify something here? |
436 | 440 | ../../cppcheck --dump -DDUMMY --suppress=uninitvar --suppress=uninitStructMember --std=c89 misra/misra-test.h |
437 | | - ../../cppcheck --dump misra/misra-test.cpp |
| 441 | + ../../cppcheck --dump misra/misra-test.cpp |
438 | 442 | python3 ../misra.py -verify misra/misra-test.cpp.dump |
439 | 443 | python3 ../misra.py --rule-texts=misra/misra2012_rules_dummy_ascii.txt -verify misra/misra-test.cpp.dump |
440 | 444 | python3 ../misra.py --rule-texts=misra/misra2012_rules_dummy_utf8.txt -verify misra/misra-test.cpp.dump |
441 | 445 | python3 ../misra.py --rule-texts=misra/misra2012_rules_dummy_windows1250.txt -verify misra/misra-test.cpp.dump |
442 | 446 | ../../cppcheck --addon=misra --enable=style --platform=avr8 --error-exitcode=1 misra/misra-test-avr8.c |
443 | | - ../../cppcheck --dump misc-test.cpp |
| 447 | + ../../cppcheck --dump misc-test.cpp |
444 | 448 | python3 ../misc.py -verify misc-test.cpp.dump |
445 | | - ../../cppcheck --dump naming_test.c |
| 449 | + ../../cppcheck --dump naming_test.c |
446 | 450 | python3 ../naming.py --var='[a-z].*' --function='[a-z].*' naming_test.c.dump |
447 | | - ../../cppcheck --dump naming_test.cpp |
| 451 | + ../../cppcheck --dump naming_test.cpp |
448 | 452 | python3 ../naming.py --var='[a-z].*' --function='[a-z].*' naming_test.cpp.dump |
449 | 453 |
|
450 | 454 | # TODO: run with "-n auto" when misra_test.py can be run in parallel |
@@ -525,14 +529,14 @@ jobs: |
525 | 529 | selfcheck_options="-q -j$(nproc) --std=c++11 --template=selfcheck --showtime=file-total -D__GNUC__ --error-exitcode=1 --inline-suppr --suppressions-list=.selfcheck_suppressions --library=gnu --inconclusive --enable=style,performance,portability,warning,missingInclude --exception-handling --debug-warnings --check-level=exhaustive" |
526 | 530 | cppcheck_options="-D__CPPCHECK__ -DCHECK_INTERNAL -DHAVE_RULES --library=cppcheck-lib -Ilib -Iexternals/simplecpp/ -Iexternals/tinyxml2" |
527 | 531 | ec=0 |
528 | | - |
529 | | - # TODO: add --check-config |
530 | | - |
| 532 | +
|
| 533 | + # TODO: add --check-config |
| 534 | +
|
531 | 535 | # early exit |
532 | 536 | if [ $ec -eq 1 ]; then |
533 | 537 | exit $ec |
534 | 538 | fi |
535 | | - |
| 539 | +
|
536 | 540 | # self check externals |
537 | 541 | ./cppcheck $selfcheck_options externals || ec=1 |
538 | 542 | # self check lib/cli |
|
0 commit comments