checkstyle: bump to 7.0
Remove LITERAL_DO from the config in RightCurly as we want this: do { foo; } while (bar); Not this: do { foo; } while (bar); This went unnoticed as LITERAL_DO was broken in RightCurly in earlier Checkstyle versions.
This commit is contained in:
parent
3fae57c360
commit
8af44b1af5
@ -36,7 +36,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkstyle {
|
checkstyle {
|
||||||
toolVersion = '6.19'
|
toolVersion = '7.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
task checkstyle(type: Checkstyle) {
|
task checkstyle(type: Checkstyle) {
|
||||||
|
@ -209,7 +209,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkstyle {
|
checkstyle {
|
||||||
toolVersion = '6.19'
|
toolVersion = '7.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
task checkstyle(type: Checkstyle) {
|
task checkstyle(type: Checkstyle) {
|
||||||
|
@ -96,7 +96,7 @@
|
|||||||
<module name="RightCurly"/>
|
<module name="RightCurly"/>
|
||||||
<module name="RightCurly">
|
<module name="RightCurly">
|
||||||
<property name="option" value="alone"/>
|
<property name="option" value="alone"/>
|
||||||
<property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, STATIC_INIT, INSTANCE_INIT"/>
|
<property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT, INSTANCE_INIT"/>
|
||||||
</module>
|
</module>
|
||||||
|
|
||||||
<module name="EmptyStatement" />
|
<module name="EmptyStatement" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user