Skip to main content
diff options
authorChristian W. Damus2017-07-04 15:00:52 +0000
committerLaurent Goubet2017-07-06 09:51:08 +0000
commit05cddc96b4e6e7359707344219b92f4284036f21 (patch)
tree6a6fe48a12d143ed1c0af3ebc5b55ad4cfc7f35d /
parent6a711952a06f70b3be58c997fd5041dc4b809adf (diff)
[519170] [Checkstyle] Author format constraint is too restrictive
Allow more flexibility in the name (still at least two names required, even if one is an initial) and in the e-mail address. Use a beginning-of-input anchor to try to enforce the e-mail tag format if there is anything before the name. Bug: 519170 Signed-off-by: Christian W. Damus <> Change-Id: I199d6eef474b5bb3755bd2e1d5ea826c3ac61913
Diffstat (limited to '')
1 files changed, 1 insertions, 1 deletions
diff --git a/ b/
index 31e9e1d7b..8c9c17f51 100644
--- a/
+++ b/
@@ -27,7 +27,7 @@
<module name="JavadocType">
<property name="severity" value="error"/>
- <property name="authorFormat" value="(&lt;a href=&quot;mailto:[a-z.]+@[a-z.]+\.[a-z]{2,4}\&quot;&gt;)?[A-Z][a-z]+\s[A-Z][a-z]+(&lt;/a&gt;)?"/>
+ <property name="authorFormat" value="^(&lt;a href=&quot;mailto:[a-z0-9+.]+@[a-z0-9.]+\.[a-z]{2,}\&quot;&gt;)?(([A-Z][a-z]+|[A-Z]\.?)\s)+[A-Z][a-z]+(&lt;/a&gt;)?"/>
<property name="allowUnknownTags" value="true"/>
<module name="JavadocVariable">

Back to the top