SwiftLint v0.13.0 Release Notes
-
π₯ Breaking
- None.
β¨ Enhancements
π§ Add
ignores_comment
configuration fortrailing_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 #770Adds
allow_private_set
configuration for theprivate_outlet
rule.
Rohan Dhaimadeπ Swift 2.3 support.
Norio Nomura, Syo IkedaColor literals count as single characters to avoid unintentional line length violations.
Jonas #742β Add
SwitchCaseOnNewlineRule
opt-in rule that enforces a newline aftercase pattern:
in aswitch
.
Marcelo Fabri #681β Add
ValidIBInspectableRule
rule that checks if@IBInspectable
declarations are valid. An@IBInspectable
is valid if:- It's declared as a
var
(notlet
) - Its type is explicit (not inferred)
- Its type is one of the
supported types
- It's declared as a
- β Add
ExplicitInitRule
opt-in rule to discourage callinginit
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 #772Correctable 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 ifreturn
is a keyword, avoiding false positives.
Marcelo Fabri #784ForceUnwrappingRule
did not recognize force unwraps in return statements using subscript.
Norio Nomura #813