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 return nil instead of a correction
    to indicate that a suitable correction couldn't be found for a specific case.
    MaxHaertwig

    Add enum_case_associated_value_count opt-in rule.
    lakpa
    πŸ‘• #2997

    Add 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 Fabri

    Add prefer_self_type_over_type_of_self opt-in rule to enforce using
    Self instead of type(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
    πŸ‘• #2990

    Handle @_exported imports in unused_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