Removed WIP file from linter job

This commit is contained in:
Kevin Dewald 2025-01-22 23:05:52 -08:00
parent 20ae82628b
commit 8ef7310361
2 changed files with 10 additions and 6 deletions

View File

@ -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

View File

@ -4,7 +4,7 @@
# only for files that have changes.
#
# Dry run:
# >./format.sh
# >./format.sh
#
# Apply changes:
# >./format.sh apply
@ -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