From 839c9ae0a06013e9a95e795cf70df916d4a81d48 Mon Sep 17 00:00:00 2001 From: Matthias Maennich Date: Fri, 19 Apr 2024 14:54:24 +0000 Subject: checkpatch: skip revert commits Those patches are regularly violating the code style but not much can be done about that. Suggested-by: Greg Kroah-Hartman Change-Id: I7a0bfc81895ed69bc3aad91d78cb74cd9977f852 Signed-off-by: Matthias Maennich --- kleaf/impl/checkpatch.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kleaf/impl/checkpatch.sh b/kleaf/impl/checkpatch.sh index 068bd1d..68c6549 100755 --- a/kleaf/impl/checkpatch.sh +++ b/kleaf/impl/checkpatch.sh @@ -138,6 +138,11 @@ if [[ "$SUBJECT" =~ ^UPSTREAM|^BACKPORT|^FROMGIT ]]; then exit 0 fi +if [[ "$SUBJECT" =~ ^Revert ]]; then + echo "Not linting revert patches for "${DIR}". Skipping this check." + exit 0 +fi + # Now run checkpatch.pl on DIR: GIT_SHA1 # Below is the equivalent of build/kernel/static_analysis/checkpatch.sh -- cgit v1.2.3