Skip to content

@marcelofabri marcelofabri released this Feb 28, 2019 · 17 commits to master since this release

Breaking

  • None.

Experimental

  • None.

Enhancements

  • Add deployment_target rule to validate that @availability attributes and
    #available conditions are not using a version that is satisfied by the
    deployment target. Since SwiftLint can't read an Xcode project, you need to
    configure this rule with these keys: iOS_deployment_target,
    macOS_deployment_target, watchOS_deployment_target and
    tvOS_deployment_target. By default, these values are configured with the
    minimum versions supported by Swift.
    Marcelo Fabri
    #2589

  • Add weak_computed_property rule to warn against using weak in a computed
    property as it has no effect.
    Marcelo Fabri
    #2596

  • Add SwiftVersion.five and automatically detect it when computing
    SwiftVersion.current.
    JP Simard

  • Make redundant_objc_attribute rule autocorrectable.
    Daniel Metzing

  • Add required_deinit opt-in rule to ensure that all classes have a deinit
    method. The purpose of this is to make memory leak debugging easier so all
    classes have a place to set a breakpoint to track deallocation.
    Ben Staveley-Taylor
    #2620

  • nimble_operator now warns about beTrue() and beFalse().
    Igor-Palaguta
    #2613

  • Warn if a configured rule is not enabled.
    Marcelo Fabri
    #1350

  • Add exclude_ranges option to number_separator for exclusion.
    Cihat Gündüz
    #2637

Bug Fixes

  • Fix false positives on no_grouping_extension rule when using where
    clause.
    Almaz Ibragimov

  • Fix explicit_type_interface when used in statements.
    Daniel Metzing
    #2154

  • Fix lower_acl_than_parent when linting with Swift 5.
    JP Simard
    #2607

  • Fix let_var_whitespace with #warning.
    Igor-Palaguta
    #2544

  • Fix excessive superfluous_disable_command violations being reported when
    using an invalid rule identifier in a disable command.
    Marcelo Fabri
    #2623

  • Fix explicit_type_interface with allow_redundancy when assigning type
    references to variables.
    Cihat Gündüz
    #2636

  • Fix unused_closure_parameter when argument is named self.
    Cihat Gündüz
    #2437

  • Fix first_where for some calls on Realm collection types.
    Cihat Gündüz
    #1930

Assets 5
You can’t perform that action at this time.