Inspection: Simplify Nested forEach/onEach in also/apply to onEach

^KT-40283 Fixed
This commit is contained in:
Enteerman
2020-07-21 20:50:07 +08:00
committed by Vladimir Dolzhenko
parent 85d99612a2
commit c3aeaa9052
25 changed files with 423 additions and 0 deletions
@@ -0,0 +1,5 @@
<html>
<body>
This inspection detects iterate functions in scope functions that can be simplified to <b>onEach</b>.
</body>
</html>
@@ -2259,6 +2259,8 @@ redundant.qualifier.unnecessary.non.direct.parent.class.qualifier=Unnecessary no
fix.add.exception.to.throws=Add ''{0}''
fix.add.eq.eq.true=Add '== true'
inspection.replace.with.ignore.case.equals.display.name=Replace with 'equals(..., ignoreCase = true)'
inspection.simplifiable.scope.function.display.name=Scope function with nested forEach can be simplified
nested.1.call.in.0.could.be.simplified.to.2=Nested ''{1}'' call in ''{0}'' could be simplified to {2}
hints.title.codevision=Code Vision
hints.title.codevision.show.hints.for=Show hints for: