[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Findutils-patches] [PATCH 13/19] Enable syntax checker sc_the_the, dete
From: |
James Youngman |
Subject: |
[Findutils-patches] [PATCH 13/19] Enable syntax checker sc_the_the, detecting doubled 'the'. |
Date: |
Fri, 2 Apr 2010 23:47:13 +0100 |
* 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 <address@hidden>
---
ChangeLog | 5 +++++
build-aux/src-sniff.py | 2 +-
cfg.mk | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a5a0fd0..48b7e14 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2010-04-02 James Youngman <address@hidden>
+ 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.
diff --git a/build-aux/src-sniff.py b/build-aux/src-sniff.py
index 9d26f0b..cfd98c0 100644
--- a/build-aux/src-sniff.py
+++ b/build-aux/src-sniff.py
@@ -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'"],
diff --git a/cfg.mk b/cfg.mk
index b43b3e5..47f49e0 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -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
--
1.7.0
- [Findutils-patches] Re: [PATCH 06/19] Avoid false positives for the sc_prohibit_test_minus_ao syntax check., (continued)
- [Findutils-patches] [PATCH 04/19] Fix some compilation unused-result and missing-declaration warnings., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 08/19] Move safe_atoi out into a separate module., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 09/19] Remove some obsolete source files from POTFILES.in, James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 10/19] Remove files which exist but have no translated messages., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 11/19] Avoid sscanf. Avoid false positives for sc_prohibit_atoi_atof., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 07/19] configure.ac: Quote the first argument to AC_DEFINE., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 13/19] Enable syntax checker sc_the_the, detecting doubled 'the'.,
James Youngman <=
- [Findutils-patches] [PATCH 12/19] sc_prohibit_strcmp gives false positives when neither argument is a constant, so skip that check, James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 14/19] Avoid sc_prohibit_stat_st_blocks check, since it is broken., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 16/19] Use set_program_name() to remember the programs' names., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 15/19] Avoid using magic numbers as exit statuses., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 18/19] cfg.mk: simplify variables, James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 17/19] Don't include quote.h/quotearg.h where it is not used., James Youngman, 2010/04/02
- [Findutils-patches] [PATCH 19/19] Check for accidental modifications to the wrong section of the NEWS file., James Youngman, 2010/04/02