SwiftLint v0.41.0 Release Notes
Release Date: 2020-11-08 // over 3 years ago-
π₯ Breaking
π Changed behavior of
strict
option onlint
andanalyze
to treat
β all warnings as errors instead of only changing the exit code.
Jeehut
π #3312Removed 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 ClaybrookExperimental
- None.
β¨ Enhancements
β Add
use-alternative-excluding
option to speed up linting in cases
π described in #3325.
This option yields different exclusion behavior.
JohnReeze
π #3304Add
test_case_accessibility
rule.
Keith Smiley
π #3376β Add more details to
CONTRIBUTING.md
.
mknabbe
π #1280β Remove
@IBOutlet
and@IBInspectable
from UnusedDeclarationRule.
Keith Smiley
π #3184Add
allow_multiline_func
configuration option toopening_brace
rule, to allow placing{
on new line in case of multiline function.
0οΈβ£ 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
π #3293unused_closure_parameter
rule now validates closures outside of
function calls.
Marcelo Fabri
π #1082π Improve documentation for running SwiftLint as Xcode build phase.
Christian Mitteldorf
π #3169Add
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ΓΌnnichFix incorrect autocorrection in
prefer_zero_over_explicit_init
rule.
Paul TaykaloRule
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
π #3333Fix 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