mirror of
https://github.com/unclebob/dryer.git
synced 2026-11-26 18:58:51 +00:00
A SwiftUI body is a computed property, a protocol requirement has no body, and a closure or local function belongs to the form around it. The first picker kept every function, including the nested ones, and missed the body, the protocol default, and a file-level closure. Proved: test_swift_keeps_methods_bodies_and_top_level_closures_only failed by reporting the nested function at lines 7-9. The SwiftUI pair and the top-level closure pair were empty. All three pass, including a Text versus Label view that scores below 1.0. The full suite passed, 90 tests, and dryer reports no duplication at 0.8. Co-authored-by: Robert C. Martin <[email protected]>