diff options
author | Jim Meyering <meyering@fb.com> | 2014-08-19 08:59:38 -0700 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2014-11-10 08:40:00 -0800 |
commit | aef5feaf109fa88968c9e1c78754e20386c4b96a (patch) | |
tree | 1b601fbad2ec5ade6104785c0fb4c9c9576be0b0 /cfg.mk | |
parent | d996119145a5b3accd5e8f34a6e1766942a30cbd (diff) | |
download | gzip-aef5feaf109fa88968c9e1c78754e20386c4b96a.tar.gz |
maint: enable more syntax checks
* cfg.mk (local-checks-to-skip): Remove several rule names from this
list, thus enabling the corresponding checks. To fix some, I made
syntactic changes to source files. In other cases, I exempted certain
files from the checks.
Add exemptions for these:
sc_prohibit_atoi_atof = ^(gzip|sample/sub)\.c$$
sc_space_tab = ^lib/match\.c$$
sc_useless_cpp_parens = ^(lib/match\.c|tailor\.h)$$
* configure.ac: Add quotes to fix under-quoting.
* deflate.c: Remove unnecessary cpp parentheses.
* tests/Makefile.am (TEST_ENVIRONMENT): Remove space-before-TAB.
* unlzw.c: Change some TABs to spaces.
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -22,16 +22,8 @@ local-checks-to-skip = \ sc_bindtextdomain \ sc_error_message_period \ sc_error_message_uppercase \ - sc_m4_quote_check \ - sc_obsolete_symbols \ sc_program_name \ - sc_prohibit_S_IS_definition \ - sc_prohibit_atoi_atof \ - sc_prohibit_stat_st_blocks \ - sc_space_tab \ - sc_texinfo_acronym \ - sc_useless_cpp_parens - + sc_texinfo_acronym # Tools used to bootstrap this package, used for "announcement". bootstrap-tools = autoconf,automake,gnulib @@ -75,6 +67,9 @@ exclude_file_name_regexp--sc_prohibit_empty_lines_at_EOF = \ ^tests/hufts-segv\.gz$$ exclude_file_name_regexp--sc_prohibit_strcmp = ^gzip\.c$$ exclude_file_name_regexp--sc_prohibit_always-defined_macros = ^tailor\.h$$ +exclude_file_name_regexp--sc_prohibit_atoi_atof = ^(gzip|sample/sub)\.c$$ +exclude_file_name_regexp--sc_space_tab = ^lib/match\.c$$ +exclude_file_name_regexp--sc_useless_cpp_parens = ^(lib/match\.c|tailor\.h)$$ exclude_file_name_regexp--sc_prohibit_double_semicolon = ^lib/match\.c$$ |