diff options
author | Cody Peter Mello <cody.mello@joyent.com> | 2016-04-09 23:16:01 +0000 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2016-06-20 21:42:21 -0700 |
commit | 71af3be340c57171837478555e2eb0d496318cfc (patch) | |
tree | 97cc3de2fcfbbd6a004ca6ccb1c54ba57e67690f /usr/src/tools/scripts/git-pbchk.py | |
parent | b13c8383ad6f847486face2fe8df9f0f50f068ed (diff) | |
download | illumos-joyent-71af3be340c57171837478555e2eb0d496318cfc.tar.gz |
7040 Detect common spelling errors in manual pages
Reviewed by: Marcel Telka <marcel@telka.sk>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/tools/scripts/git-pbchk.py')
-rw-r--r-- | usr/src/tools/scripts/git-pbchk.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/tools/scripts/git-pbchk.py b/usr/src/tools/scripts/git-pbchk.py index 92303f967f..8dea5a8785 100644 --- a/usr/src/tools/scripts/git-pbchk.py +++ b/usr/src/tools/scripts/git-pbchk.py @@ -48,7 +48,7 @@ sys.path.insert(2, os.path.join(os.path.dirname(__file__), "..")) from onbld.Scm import Ignore from onbld.Checks import Comments, Copyright, CStyle, HdrChk -from onbld.Checks import JStyle, Keywords, ManLint, Mapfile +from onbld.Checks import JStyle, Keywords, ManLint, Mapfile, SpellCheck class GitError(Exception): @@ -291,11 +291,12 @@ def jstyle(root, parent, flist, output): def manlint(root, parent, flist, output): ret = 0 - output.write("Man page format:\n") + output.write("Man page format/spelling:\n") ManfileRE = re.compile(r'.*\.[0-9][a-z]*$', re.IGNORECASE) for f in flist(lambda x: ManfileRE.match(x)): fh = open(f, 'r') ret |= ManLint.manlint(fh, output=output, picky=True) + ret |= SpellCheck.spellcheck(fh, output=output) fh.close() return ret |