SwiftLint v0.25.0 Release Notes

  • ๐Ÿ’ฅ Breaking

    • None.

    โœจ Enhancements

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fix some cases where colon rule wouldn't be autocorrected.
      Manabu Nakazawa

    • ๐Ÿ›  Fix false positives in explicit_acl rule when declaring functions and properties in protocols or implementing deinit.
      Marcelo Fabri #2014

    • Fix false negatives in unneeded_parentheses_in_closure_argument rule when using _ as one of the closure arguments.
      Marcelo Fabri #2017

    • ๐Ÿ›  Fix several rules that use attributes when linting with a Swift 4.1 toolchain.
      Marcelo Fabri #2019

    • Don't trigger violations in let_var_whitespace rule when using local variables when linting with a Swift 4.1 toolchain.
      Marcelo Fabri #2021

    • ๐Ÿ‘Œ Improve type_name rule violations to be positioned on the type name.
      Marcelo Fabri #2021

    • ๐Ÿ‘‰ Use SourceKit to validate associatedtype and typealias in type_name rule when linting with Swift 4.1.
      Marcelo Fabri #2021

    • ๐Ÿ›  Fix some cases where violations would still be triggered when using the ย ignores_function_declarations configuration of line_length rule.
      ย Manabu Nakazawa

    • Fix false positive in empty_enum_arguments rule when using closures.
      Marcelo Fabri #2041

    • ๐Ÿ›  Fix false positives in force_unwrapping rule when declaring functions that return implicitly unwrapped collections (for example [Int]! or [AnyHashable: Any]!).
      Marcelo Fabri #2042

    • ๐Ÿ›  Fix directories with a .swift suffix being treated as files.
      Jamie Edge #1948