SwiftLint v0.15.0 Release Notes

  • ๐Ÿ’ฅ Breaking
    • โš  line_length rule now has a default value of 120 for warnings.
      Marcelo Fabri #1008
    โœจ Enhancements
    • Add closure_end_indentation opt-in rule that validates closure closing braces according to these rules:
      • If the method call has chained breaking lines on each method (. is on a new line), the closing brace should be vertically aligned with the ..
      • Otherwise, the closing brace should be vertically aligned with the beginning of the statement in the first line.

    Marcelo Fabri #326

    • operator_usage_whitespace rule is now correctable.
      Marcelo Fabri

    • ๐ŸŽ implicit_getter and mark rule performance improvements.
      Marcelo Fabri

    • HTML reports now display a relative path to files.
      Jamie Edge

    • colon rule now validates colon position in dictionaries too. You can disable this new validation with the apply_to_dictionaries configuration.
      Marcelo Fabri #603

    • โž• Add first_where opt-in rule that warns against using .filter { /* ... */ }.first in collections, as .first(where: { /* ... */ }) is often more efficient.
      Marcelo Fabri #1005

    ๐Ÿ› Bug Fixes