diff options
author | Georg Brandl <georg@python.org> | 2014-04-15 07:50:20 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-04-15 07:50:20 +0200 |
commit | a2278e738d2c657d8002c2e443f11907416c8001 (patch) | |
tree | 318e51eed1f1813b1ee6a6ddecdf3a102a78585d /scripts | |
parent | 28a541c0709838b31ebeb2581db6f30fa5ba1f6c (diff) | |
download | pygments-a2278e738d2c657d8002c2e443f11907416c8001.tar.gz |
Dont check .html files anymore now that they are generated by Sphinx.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/check_sources.py | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/scripts/check_sources.py b/scripts/check_sources.py index 71aff299..94c2c15d 100755 --- a/scripts/check_sources.py +++ b/scripts/check_sources.py @@ -145,29 +145,6 @@ def check_fileheader(fn, lines): yield 0, "no correct copyright info" -@checker('.py', '.html', '.js') -def check_whitespace_and_spelling(fn, lines): - for lno, line in enumerate(lines): - if "\t" in line: - yield lno+1, "OMG TABS!!!1 " - if line[:-1].rstrip(' \t') != line[:-1]: - yield lno+1, "trailing whitespace" - for word in misspellings: - if word in line and 'ALLOW-MISSPELLING' not in line: - yield lno+1, '"%s" used' % word - - -bad_tags = ('<b>', '<i>', '<u>', '<s>', '<strike>' - '<center>', '<big>', '<small>', '<font') - -@checker('.html') -def check_xhtml(fn, lines): - for lno, line in enumerate(lines): - for bad_tag in bad_tags: - if bad_tag in line: - yield lno+1, "used " + bad_tag - - def main(argv): try: gopts, args = getopt.getopt(argv[1:], "vi:") |