21 afterheader = commitheader + r"(?!#)" |
21 afterheader = commitheader + r"(?!#)" |
22 beforepatch = afterheader + r"(?!\n(?!@@))" |
22 beforepatch = afterheader + r"(?!\n(?!@@))" |
23 |
23 |
24 errors = [ |
24 errors = [ |
25 (beforepatch + r".*[(]bc[)]", "(BC) needs to be uppercase"), |
25 (beforepatch + r".*[(]bc[)]", "(BC) needs to be uppercase"), |
26 (beforepatch + r".*[(]issue \d\d\d", "no space allowed between issue and number"), |
26 (beforepatch + r".*[(]issue \d\d\d", |
|
27 "no space allowed between issue and number"), |
27 (beforepatch + r".*[(]bug(\d|\s)", "use (issueDDDD) instead of bug"), |
28 (beforepatch + r".*[(]bug(\d|\s)", "use (issueDDDD) instead of bug"), |
28 (commitheader + r"# User [^@\n]+\n", "username is not an email address"), |
29 (commitheader + r"# User [^@\n]+\n", "username is not an email address"), |
29 (commitheader + r"(?!merge with )[^#]\S+[^:] ", |
30 (commitheader + r"(?!merge with )[^#]\S+[^:] ", |
30 "summary line doesn't start with 'topic: '"), |
31 "summary line doesn't start with 'topic: '"), |
31 (afterheader + r"[A-Z][a-z]\S+", "don't capitalize summary lines"), |
32 (afterheader + r"[A-Z][a-z]\S+", "don't capitalize summary lines"), |