mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-04-25 18:31:46 -05:00
workflows enhanced linters invocation
- removed symbolic link to a compile command database and used -p parameter instead - added -Qunused-arguments - enhanced/bugfix RegEx
This commit is contained in:
@@ -234,10 +234,10 @@ jobs:
|
||||
run: >-
|
||||
echo 'TINY_CLANG_TIDY_EXECUTED=true' >> $GITHUB_ENV
|
||||
|
||||
ln --symbolic ../TinyORM-builds-cmake/build-clang-cmake-debug/compile_commands.json
|
||||
compile_commands.json
|
||||
|
||||
run-clang-tidy-16 '(?:examples|src|tests)[\\\/]+.+?[\\\/]+(?!mocs_)[\w_\-\+]+\.cpp$'
|
||||
run-clang-tidy-16
|
||||
-extra-arg-before='-Qunused-arguments'
|
||||
-p=../TinyORM-builds-cmake/build-clang-cmake-debug
|
||||
'[\\\/]+(?:examples|src|tests)[\\\/]+.+?[\\\/]+(?!mocs_)[\w\d_\-\+]+\.cpp$'
|
||||
|
||||
# Disabled checks
|
||||
# Level 2 - qstring-allocations
|
||||
@@ -263,6 +263,9 @@ jobs:
|
||||
`# Checks Excluded from level2`\
|
||||
'no-qstring-allocations'
|
||||
|
||||
tools/run-clazy-standalone -checks="$checks" \
|
||||
tools/run-clazy-standalone \
|
||||
-checks="$checks" \
|
||||
-extra-arg-before='-Qunused-arguments' \
|
||||
-header-filter='[\\\/]+(examples|orm|tests|tom)[\\\/]+.+\.(h|hpp)$' \
|
||||
'[\\\/]+(?:examples|src|tests)[\\\/]+.+?[\\\/]+(?!mocs_)[\w_\-\+]+\.cpp$'
|
||||
-p=../TinyORM-builds-cmake/build-clang-cmake-debug \
|
||||
'[\\\/]+(?:examples|src|tests)[\\\/]+.+?[\\\/]+(?!mocs_)[\w\d_\-\+]+\.cpp$'
|
||||
|
||||
@@ -233,10 +233,10 @@ jobs:
|
||||
run: >-
|
||||
echo 'TINY_CLANG_TIDY_EXECUTED=true' >> $GITHUB_ENV
|
||||
|
||||
ln --symbolic ../TinyORM-builds-cmake/build-clang-cmake-debug/compile_commands.json
|
||||
compile_commands.json
|
||||
|
||||
run-clang-tidy-16 '(?:examples|src|tests)[\\\/]+.+?[\\\/]+(?!mocs_)[\w_\-\+]+\.cpp$'
|
||||
run-clang-tidy-16
|
||||
-extra-arg-before='-Qunused-arguments'
|
||||
-p=../TinyORM-builds-cmake/build-clang-cmake-debug
|
||||
'[\\\/]+(?:examples|src|tests)[\\\/]+.+?[\\\/]+(?!mocs_)[\w\d_\-\+]+\.cpp$'
|
||||
|
||||
# Disabled checks
|
||||
# Level 2 - qstring-allocations
|
||||
@@ -262,6 +262,9 @@ jobs:
|
||||
`# Checks Excluded from level2`\
|
||||
'no-qstring-allocations'
|
||||
|
||||
tools/run-clazy-standalone -checks="$checks" \
|
||||
tools/run-clazy-standalone \
|
||||
-checks="$checks" \
|
||||
-extra-arg-before='-Qunused-arguments' \
|
||||
-header-filter='[\\\/]+(examples|orm|tests|tom)[\\\/]+.+\.(h|hpp)$' \
|
||||
'[\\\/]+(?:examples|src|tests)[\\\/]+.+?[\\\/]+(?!mocs_)[\w_\-\+]+\.cpp$'
|
||||
-p=../TinyORM-builds-cmake/build-clang-cmake-debug \
|
||||
'[\\\/]+(?:examples|src|tests)[\\\/]+.+?[\\\/]+(?!mocs_)[\w\d_\-\+]+\.cpp$'
|
||||
|
||||
Reference in New Issue
Block a user