diff --git a/.checkpatch.conf b/.checkpatch.conf index a19adfd2ea875bede3257bd792f97f2c868127f5..fc749538116d74f967a18e228e8332dc858ad33a 100644 --- a/.checkpatch.conf +++ b/.checkpatch.conf @@ -3,3 +3,4 @@ --ignore NEW_TYPEDEFS --ignore FILE_PATH_CHANGES --ignore OBSOLETE +--ignore COMMIT_SUBJECT_LONG_LINE diff --git a/support/scripts/checkpatch.pl b/support/scripts/checkpatch.pl index 66c60825341101236b37c581de119e64d1c4ee96..8ed816be3bf9957b576fc5ef4185bcc94c0c3e9c 100755 --- a/support/scripts/checkpatch.pl +++ b/support/scripts/checkpatch.pl @@ -2398,6 +2398,11 @@ sub process { $found_file = 1; } +#ignore files which ends of .txt/.md, or named 'LICENSE' + if (($realfile =~ /\.txt$/) || ($realfile =~ /\.md$/) || ($realfile =~ /^LICENSE$/)) { + next; + } + #make up the handle for any error we report on this line if ($showfile) { $prefix = "$realfile:$realline: "