SwiftLint v0.44.0 Release Notes
-
๐ฅ Breaking
- ๐ SwiftLint now requires Swift 5.3 or higher to build.
JP Simard
Experimental
- None.
โจ Enhancements
โ Add configuration options to
missing_docs
rule:excludes_extensions
defaults totrue
to skip reporting violations for extensions with missing documentation comments.excludes_inherited_types
defaults totrue
to skip reporting violations for inherited declarations, like subclass overrides.
Ben Fox
Fix false negative on
redundant_optional_initialization
rule when variable has observers.
Isaac Ressler #3621Make
test_case_accessibility
rule identify invalid test functions with parameters.
Keith Smiley #3612Add
duplicated_key_in_dictionary_literal
rule to warn against duplicated keys in dictionary literals.
Marcelo Fabri๐ Fix the rule name from "Colon" to "Colon Spacing" to improve phrasing.
Radu #3587Add
discouraged_none_name
opt-in rule to discourage naming cases and static/class members "none", which can conflict with Swift'sOptional<T>.none
when checking equality.
Kane Cheshire #3624๐ Improve language and positioning of
file_length
warnings whenignore_comment_only_lines: true
.
Steven Grosmark #3654Add
anonymous_argument_in_multiline_closure
opt-in rule to validate that named arguments are used in closures that span multiple lines.
Marcelo Fabri
๐ Bug Fixes
Fix false positives in
empty_enum_arguments
rule when comparing values with a static member (e.g.if number == .zero
).
Marcelo Fabri #3562Fix
type_contents_order
initializer detection.
StevenMagdy๐ Fix autocorrect when there's no space between the tuple the
in
keyword onunneeded_parentheses_in_closure_argument
rule.
p-x9 #3633Fix
unused_capture_list
,empty_enum_arguments
,implicit_return
andexplicit_type_interface
rules when using Swift 5.4.
Marcelo Fabri #3615 #3685๐ Fix Xcode build logs with spaces in paths preventing
analyze
from running.
adamawolf
- ๐ SwiftLint now requires Swift 5.3 or higher to build.