SwiftLint v0.8.0 Release Notes
-
💥 Breaking
⚠ Setting only warning on
SeverityLevelsConfig
rules now disables the error value.
Robin Kunde #409enabled_rules
has been renamed toopt_in_rules
.
Daniel Beard
✨ Enhancements
➕ Add
whitelist_rules
rule whitelists in config files.
Daniel Beard #256👌 Improve performance of
ColonRule
,LineLengthRule
&syntaxKindsByLine
.
Norio Nomura➕ Add command to display rule description:
swiftlint rules <rule identifier>
.
Tony Li #392➕ Add
FunctionParameterCountRule
.
Denis Lebedev #415Measure complexity of nested functions separately in
CyclomaticComplexityRule
.
Denis Lebedev #424➕ Added exception for multi-line
if
/guard
/while
conditions to allow opening brace to be on a new line inOpeningBraceRule
.
Scott Hoyt #355🖨 The
rules
command now prints a table containing values for:identifier
,opt-in
,correctable
,enabled in your config
&configuration
.
JP Simard #392⬇️ Reduce maximum memory usage.
Norio Nomura
🐛 Bug Fixes
🛠 Fix more false positives in
ValidDocsRule
.
diogoguimaraes #451🛠 Fix
trailing_newline
autocorrect to handle more than one violation per line.
Daniel Beard #465🛠 Fix complexity measurement for switch statements in
CyclomaticComplexityRule
.
Denis Lebedev #461