After adding the following tests in ClassStartsWithBlankLineRuleTest I am getting violations when running ./gradlew test, (noticed the issue when migrating from v2.2.0 -> v3.3.0)
@Test
void test_Trait_BlankLineIsRequired() {
final String SOURCE = '''
import groovy.transform.CompileStatic
@CompileStatic enum Foo {
BAR, BAZ, BLAH
}
'''
rule.blankLineRequired = true
assertNoViolations(SOURCE)
}
@Test
void test_Trait_BlankLineIsRequired() {
final String SOURCE = '''
import groovy.transform.CompileStatic
@CompileStatic trait Foo {
int getFoo() {
0
}
}
'''
rule.blankLineRequired = true
assertNoViolations(SOURCE)
}
Thank you
After adding the following tests in
ClassStartsWithBlankLineRuleTestI am getting violations when running./gradlew test, (noticed the issue when migrating fromv2.2.0->v3.3.0)Thank you