A deinit has a body, and a function nested inside it was being reported
on its own. The deinit is now the candidate, and the nested function
stays inside it. Actor methods are documented with the other type methods.
Proved by test_a_deinit_is_compared_and_keeps_its_nested_function.
Co-authored-by: Robert C. Martin <[email protected]>
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]>
..< 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]>
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]>