Commit Graph
4 Commits
Author SHA1 Message Date
Cursor AgentandRobert C. Martin 105ff6f50c Keep the label on a Swift trailing closure.
The grammar puts that label on the call as an identifier, so label:
and action: scored 1.0. The spelling now stays, as a parenthesized
argument label does. A closure body still drops its locals.

Proved by test_a_trailing_closure_label_is_part_of_the_call.

Co-authored-by: Robert C. Martin <[email protected]>
2026-11-25 23:49:45 +00:00
Cursor AgentandRobert C. Martin 121fb2f4ba Keep Swift range operators in the fingerprint.
..< and ... were dropped as punctuation, so a half-open range and a
closed range scored 1.0. They now stay, as >= and != do.

Proved by test_a_different_swift_range_lowers_the_score. The suite
is 93 passed.

Co-authored-by: Robert C. Martin <[email protected]>
2026-11-25 23:49:25 +00:00
Cursor AgentandRobert C. Martin 1bb1936ad5 Document Swift as a supported language.
The scan already reports Swift pairs in the text report and in
.metrics/dry.edn. The help text, the language table, and the project
description still listed the previous six languages.

Proved: test_help_does_not_scan failed until the help named
Swift (.swift) and *Tests.swift, then passed. test_swift_report_writes_the_same_snapshot
checks the text lines and :language \"swift\" in dry.edn. The shared
language tests now include Swift. 92 tests passed.

Co-authored-by: Robert C. Martin <[email protected]>
2026-11-25 23:35:40 +00:00
Robert C. Martin fcf865759d Add a multi-language duplicate finder that writes .metrics/dry.edn. 2026-09-30 14:37:25 -05:00