0.20.0: Liquid Fabric Softener
Breaking
- None.
Enhancements
-
Add support for missing triggering cases in
force_unwrapping
when using subscript.
Otávio Lima -
Match
(Void)
as return type in thevoid_return
rule.
Anders Hasselqvist -
Add
multiline_parameters
opt-in rule that warns to either keep
all the parameters of a method or function on the same line,
or one per line.
Ornithologist Coder -
Update
function_parameter_count
rule to ignore overridden methods.
Markus Gasser
#1562 -
Skip files with valid cache & no violations when auto correcting.
Marcelo Fabri
#1554 -
Don't trigger violations from the
private_unit_test
rule when a method has
parameters.
Marcelo Fabri
#1532 -
Don't trigger violations from the
discarded_notification_center_observer
rule when the observer is being returned from a function that is not marked
as@discardableResult
.
Marcelo Fabri
#1525 -
Add
extension_access_modifier
opt-in rule validating that if all the
declarations in a given extension have the same Access Control Level, the ACL
keyword should be applied to the top-level extension.
Marcelo Fabri
#1546 -
Add
vertical_parameter_alignment_on_call
opt-in rule that validates that
parameters are vertically aligned on a method call.
Marcelo Fabri
#1037 -
Add
code_literal
andimage_literal
boolean configuration options to
object_literal
rule. They allow to only check for one or the other
literal type instead of both together.
Cihat Gündüz
#1587
Bug Fixes
-
Fix false positive in
empty_enum_arguments
rule when calling methods.
Marcelo Fabri
#1597 -
Fix crash in
unused_closure_parameter
rule when using unicode identifiers.
Woo-Sik Byun
Marcelo Fabri -
Fix two false positives in
force_unwrapping
rule.
Otávio Lima
#614
#977
#1614 -
Fix custom rules not working correctly with comment commands.
JP Simard
#1558 -
Fix incorrectly using configuration files named
.swiftlint.yml
when they are
located in the same directory as a differently-named, user-provided custom
configuration file.
JP Simard
#1531 -
Fix
empty_count
rule false positive in words that include "count".
Marcelo Fabri
#1622 -
Use
validates_start_with_lowercase
key when decoding configurations for
generic_type_name
,identifier_name
andtype_name
rules. This key was
used on the docs, but internallyvalidates_start_lowercase
was used.
Marcelo Fabri
#1626