Hi all :android-wave: , Can we create rule based o...
# detekt
a
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
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
What does "instantiate a rule multiple times" imply?
g
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).
🆗 1
m
You can create a custom rule for that.
👍 1