diff options
-rwxr-xr-x | xlint | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlint b/xlint index 712cb5e..484002f 100755 --- a/xlint +++ b/xlint @@ -169,6 +169,10 @@ for template; do scan 'distfiles=.*ftp\.gnu\.org/(pub/)?gnu' 'use $GNU_SITE' scan 'distfiles=.*freedesktop\.org/software' 'use $FREEDESKTOP_SITE' scan '^wrksrc=(\$\{[^}]+\}|[^${}/])*/.+' 'wrksrc should be a top-level directory' + scan '^\t*function\b' 'do not use the function keyword' + scan '^\t*[^ ]* *\(\)' 'do not use space before function parenthesis' + scan '^\t*[^ ]*\(\)(| *){' 'use one space after function parenthesis' + scan '^\t*[^ ]*\(\)$' 'do not use a newline before function opening brace' else echo no such template "$template" 1>&2 fi | sort -t: -n -k2 | grep . && ret=1 |