You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Functions defined inside functions should follow the same rules.
funa() {
funb() {}
}
fun b() should be reported as an empty function.
Current Behavior
// EmptyFunctionBlockSpec.kt
given("an empty function inside a another function") {
it("should flag the empty function") {
val code =""" private class A { fun a() { fun b() {} } }"""
assertThat(subject.lint(code)).hasSize(1)
}
}
This test case fails.
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topics.
lockbot
locked as resolved and limited conversation to collaborators
Jun 20, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Expected Behavior
Functions defined inside functions should follow the same rules.
fun b()
should be reported as an empty function.Current Behavior
This test case fails.
The text was updated successfully, but these errors were encountered: