gitlint: exclude long line with co-authored-by
Treat co-authored-by like signed-off-by. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
12cbfcf397
commit
9e87bd7ad6
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ class MaxLineLengthExceptions(LineRule):
|
||||||
def validate(self, line, _commit):
|
def validate(self, line, _commit):
|
||||||
max_length = self.options['line-length'].value
|
max_length = self.options['line-length'].value
|
||||||
urls = re.findall(r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', line)
|
urls = re.findall(r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+', line)
|
||||||
if line.startswith('Signed-off-by'):
|
if line.lower().startswith('signed-off-by') or line.lower().startswith('co-authored-by'):
|
||||||
return
|
return
|
||||||
|
|
||||||
if urls:
|
if urls:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue