Skip to content

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


  • None.


  • None.


  • 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

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

  • Add SwiftVersion.five and automatically detect it when computing
    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

  • nimble_operator now warns about beTrue() and beFalse().

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

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

Bug Fixes

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

  • Fix explicit_type_interface when used in statements.
    Daniel Metzing

  • Fix lower_acl_than_parent when linting with Swift 5.
    JP Simard

  • Fix let_var_whitespace with #warning.

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

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

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

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

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