0.44.0
版本发布时间: 2021-09-10 06:00:02
realm/SwiftLint最新发布版本:0.57.0(2024-09-09 00:02:39)
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 #3621 -
Make
test_case_accessibility
rule identify invalid test functions with parameters.
Keith Smiley #3612 -
Add
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 #3587 -
Add
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 #3654 -
Add
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 #3562 -
Fix
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 #3633 -
Fix
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
1、 portable_swiftlint.zip 6.65MB
2、 SwiftLint.pkg 6.64MB
3、 swiftlint_linux.zip 25.25MB