contrib/check-commit
changeset 40952 811f772b44aa
parent 40308 47084b5ffd80
child 41539 45a4789d3ff2
equal deleted inserted replaced
40951:e993a86cfcb8 40952:811f772b44aa
    32     (beforepatch + r".*[(]bug(\d|\s)", "use (issueDDDD) instead of bug"),
    32     (beforepatch + r".*[(]bug(\d|\s)", "use (issueDDDD) instead of bug"),
    33     (commitheader + r"# User [^@\n]+\n", "username is not an email address"),
    33     (commitheader + r"# User [^@\n]+\n", "username is not an email address"),
    34     (commitheader + r"(?!merge with )[^#]\S+[^:] ",
    34     (commitheader + r"(?!merge with )[^#]\S+[^:] ",
    35      "summary line doesn't start with 'topic: '"),
    35      "summary line doesn't start with 'topic: '"),
    36     (afterheader + r"[A-Z][a-z]\S+", "don't capitalize summary lines"),
    36     (afterheader + r"[A-Z][a-z]\S+", "don't capitalize summary lines"),
    37     (afterheader + r"[^\n]*: *[A-Z][a-z]\S+", "don't capitalize summary lines"),
    37     (afterheader + r"^\S+: *[A-Z][a-z]\S+", "don't capitalize summary lines"),
    38     (afterheader + r"\S*[^A-Za-z0-9-_]\S*: ",
    38     (afterheader + r"\S*[^A-Za-z0-9-_]\S*: ",
    39      "summary keyword should be most user-relevant one-word command or topic"),
    39      "summary keyword should be most user-relevant one-word command or topic"),
    40     (afterheader + r".*\.\s*\n", "don't add trailing period on summary line"),
    40     (afterheader + r".*\.\s*\n", "don't add trailing period on summary line"),
    41     (afterheader + r".{79,}", "summary line too long (limit is 78)"),
    41     (afterheader + r".{79,}", "summary line too long (limit is 78)"),
    42     # Forbid "_" in function name.
    42     # Forbid "_" in function name.