Skip to content

Commit c19e49d

Browse files
committed
update checkstyle checks
1 parent 9218ce7 commit c19e49d

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

core/src/main/java/org/owasp/encoder/HTMLEncoder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ static int encode(int codePoint, char[] out, int j) {
278278
return j;
279279
}
280280

281+
//CSOFF: MethodLength
281282
@Override
282283
CoderResult encodeArrays(CharBuffer input, CharBuffer output, boolean endOfInput) {
283284
final char[] in = input.array();
@@ -494,4 +495,5 @@ CoderResult encodeArrays(CharBuffer input, CharBuffer output, boolean endOfInput
494495

495496
return underflow(input, i, output, j);
496497
}
498+
//CSON: MethodLength
497499
}

src/main/config/checkstyle.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@
3131
<property name="max" value="130"/>
3232
</module>
3333
<module name="TreeWalker">
34-
34+
<module name="SuppressionCommentFilter">
35+
<property name="offCommentFormat" value="CSOFF\: ([\w\|]+)"/>
36+
<property name="onCommentFormat" value="CSON\: ([\w\|]+)"/>
37+
<property name="checkFormat" value="$1"/>
38+
</module>
3539
<module name="JavadocMethod"/>
3640
<module name="JavadocType"/>
3741
<module name="JavadocVariable"/>
@@ -143,7 +147,7 @@
143147
<module name="PackageDeclaration"/>
144148
<module name="IllegalType">
145149
<property name="illegalClassNames"
146-
value="java.util.GregorianCalendar,
150+
value="java.util.GregorianCalendar,
147151
java.util.Hashtable,
148152
java.util.HashSet,
149153
java.util.HashMap,

0 commit comments

Comments
 (0)