Checking for generics in RedundantLambdaParameterType #4067
-
Expected Behavior of the ruleI am creating a custom rule
Here the types However, I want to skip this rule in case of generics. For example, What's the best way to check if type of lambda parameters refer to generics? Here is what I have currently:
ContextA rule which reports when a lambda expression is specifying type of parameters. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The |
Beta Was this translation helpful? Give feedback.
The
ArrayPrimitive
rule in this repo is a good example on how to check generic type arguments. You can have a look here.