0.15.0: Hand Washable Holiday Linens 🎄
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
line_length
rule now has a default value of120
for warnings.
Marcelo Fabri
#1008
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.
- If the method call has chained breaking lines on each method
-
operator_usage_whitespace
rule is now correctable.
Marcelo Fabri -
implicit_getter
andmark
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 theapply_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
FunctionParameterCountRule
also ignores generic initializers.
Mauricio Hanika- Grammar checks.
Michael Helmbrecht - Fix the validity and styling of the HTML reporter.
Jamie Edge - Fix false positive in
empty_parentheses_with_trailing_closure
rule.
Marcelo Fabri
#1021 - Fix false positive in
switch_case_on_newline
when switching
over a selector.
Marcelo Fabri
#1020 - Fix crash in
closure_parameter_position
rule.
Marcelo Fabri
#1026 - Fix false positive in
operator_usage_whitespace
rule when
using image literals.
Marcelo Fabri
#1028