diff options
author | James Youngman <jay@gnu.org> | 2007-06-21 23:41:08 +0000 |
---|---|---|
committer | James Youngman <jay@gnu.org> | 2007-06-21 23:41:08 +0000 |
commit | 5a7e83f1d76b7e1a5582ae5c38bb14ff000aaccc (patch) | |
tree | e703130f56a8365f095115d76932130f09bcf565 /build-aux | |
parent | c271e6e8b51a5941aad0574b39463e7c84076f75 (diff) | |
download | findutils-5a7e83f1d76b7e1a5582ae5c38bb14ff000aaccc.tar.gz |
Fixed various lint complaints pointed out by build-aux/src-sniff.py
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/src-sniff.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/src-sniff.py b/build-aux/src-sniff.py index 9c9b7c91..7c75bf73 100644 --- a/build-aux/src-sniff.py +++ b/build-aux/src-sniff.py @@ -17,7 +17,7 @@ LINE_SMELLS_SRC = [ [r'error \(EXIT_SUCCESS',"passing EXIT_SUCCESS to error is confusing"], [r'file[s]ystem', "prefer writing 'file system' to 'filesystem'"], [r'HAVE''_CONFIG_H', "Avoid checking HAVE_CONFIG_H"], - [r'HAVE_FCNTL_H', "Avoid checking HAVE_FCNTL_H"], +# [r'HAVE_FCNTL_H', "Avoid checking HAVE_FCNTL_H"], [r'O_NDELAY', "Avoid using O_NDELAY"], [r'the *the', "'the the' is probably not deliberate"], [r'(?<!\w)error \([^_"]*[^_]"[^"]*[a-z]{3}', "untranslated error message"], @@ -69,8 +69,8 @@ def CheckFirstInclude(filename, lines, fulltext): "%s should be included by most files" % FIRST_INCLUDE) def CheckLineSmells(filename, lines, fulltext): - for smell in COMPILED_LINE_SMELLS: - for line in lines: + for line in lines: + for smell in COMPILED_LINE_SMELLS: match = smell[0].search(line[1]) if match: Problem(filename, '%d: "%s": %s' |