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:
Vadim Zeitlin 2023-10-01 17:02:25 +02:00
parent 2a87515660
commit 6a41d8a486

View file

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