SwiftLint v0.24.0 Release Notes
-
๐ฅ Breaking
๐ SwiftLint now requires Xcode 9 and Swift 3.2+ to build.
Marcelo Fabriโ Remove
SwiftExpressionKind.other
.
Marcelo Fabri
โจ Enhancements
Add
sorted_first_last
opt-in rule to encourage usingmin()
ormax()
oversorted().first
orsorted().last
.
Tom Quist #1932Add
quick_discouraged_focused_test
opt-in rule which warns against focused tests in Quick tests.
Ornithologist Coder #1905Add
override_in_extension
opt-in rule that warns against overriding declarations in anextension
.
Marcelo Fabri #1884Add
[f,x]{describe, context, itBehavesLike}
toquick_discouraged_call
rule.
Ornithologist Coder #1903Add
quick_discouraged_pending_test
opt-in rule which warns against pending tests in Quick tests.
Ornithologist Coder #1909๐ง Speed up equality tests for
[Rule]
andConfiguration
values.
JP Simard๐ง Make
Configuration
conform toHashable
.
JP SimardSpeed up reading cached results by about 200%.
JP Simardโ Add
catch
to the statements checked by thecontrol_statement
rule.
JP Simard๐ Make
sorted_imports
correctable.
Samuel Susla JP Simard #1822๐ Make
sorted_imports
only validate within "groups" of imports on directly adjacent lines.
Samuel Susla JP Simard #1822
๐ Bug Fixes
Extend
first_where
andcontains_over_first_not_nil
rules to also detect cases where calls tofilter
andfirst
are parenthesized.
Tom Quist๐ง Correct equality tests for
Configuration
values. They previously didn't account forwarningThreshold
orcachePath
.
JP Simard๐ Fix false positive in
multiline_parameters
rule when parameter is a closure with default value.
Ornithologist Coder #1912๐ Fix caching on Linux.
JP Simard๐ Fix crashes due to races.
JP Simard๐ Fix
String.characters
deprecation warnings when compiling with Swift 4.0.2.
JP Simard