Enable syntax checker sc_the_the, detecting doubled 'the'.

* cfg.mk (false_positives): Enable syntax checker sc_the_the
* build-aux/src-sniff.py (checkers): Avoid false positive with
sc_the_the.

Signed-off-by: James Youngman <jay@gnu.org>
This commit is contained in:
James Youngman 2010-04-02 15:27:35 +01:00
parent 3ec1c93946
commit ff9af635b0
3 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,10 @@
2010-04-02 James Youngman <jay@gnu.org>
Enable syntax checker sc_the_the, detecting doubled 'the'.
* cfg.mk (false_positives): Enable syntax checker sc_the_the
* build-aux/src-sniff.py (checkers): Avoid false positive with
sc_the_the.
Avoid false positives for sc_prohibit_atoi_atof.
* find/util.c (set_option_defaults): Avoid false positive with
sc_prohibit_atoi_atof.

View File

@ -96,7 +96,7 @@ checkers = [
[r'HAVE''_CONFIG_H', "Avoid checking HAVE_CONFIG_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'the *the', "'the"+" the' is probably not deliberate"],
[r'(?<!\w)error \([^_"]*[^_]"[^"]*[a-z]{3}', "untranslated error message"],
[r'^# *if\s+defined *\(', "useless parentheses in '#if defined'"],

2
cfg.mk
View File

@ -29,7 +29,7 @@ skip_defer = sc_program_name \
# False positives I don't have a workaround for yet.
# sc_space_tab: several .xo test output files contain this sequence
# for testing xargs's handling of white space.
false_positives = sc_obsolete_symbols sc_prohibit_cvs_keyword sc_the_the \
false_positives = sc_obsolete_symbols sc_prohibit_cvs_keyword \
sc_two_space_separator_in_usage \
sc_space_tab