Empty For Each...Next Block
Identifies empty 'For Each...Next' blocks that can be safely removed.
NEW! This inspection is only available in pre-release builds.
Reasoning
Dead code should be removed. A loop without a body is usually redundant.
Default severity
Warning
Inspection type
NamingAndConventionsIssues
Examples
This example should trigger a result
This example should NOT trigger a result
Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyForEachBlockInspection.cs (Prerelease-v2.5.2.6174)