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:
Daniel Martí 2016-07-04 11:25:04 +01:00
parent 3fae57c360
commit 8af44b1af5
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ android {
}
checkstyle {
toolVersion = '6.19'
toolVersion = '7.0'
}
task checkstyle(type: Checkstyle) {

View File

@ -209,7 +209,7 @@ android {
}
checkstyle {
toolVersion = '6.19'
toolVersion = '7.0'
}
task checkstyle(type: Checkstyle) {

View File

@ -96,7 +96,7 @@
<module name="RightCurly"/>
<module name="RightCurly">
<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 name="EmptyStatement" />