maint: enable double-word-prohibiting rule
[gnulib.git] / cfg.mk
diff --git a/cfg.mk b/cfg.mk
index 045d0ae..ab75ffe 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -25,8 +25,6 @@ local-checks-to-skip =                        \
   sc_prohibit_c_ctype_without_use      \
   sc_prohibit_cloexec_without_use      \
   sc_prohibit_dirent_without_use       \
-  sc_prohibit_doubled_word             \
-  sc_prohibit_empty_lines_at_EOF       \
   sc_prohibit_error_without_use                \
   sc_prohibit_getopt_without_use       \
   sc_prohibit_hash_pjw_without_use     \
@@ -54,3 +52,9 @@ local-checks-to-skip =                        \
   sc_two_space_separator_in_usage      \
   sc_unmarked_diagnostics              \
   sc_useless_cpp_parens
+
+empty-at-EOF = /fr/LC_MESSAGES/test-quotearg\.mo$$|^doc/INSTALL(\.(ISO|UTF-8))?
+exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \
+  ^modules/|^lib/javaversion\.class$$|$(empty-at-EOF)
+exclude_file_name_regexp--sc_prohibit_doubled_word = \
+  ^(tests/test-init\.sh|lib/base(32|64)\.c)$$