0.45.0
版本发布时间: 2021-10-18 23:58:19
realm/SwiftLint最新发布版本:0.57.0(2024-09-09 00:02:39)
Breaking
- SwiftLint now requires Swift 5.4 or higher to build.
JP Simard
Experimental
- None.
Enhancements
-
Add
self_in_property_initialization
rule to catch uses ofself
inside an inline closure used for initializing a variable. In this case,self
refers to theNSObject.self
method and likely won't be what you expect. You can make the variablelazy
to be able to refer to the current instance withself
or useMyClass.self
if you really want to reference the method.
Marcelo Fabri -
Exclude
id
fromidentifier_name
by default.
Artem Garmash #3651 -
Handle
get async
andget throws
(introduced in Swift 5.5) in theimplicit_getter
rule.
Marcelo Fabri #3684 -
Speed up explicit type interface rule.
PaulTaykalo #3745 -
Speed up analyzer rules.
PaulTaykalo #3747
Bug Fixes
-
Fix a bug with the
missing_docs
rule whereexcludes_inherited_types
would not be set.
Ben Fox -
Fix redundant_optional_initialization autocorrect broken in case observer's brace exists. Naruki Chigira #3718
-
Fix a false positive in the
unneeded_break_in_switch
rule when usingdo/catch
.
Marcelo Fabri #3724 -
Speed up Computed Accessors Order rule. PaulTaykalo #3727
-
[Colon Rule] Fix case when comment is used in function call. PaulTaykalo #3740
1、 portable_swiftlint.zip 6.82MB
2、 SwiftLint.pkg 6.82MB
3、 swiftlint_linux.zip 25.43MB