0.35.0: Secondary Lint Trap
This is the last release to support building with Swift 4.2.x.
Breaking
- None.
Experimental
- None.
Enhancements
-
Type name rules considers SwiftUI template code.
atfelix
#2791 -
Add
no_space_in_method_call
rule to validate that there're no spaces
between the method name and parentheses in a method call.
Marcelo Fabri -
Add
contains_over_filter_count
opt-in rule to warn against using
expressions likefilter(where:).count > 0
instead ofcontains(where:)
.
Marcelo Fabri
#2803 -
Add
contains_over_filter_is_empty
opt-in rule to warn against using
expressions likefilter(where:).isEmpty
instead ofcontains(where:)
.
Marcelo Fabri -
Add
empty_collection_literal
opt-in rule to prefer usingisEmpty
to
comparison to[]
or[:]
.
Colton Schlosser
#2807
Bug Fixes
-
Fixed false positive in
colon
rule inside guard and ternary operator.
Andrey Uryadov
#2806 -
Release memory created for sourcekitd requests.
Colton Schlosser
#2812 -
Fix
swiftlint rules
output table formatting.
JP Simard
#2787 -
Don't trigger
missing_docs
violations when implementingdeinit
.
Marcelo Fabri
#2690 -
Fix
unused_import
rule false positive when only operators from the module
are used.
Timofey Solonin
#2737 -
Avoid triggering
redundant_type_annotation
rule when declaring
IBInspectable
properties.
Marcelo Fabri
#2842 -
Don't trigger
missing_docs
violations on extensions.
Marcelo Fabri
#2851