lint-commits: forbid localhost email, too
This commit is contained in:
parent
52671653e7
commit
ce8e8797bc
1 changed files with 4 additions and 0 deletions
|
@ -36,6 +36,10 @@ do
|
||||||
print "::error title=Commit Lint::" C ": authored by noreply email";
|
print "::error title=Commit Lint::" C ": authored by noreply email";
|
||||||
ret=1;
|
ret=1;
|
||||||
}
|
}
|
||||||
|
/^author .*(localhost|localdomain|[(]none[)])/ && !msg {
|
||||||
|
print "::error title=Commit Lint::" C ": authored by localhost email";
|
||||||
|
ret=1;
|
||||||
|
}
|
||||||
!msg { next }
|
!msg { next }
|
||||||
# 3: long-line-is-banned-except-footnote-like-this-for-url
|
# 3: long-line-is-banned-except-footnote-like-this-for-url
|
||||||
(NF > 2) && (length > 80) {
|
(NF > 2) && (length > 80) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue