mirror of
https://github.com/OpenBluetoothToolbox/SimpleBLE
synced 2025-05-09 05:51:13 +08:00
Removed WIP file from linter job
This commit is contained in:
parent
20ae82628b
commit
8ef7310361
4
.github/workflows/ci_lint.yml
vendored
4
.github/workflows/ci_lint.yml
vendored
@ -34,8 +34,8 @@ jobs:
|
||||
env:
|
||||
DEBIAN_FRONTEND: noninteractive
|
||||
- name: Run Cppcheck
|
||||
# TODO: Fix the suppressed file.
|
||||
run: cppcheck --suppress=objectIndex:simpleble/src/backends/windows/Utils.cpp --std=c++17 --error-exitcode=1 --xml --xml-version=2 --force . 2>cppcheck_res.xml
|
||||
# TODO: Fix the suppressed files.
|
||||
run: cppcheck --suppress=objectIndex:simpleble/src/backends/windows/Utils.cpp --suppress=objectIndex:simpledroidble/simpledroidble/src/main/cpp/simpleble_android.cpp --std=c++17 --error-exitcode=1 --xml --xml-version=2 --force . 2>cppcheck_res.xml
|
||||
- name: Generate Report
|
||||
if: ${{ failure() }}
|
||||
run: cppcheck-htmlreport --title=SimpleBLE --file=cppcheck_res.xml --report-dir=report
|
||||
|
@ -12,9 +12,9 @@
|
||||
|
||||
CLANG_FORMAT="clang-format"
|
||||
|
||||
CLANG_FORMAT_VERSION=$($CLANG_FORMAT --version | sed 's/.*version \([1-9][0-9]*\)\..*/\1/')
|
||||
if [ "$CLANG_FORMAT_VERSION" != "14" ]; then
|
||||
echo "CI/CD uses clang-format version 14. Local version is $CLANG_FORMAT_VERSION"
|
||||
# Check if clang-format exists
|
||||
if ! command -v $CLANG_FORMAT &> /dev/null; then
|
||||
echo "clang-format is required but not installed. Please install it and run the script again."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -24,6 +24,10 @@ if ! command -v colordiff &> /dev/null; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CLANG_FORMAT_VERSION=$($CLANG_FORMAT --version | sed 's/.*version \([1-9][0-9]*\)\..*/\1/')
|
||||
if [ "$CLANG_FORMAT_VERSION" != "14" ]; then
|
||||
echo "CI/CD uses clang-format version 14. Local version is $CLANG_FORMAT_VERSION"
|
||||
fi
|
||||
|
||||
APPLY=false
|
||||
# Check if the 'apply' argument is provided
|
||||
|
Loading…
x
Reference in New Issue
Block a user