Skip to content

Commit 6905cdc

Browse files
committed
add checkstyle rules, fix RegexpSingleline (check to find trailing whitespace at the end of a line)
1 parent 6df23c1 commit 6905cdc

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

checkstyle.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,28 @@
8181
<module name="UpperEll"/>
8282
<module name="ModifierOrder"/>
8383
<module name="RedundantModifier"/>
84+
<module name="ClassTypeParameterName"/>
85+
<module name="ConstantName"/>
86+
<module name="InterfaceTypeParameterName"/>
87+
<module name="LocalFinalVariableName"/>
88+
<module name="LocalVariableName"/>
89+
<module name="MemberName"/>
90+
<module name="MethodName"/>
91+
<module name="MethodTypeParameterName"/>
92+
<module name="PackageName">
93+
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
94+
</module>
95+
<module name="ParameterName"/>
96+
<module name="StaticVariableName"/>
97+
<module name="TypeName"/>
8498
</module>
8599
<module name="NewlineAtEndOfFile">
86100
<property name="lineSeparator" value="lf"/>
87101
</module>
88102
<module name="UniqueProperties"/>
103+
<!-- the check to find trailing whitespace at the end of a line: -->
104+
<module name="RegexpSingleline">
105+
<!-- \s matches whitespace character, $ matches end of line. -->
106+
<property name="format" value="\s+$"/>
107+
</module>
89108
</module>

scribejava-apis/src/test/java/com/github/scribejava/apis/examples/AWeberExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
public abstract class AWeberExample {
1414

15-
//To get your consumer key/secret, and view API docs, see https://labs.aweber.com/docs
15+
//To get your consumer key/secret, and view API docs, see https://labs.aweber.com/docs
1616
private static final String ACCOUNT_RESOURCE_URL = "https://api.aweber.com/1.0/accounts/";
1717

1818
private static final String CONSUMER_KEY = "";

0 commit comments

Comments
 (0)