[tor-commits] [collector/master] Relax CatchParameterName check.
karsten at torproject.org
karsten at torproject.org
Sat Apr 30 19:06:47 UTC 2016
commit c88783d6b52981d2e5cb300c4b3d5222c0f34976
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Sat Apr 30 21:02:59 2016 +0200
Relax CatchParameterName check.
---
resources/metrics_checks.xml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/resources/metrics_checks.xml b/resources/metrics_checks.xml
index bd1d7ba..0777894 100644
--- a/resources/metrics_checks.xml
+++ b/resources/metrics_checks.xml
@@ -11,6 +11,9 @@
- Replaced com.google with org.torproject in import statement ordering
[CustomImportOrder].
+ - Relaxed requirement that catch parameters must be at least two
+ characters long [CatchParameterName].
+
Checkstyle is very configurable. Be sure to read the documentation at
http://checkstyle.sf.net (or in your downloaded distribution).
@@ -111,7 +114,7 @@
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="CatchParameterName">
- <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
+ <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
<message key="name.invalidPattern"
value="Catch parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
More information about the tor-commits
mailing list