Hi all 👋 ,
Can we create rule based on visibility modifier?
For example,
Max function name length for public functions - 30
Max function name length for internal and private functions - 60
g
gammax
07/15/2024, 10:37 AM
Nope that’s not possible at the moment. We’re working on allowing you to instantiate a rule multiple times, but still you won’t be able to selectively apply a rule based on visibility modifier
a
Abhimanyu
07/15/2024, 10:41 AM
What does "instantiate a rule multiple times" imply?
g
gammax
07/15/2024, 11:32 AM
You’ll be able to instantiate the same rule twice (say
LongMethod
) with different parameters say different part of the codebase (i.e. tests vs prod code or so).