diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ac05488c..070b0056e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,15 +40,6 @@ py-sh-static: script: - .gitlab-ci/static_code_analysis.sh -# coding style check -clang-format-static: - stage: first - <<: *only-default - before_script: - - apk -q add clang git - script: - - .gitlab-ci/static_clang-format.sh - # aports checks (generic) aports-static: stage: first diff --git a/.gitlab-ci/static_clang-format.sh b/.gitlab-ci/static_clang-format.sh deleted file mode 100755 index 2c0017e37..000000000 --- a/.gitlab-ci/static_clang-format.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -set -e - -clang-format -i $(find . -name "*.c") - -git diff > differences.patch - -if [ -s differences.patch ]; then - echo "C-Code formatting check failed!" - echo "Please make sure, the code is formatted properly!" - echo "Run:" - echo ' clang-format -i $(find . -name "*.c")' - echo - cat differences.patch - echo - rm differences.patch - exit 1 -else - echo "C-Code formatting check is sucessful!" - exit 0 -fi