diff --git a/tools/linechk b/tools/linechk index db57993..c46347b 100755 --- a/tools/linechk +++ b/tools/linechk @@ -1,9 +1,6 @@ #!/bin/sh -# # Code quality tool; check line length of each file in certain directories # -# For a list of ignored patterns, see chk-linelen-ignores -# # Copyright (C) 2012, 2013 Mike Gerwitz # # This file is part of GNU ease.js. @@ -20,6 +17,8 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . +# +# For a list of ignored patterns, see chk-linelen-ignores ## root="${1:-.}" @@ -37,7 +36,7 @@ hideignores() # output all file with lines > 80 characters and exit successfully if grep has a # non-zero status code, indicating that no matches were found cd "$root" && \ - find lib/ tools/ test/ doc/ README* LICENSE Makefile *.js \ + find lib/ tools/ test/ doc/ README* Makefile.am configure.ac *.js \ -type f -exec wc -L {} \; \ | hideignores \ | grep -v '^\([0-7][0-9]\?\|80\?\) ' \ diff --git a/tools/linechk-ignores b/tools/linechk-ignores index 28ff635..fc1cf8c 100644 --- a/tools/linechk-ignores +++ b/tools/linechk-ignores @@ -1,9 +1,9 @@ # any file matching any pattern in this file is ignored by the line check tool # (uses POSIX regular expressions, as is default in grep) -doc/highlight.pack.js$ -doc/.*.html\?$ -.png$ -.dia$ -.jar$ -.info$ -Makefile +doc/highlight.pack\.js$ +doc/.*\.html\?$ +doc/Makefile\(\.in\)\?$ +\.png$ +\.dia$ +\.jar$ +\.info$