SwiftLint v0.15.0 Release Notes
-
๐ฅ 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 FabriHTML reports now display a relative path to files.
Jamie Edgecolon
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 HanikaGrammar checks.
Michael Helmbrecht๐ Fix the validity and styling of the HTML reporter.
Jamie EdgeFix false positive in
empty_parentheses_with_trailing_closure
rule.
Marcelo Fabri #1021Fix false positive in
switch_case_on_newline
when switching over a selector.
Marcelo Fabri #1020Fix crash in
closure_parameter_position
rule.
Marcelo Fabri #1026Fix false positive in
operator_usage_whitespace
rule when using image literals.
Marcelo Fabri #1028
- โ