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
classFoo {
// this is a comment about why Foo doesn't have a body (implementation detail)
}
the above shouldn't report EmptyClassBlock, IMO
Context
Documentation like this belongs to the class, but it's not KDoc as it's not the description of a public API.
Without the class body braces the comment would be just dangling in space, and for example Move (class) refactor wouldn't consider it to be part either and would leave it where it is.
classFoo// just a random comment unrelated to Foo
The text was updated successfully, but these errors were encountered:
cortinico
added a commit
to cortinico/detekt
that referenced
this issue
Jul 5, 2019
Expected Behavior of the rule
the above shouldn't report
EmptyClassBlock
, IMOContext
Documentation like this belongs to the class, but it's not KDoc as it's not the description of a public API.
Without the class body braces the comment would be just dangling in space, and for example Move (class) refactor wouldn't consider it to be part either and would leave it where it is.
The text was updated successfully, but these errors were encountered: