I'm looking for a solution that allows me to check short variable names with PMD, while excluding lambdas from this rule.
Mainly, the reason for this is that IntelliJ auto-names common lamba variables with single characters, esp. java.lang.Strings that are always abbreviated like
aListFullOfStrings.forEach(s -> s.replaceAll(" ", ""));
I prefer that abbreviation but I don't want to add suppressions to all my lambdas. I couldn't find any way to adjust my PMD rules in order to solve this gracefully.
Suggestions are much appreciated - I'm not that experienced with all their configurations.
