Breaking
-
Changed behavior of
strict
option onlint
andanalyze
to treat
all warnings as errors instead of only changing the exit code.
Jeehut
#3312 -
Removed the
unneeded_notification_center_removal
rule because it was
based on an incorrect premise.
JP Simard
#3338 -
The
whitelist_rules
configuration key has been renamed to
only_rules
.
Dalton Claybrook
Experimental
- None.
Enhancements
-
Add
use-alternative-excluding
option to speed up linting in cases
described in #3325.
This option yields different exclusion behavior.
JohnReeze
#3304 -
Add
test_case_accessibility
rule.
Keith Smiley
#3376 -
Remove
@IBOutlet
and@IBInspectable
from UnusedDeclarationRule.
Keith Smiley
#3184 -
Add
allow_multiline_func
configuration option toopening_brace
rule, to allow placing{
on new line in case of multiline function.
Defaults tofalse
.
Zsolt Kovács
#1921 -
Update the
nslocalizedstring_key
rule to validate thecomment
argument in addition to thekey
argument.
Dalton Claybrook
#3334 -
Add
inclusive_language
rule to encourage the use of inclusive
language that avoids discrimination against groups of people.
Dalton Claybrook -
Add
prefer_nimble
opt-in rule to encourage using Nimble matchers
over the XCTest ones.
Marcelo Fabri
#3293 -
unused_closure_parameter
rule now validates closures outside of
function calls.
Marcelo Fabri
#1082 -
Improve documentation for running SwiftLint as Xcode build phase.
Christian Mitteldorf
#3169 -
Add
skip_aligned_constants
(defaults totrue
) and
lines_look_around
(defaults to2
) configuration parameters to the
operator_usage_whitespace
rule.
Paul Taykalo
#3388
Bug Fixes
-
Fix parsing of Xcode 12 compiler logs for analyzer rules.
JP Simard
#3365 -
Fix some SwiftUI unused declaration rule false positives.
JP Simard
#3365 -
Fix some false positives in rule
explicit_self
.
Sven Münnich -
Fix incorrect autocorrection in
prefer_zero_over_explicit_init
rule.
Paul Taykalo -
Rule
unused_capture_list
should not be triggered by unowned self
keyword.
hank121314
#3389 -
Fix severity configuration for
indentation_width
.
Samasaur1
#3346 -
Fix DuplicateImportsRule's support for import attributes.
Keith Smiley
#3402 -
Allow "allowed symbols" as first character in
identifier_name
.
JP Simard
#3306 -
Fix false positives with parameterized attributes in
attributes
.
JP Simard
#3316 -
Fix some missed cases in rule
unavailable_function
.
Quinn Taylor
#3374 -
Fix incorrect violation message for line length violations.
JP Simard
#3333 -
Fix inconsistency in
operator_usage_whitespace
rule.
Paul Taykalo
#3321 -
Fix false positives in
convenience_type
rule for types that cannot
be converted to enums.
ZevEisenberg
#3033 -
Fix finding a nested config when a single file path is passed.
Seth Friedman -
Fix incorrect calculation of the root path when a directory in the
tree is passed in as a path argument.
Seth Friedman
#3383 -
Fix rare false positive in
toggle_bool
rule.
Marcelo Fabri
#3398