David Levaché
05/14/2024, 9:43 AMLibraryEntitiesShouldNotBePublic
does, but also checking inner classes and other stuff.
I want to ignore this rule for entities with a specific annotation, and I found a strange case, and I'm wondering whether this is the expected behaviour or not.David Levaché
05/14/2024, 9:44 AMMyRuleSet:
MyLibraryEntitiesShouldNotBePublic:
active: true
ignoreAnnotated:
- 'MyCustomAnnotation'
This code reports an issue for class B
, indicating that it should not be public, which is what I expect from my rule.
internal class A {
class B
}
But this code does not report anything.
@MyCustomAnnotation
class A {
class B
}
Are inner classes issues supposed to be ignored when their parent class is annotated?Brais Gabin
05/14/2024, 9:46 AMignoreAnnotated
suppresses issues for it and any of its childrenBrais Gabin
05/14/2024, 9:46 AMDavid Levaché
05/14/2024, 9:48 AM