SwiftLint v0.38.1 Release Notes
Release Date: 2020-01-04 // over 4 years ago-
π₯ Breaking
- None.
Experimental
- None.
β¨ Enhancements
π Make
weak_delegate
rule correctable.
MaxHaertwigπ Allow
SubstitutionCorrectableRule
to returnnil
instead of a correction
to indicate that a suitable correction couldn't be found for a specific case.
MaxHaertwigAdd
enum_case_associated_value_count
opt-in rule.
lakpa
π #2997Add
optional_enum_case_matching
opt-in rule to validate that
optional enum cases are matched without using?
when using Swift 5.1 or
π above. See SR-7799 for more
details.
Marcelo FabriAdd
prefer_self_type_over_type_of_self
opt-in rule to enforce using
Self
instead oftype(of: self)
when using Swift 5.1 or above.
Marcelo Fabri
π #3003π Bug Fixes
π Fix crash in
unused_import
rule when unused imports have trailing
comments.
JP Simard
π #2990Handle
@_exported
imports inunused_import
rule.
JP Simard
π #2877π Fix false positives from the
unused_declaration
rule involving
functions in protocol extensions.
JP Simardπ Fix parsing of SwiftLint commands containing a URL in their trailing comment.
Sven MΓΌnnichβ Added missing parameters to
FileNameConfiguration.consoleDescription
.
timcmiller
π #3009π Fix crash when SourceKit returns out of bounds string byte offsets.
JP Simard