Relax code style check for NULL
This is fine tuned to allow the string in the last commit to pass this check, but still generally makes sense too.
This commit is contained in:
parent
2a87515660
commit
6a41d8a486
1 changed files with 1 additions and 1 deletions
2
.github/workflows/code_checks.yml
vendored
2
.github/workflows/code_checks.yml
vendored
|
|
@ -93,7 +93,7 @@ jobs:
|
||||||
git fetch --depth=1 origin master
|
git fetch --depth=1 origin master
|
||||||
if git diff origin/master \
|
if git diff origin/master \
|
||||||
':**.h' ':**.cpp' \
|
':**.h' ':**.cpp' \
|
||||||
| grep -E '^\+.*(wxOVERRIDE|wxNOEXCEPT|[^"_@A-Za-z0-9]NULL[^"_A-Za-z0-9])'; then
|
| grep -E '^\+.*(wxOVERRIDE|wxNOEXCEPT|[^"_@A-Za-z0-9]NULL([- ,;()+*/%&=!?]|$))'; then
|
||||||
echo "::error ::Please use C++11 equivalents of the deprecated macros in the new code."
|
echo "::error ::Please use C++11 equivalents of the deprecated macros in the new code."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue