whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Report invalid syntax
Date Sun, 26 Feb 2017 01:02:31 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  e4e5fd7   Report invalid syntax
e4e5fd7 is described below

commit e4e5fd7a76e97c2206fe0d06b81e41d40d9e5aa2
Author: Sebb <sebb@apache.org>
AuthorDate: Sun Feb 26 01:01:22 2017 +0000

    Report invalid syntax
---
 lib/whimsy/asf/committee.rb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/whimsy/asf/committee.rb b/lib/whimsy/asf/committee.rb
index 4bdb4df..4d25aa5 100644
--- a/lib/whimsy/asf/committee.rb
+++ b/lib/whimsy/asf/committee.rb
@@ -122,6 +122,11 @@ module ASF
         established = "0#{established}" if established =~ /^\d\//
         committee.established = established
 
+        # match non-empty entries and check the syntax
+        roster.scan(/^[ \t]+.+$/) do |line|
+            Wunderbar.warn "Invalid syntax: #{committee.name} '#{line}'" unless line =~ /\s<(.*?)@apache\.org>\s/
+        end
+
         # extract the availids (is this used?)
         committee.info = roster.scan(/<(.*?)@apache\.org>/).flatten
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message