Skip to content

Commit 37417d2

Browse files
committed
Add sample for App Engine Datastore setDistinct projection queries.
Also update checkstyle to allow 1-letter variable names, since it doesn't make sense to give long names to something like "arbitrary column A that doesn't actually mean anything".
1 parent 2892e27 commit 37417d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google-checks.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@
121121
value="Member name ''{0}'' must match pattern ''{1}''."/>
122122
</module>
123123
<module name="ParameterName">
124-
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
124+
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
125125
<message key="name.invalidPattern"
126126
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
127127
</module>
128128
<module name="LocalVariableName">
129129
<property name="tokens" value="VARIABLE_DEF"/>
130-
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
130+
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
131131
<property name="allowOneCharVarInForLoop" value="true"/>
132132
<message key="name.invalidPattern"
133133
value="Local variable name ''{0}'' must match pattern ''{1}''."/>

0 commit comments

Comments
 (0)