SwiftLint v0.13.0 Release Notes

  • πŸ’₯ Breaking
    • None.
    ✨ Enhancements
    • πŸ”§ Add ignores_comment configuration for trailing_whitespace rule.
      Javier HernΓ‘ndez #576

    • βž• Added HTML reporter, identifier is html.
      Johnykutty Mathew

    • βž• Add SuperCallRule opt-in rule that warns about methods not calling to super.
      Angel G. Olloqui #803

    • βž• Add RedundantNilCoalesingRule opt-in rule that warns against ?? nil.
      Daniel Beard #764

    • βž• Added opt-in rule to makes closure expressions spacing consistent.
      J. Cheyo Jimenez #770

    • Adds allow_private_set configuration for the private_outlet rule.
      Rohan Dhaimade

    • πŸ‘ Swift 2.3 support.
      Norio Nomura, Syo Ikeda

    • Color literals count as single characters to avoid unintentional line length violations.
      Jonas #742

    • βž• Add SwitchCaseOnNewlineRule opt-in rule that enforces a newline after case pattern: in a switch.
      Marcelo Fabri #681

    • βž• Add ValidIBInspectableRule rule that checks if @IBInspectable declarations are valid. An @IBInspectable is valid if:

      • It's declared as a var (not let)
      • Its type is explicit (not inferred)
      • Its type is one of the supported types

    Marcelo Fabri #756

    • βž• Add ExplicitInitRule opt-in rule to discourage calling init directly.
      Matt Taube #715
    πŸ› Bug Fixes
    • πŸ›  Fixed whitespace being added to TODO messages.
      W. Bagdon #792

    • πŸ›  Fixed regex bug in Vertical Whitespace Rule by using SourceKitten instead. The rule now enabled by default again (no longer opt-in).
      J. Cheyo Jimenez #772

    • Correctable rules no longer apply corrections if the rule is locally disabled.
      J. Cheyo Jimenez
      #601

    • πŸ›  Fixed regex bug in Mark Rule where MARK could not be used with only a hyphen but no descriptive text: // MARK: -.
      Ruotger Deecke #778

    • πŸ›  Fixed: Private unit test rule not scoped to test classes.
      Fixed: Private unit test rule config is ignored if regex is missing.
      Cristian Filipov #786

    • πŸ›  Fixed: ConditionalReturnsOnNewline now respects severity configuration.
      Rohan Dhaimade #783

    • πŸ›  Fixed: ConditionalReturnsOnNewline now checks if return is a keyword, avoiding false positives.
      Marcelo Fabri #784

    • ForceUnwrappingRule did not recognize force unwraps in return statements using subscript.
      Norio Nomura #813