From 907848bdd9a48a03e9f59294f3a704de0b078044 Mon Sep 17 00:00:00 2001 From: Aaron Conole Date: Mon, 1 May 2017 16:14:05 -0400 Subject: [PATCH] checkpatch: move the checks to the framework All of the checks are now part of the new 'check' framework. Signed-off-by: Aaron Conole Signed-off-by: Ben Pfaff --- utilities/checkpatch.py | 41 ++++++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py index 30c0a3e07..d22ccc38b 100755 --- a/utilities/checkpatch.py +++ b/utilities/checkpatch.py @@ -177,7 +177,32 @@ checks = [ lambda x: not any([fmt in x for fmt in line_length_blacklist]), 'check': lambda x: line_length_check(x), 'print': - lambda x: print_warning("Line is greater than 79-characters long", x)} + lambda x: print_warning("Line is greater than 79-characters long", x)}, + + {'regex': '$(?