Mercurial > public > mercurial-scm > hg
diff contrib/check-code.py @ 14549:48ec0763afbb
check-code: catch misspellings of descendant
This word is fairly common in Mercurial, and easy to misspell.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 07 Jun 2011 17:02:54 -0500 |
parents | 1ffeeb91c55d |
children | 6c7283faa967 |
line wrap: on
line diff
--- a/contrib/check-code.py Tue Jun 07 16:02:51 2011 -0500 +++ b/contrib/check-code.py Tue Jun 07 17:02:54 2011 -0500 @@ -177,6 +177,7 @@ "always assign an opened file to a variable, and close it afterwards"), (r'[\s\(](open|file)\([^)]*\)\.', "always assign an opened file to a variable, and close it afterwards"), + (r'(?i)descendent', "the proper spelling is descendAnt"), ], # warnings [