0.29.3: Entangled Agitator
Breaking
- None.
Experimental
- Skip
@IBInspectable
anddeinit
declarations in
unused_private_declaration
.
JP Simard
Enhancements
-
Allow configuring
discouraged_object_literal
rule to only discourage one
kind of object literal.
Marcelo Fabri
#2439 -
Adds
xct_specific_matcher
opt-in rule to enforce specific matchers
overXCTAssertEqual
andXCTAssertNotEqual
.
Ornithologist Coder
#1874 -
Add
last_where
opt-in rule that warns against using
.filter { /* ... */ }.last
in collections, as
.last(where: { /* ... */ })
is more efficient.
Marcelo Fabri -
Add
unused_control_flow_label
rule to validate that control flow labels are
used.
Marcelo Fabri
#2227
Bug Fixes
-
Fix false positives on
first_where
rule when callingfilter
without a
closure parameter (for example on a Realm collection).
Marcelo Fabri -
Fix false positives on
sorted_first_last
rule when callingsorted
with
a different argument thanby:
(e.g. on a Realm collection).
Marcelo Fabri
#2533 -
Fix false positives on
redundant_objc_attribute
rule when using nested
types.
Marcelo Fabri
#2539 -
Fix false positives on
vertical_whitespace_between_cases
rule when a blank
line is present but it contains trailing whitespace.
Ben Staveley-Taylor
#2538