Skip to content

0.15.0: Hand Washable Holiday Linens 🎄

Compare
Choose a tag to compare
@jpsim jpsim released this 22 Dec 22:58
e4fa18d

A change 18 months in the making, SwiftLint's line_length rule now defaults to 120 characters for its warning severity. Not strictly speaking a breaking change, since this won't trigger any violations where there previously weren't, but notable enough for a full minor number bump 😄.

Two new opt-in rules (closure_end_indentation and first_where) and otherwise mostly improvements and bug fixes.

Thanks to all our contributors and happy holidays!

Breaking
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