For classes ending with “**Setup”, the default format rule of ClassName should be replaced with a rule allowing inner class names to start with a lowercase letter – if it extends another class.
How can I do this?
A concrete example:
class MyExampleSetup {
// valid, turn off ClassName check
static class myInnerClass extends MyInnerClass() {....}
// valid, normal class name Check
static class MyOtherInnerClass () {....}
}
Unfortunately, that is impossible out of the box. What you are really asking for is a modification of behavior for one check (
TypeName). The only way of implementing such a thing is by implementing your own custom check.(Like the previous posters, I must urge you to consider using annotations for the background magic instead of relying on the naming convention. But that wasn’t your question of course.)