chore(deps): update dependency swiftlint to v0.64.1#1156
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
8253280 to
085251a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.63.3→0.64.1Release Notes
realm/SwiftLint (swiftlint)
v0.64.1Compare Source
v0.64.0Compare Source
Breaking
ignored_literal_argument_functionsoption of theforce_unwrappingrule nowuses the configured value as-is instead of always merging in the five built-in defaults
(
URL(string:),NSURL(string:),UIImage(named:),NSImage(named:),Data(hexString:)).Those five functions remain the default when the option is not configured, but setting
ignored_literal_argument_functionsto any explicit list — including[]— now fullyreplaces the defaults. Configurations that add functions on top of the defaults must now
explicitly include the five previously-default functions in their list.
SimplyDanny
#6675
Experimental
Enhancements
SwiftLint can now be built and run on Windows. It is expected to work in the same way as
on other platforms. The only restrictions are missing support for
?[]glob patterns ininclude/exclude patterns and the requirement for
\nas line ending in all linted files.compnerd
roman-bcny
SimplyDanny
#6351
#6352
Rename
allow_implicit_inittoinclude_implicit_initfor theoptional_data_string_conversionrule to convey its purpose more clearly.SimplyDanny
#6670
Improve linting performance by 10-15%, especially when running with many
threads, by optimizing cache locking and reducing contention. Depending on
the project and level of concurrency, the performance improvement can be even
higher (3-4x).
SimplyDanny
Rewrite the following rules with SwiftSyntax:
file_types_orderSimplyDanny
Fix false positive in
accessibility_label_for_imagerule for images insideSwiftUI
Label'sicon:closure, which are inherently labeled by theLabel's text content.sutheesh
#6420
Bug Fixes
Fix
literal_expression_end_indentationautocorrection deleting source codewhen the closing bracket of a multiline literal shares a line with the end of
a multiline last element (e.g.
...))]). The corrector assumed everythingbefore the bracket on that line was indentation and replaced it; it now moves
only the bracket to its own line at the expected indentation.
Luan Câmara
#2823
Don't rewrite the type operand of an
is/as?/as!cast (such asx is A) toSelfinprefer_self_in_static_referenceswhen inside aclass-like scope.
Selfis the dynamic type, so the rewrite silently changedruntime behavior for non-final classes (
x is Selfis not equivalent tox is A). Mirrors the rule's existingX.selfskip; static member referencessuch as
A.f()are still corrected.Brett-Best
#6764
Avoid false positives in
vertical_parameter_alignmentwhen a parameter ispreceded by multi-byte characters, such as a function name containing
non-ASCII letters. Alignment is now compared by visible column rather than by
UTF-8 byte offset.
systemBlue
#5037
Treat macro declarations like function declarations for
line_lengthwhenignores_function_declarationsis enabled.leno23
#5648
Make
Glob.expandGlobstartolerant of unreadable directory entries onlarge trees.
subpathsOfDirectory(atPath:)aborted the entire globexpansion on the first unreadable entry (permission denied, dangling
symlink, file removed mid-scan), causing most files in large projects to
be silently ignored. Replace the directory walk with a lazy
URLenumerator that has a per-item error handler so unreadable items are
skipped individually.
Chupik
Avoid false positives in
prefer_self_in_static_referencesfor genericconstraints and generic parameter bounds such as
where A: Pand<A: P>in classes and extensions.
SimplyDanny
#6674
Don't rewrite a type reference to
Selfinprefer_self_in_static_referenceswhen it appears in a protocol composition (such as
any A & B), as theconstraint of an existential or opaque type (such as
any Aorsome A), oras the base of an existential metatype (such as
A.Protocol), since the namedtype is not interchangeable with
Selfin those positions.Brett-Best
#6748
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.