openrewrite / rewrite-static-analysis

OpenRewrite recipes for identifying and fixing static analysis issues.
Apache License 2.0
31 stars 47 forks source link

Recipe for RSPEC-5612: Lambdas should not have too many lines #31

Open murdos opened 2 years ago

murdos commented 2 years ago

https://rules.sonarsource.com/java/RSPEC-5612

Could transform e.g. collection.foreach(item -> ...) loop to for(item : collection) { ...} if lamba has too much lines.

pway99 commented 2 years ago

Thanks @murdos