From 78ad6a09564e3b987b4673ef02c275c2662357e9 Mon Sep 17 00:00:00 2001 From: Evan Herman Date: Sat, 1 Apr 2023 03:00:58 -0400 Subject: [PATCH] Add phpcs exclusion for PHP8+ --- bin/build.sh | 4 ++++ bin/update-submodules.sh | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/build.sh b/bin/build.sh index 815099c..ae29903 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -24,6 +24,10 @@ rm -f build/plugin-check/**/.DS_Store # Remove the bash check in the plugin scan (doesn't work locally for me) sed -i '8,14d' 'build/plugin-check/bin/plugin-scan/plugin-scan.sh' +# Add an exclusion for PHP 8+ to the plugin-scan phpcs.xml file at line 32 +sed -i '32i\ +' bin/plugin-scan/plugin-scan.sh.xml + chmod +x build/plugin-check/bin/plugin-scan/plugin-scan.sh chmod +x build/plugin-check/bin/plugin-scan/plugin-scan.sh.ignore chmod +x build/plugin-check/bin/plugin-scan/plugin-scan.sh.xml diff --git a/bin/update-submodules.sh b/bin/update-submodules.sh index 6f53eec..ef75413 100755 --- a/bin/update-submodules.sh +++ b/bin/update-submodules.sh @@ -7,4 +7,8 @@ chmod +x bin/plugin-scan/plugin-scan.sh.ignore chmod +x bin/plugin-scan/plugin-scan.sh.xml # Remove the bash check in the plugin scan (doesn't work locally for me) -sed -i '8,14d' 'bin/plugin-scan/plugin-scan.sh' \ No newline at end of file +sed -i '8,14d' 'bin/plugin-scan/plugin-scan.sh' + +# Add an exclusion for PHP 8+ to the plugin-scan phpcs.xml file at line 32 +sed -i '32i\ +' bin/plugin-scan/plugin-scan.sh.xml \ No newline at end of file