Author: Seth Schoen <[email protected]> Date: Sat, 30 Oct 2010 23:20:08 -0700 Subject: more patterns for things that could commonly be wrong Commit: cd5a0424a8efbb47e7c4d5ef1fc0c70bd89d6c70
--- pending-rules/trivial-validate | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/pending-rules/trivial-validate b/pending-rules/trivial-validate index f540d71..198d769 100755 --- a/pending-rules/trivial-validate +++ b/pending-rules/trivial-validate @@ -8,8 +8,11 @@ echo echo "-- Rules with unescaped dots:" grep from= *.xml | cut -d\" -f2 | grep '[^\]\.[^*]' || echo "(None.)" echo -echo "-- Rules not containing trailing slash:" +echo "-- Rules not containing trailing slash in from pattern:" grep from= *.xml | cut -d\" -f2 | grep -v '//.*/' || echo "(None.)" echo +echo "-- Rules not containing trailing slash in to pattern:" +grep 'to="' *xml | sed 's/^.*to="//' | sed 's/\".*$//' | grep -v '//.*/' +echo echo "-- Rules with missing closing slash in rule XML tag:" grep to= *xml | grep '[^/]>' || echo "(None.)" -- 1.7.1
