chore(deps): update dependency swiftlint to v0.63.3#268
Merged
Conversation
485414e to
c7548ce
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.2→0.63.3Release Notes
realm/SwiftLint (swiftlint)
v0.63.3Compare Source
Breaking
Experimental
Enhancements
Treat extensions like classes in the
prefer_self_in_static_referencesrule.
itsybitsybootsy
#3993
Print fixed code read from stdin to stdout.
SimplyDanny
#6501
Add new
redundant_finalrule that detectsfinalmodifiers on declarationswhere they are redundant due to the containing context, such as
finalclassesor actors. Final actors are themselves implicitly final, so the
finalmodifieris redundant on them as well.
william-laverty
SimplyDanny
#6407
Add
discouraged_default_parameteropt-in rule that flags default parametervalues in functions with configurable access levels.
William-Laverty
#6488
Add
ignored_literal_argument_functionsoption to theforce_unwrappingruleto skip violations for configurable function calls when all arguments are
literal values (e.g.
URL(string: "https://example.com")!). Defaultsinclude
URL(string:),NSURL(string:),UIImage(named:),NSImage(named:), andData(hexString:).claudeaceae
#6487
Add
rulesarray to SARIF reporter output, providing metadata for allbuilt-in rules in accordance with the SARIF specification.
ahmadalfy
#6499
Add
allow_underscore_prefixed_namesoption tounused_parametersounderscore-prefixed parameter names can be treated as intentionally
unused when configured.
theamodhshetty
#5741
Add detection of cases such as
String.init(decoding: data, as: UTF8.self)andlet text: String = .init(decoding: data, as: UTF8.self)tooptional_data_string_conversionrule.nadeemnali
#6359
Add new default
invisible_characterrule that detects invisible characterslike zero-width space (U+200B), zero-width non-joiner (U+200C),
and FEFF formatting character (U+FEFF) in string literals, which can cause
hard-to-debug issues.
kapitoshka438
#6045
Add
variable_shadowingrule that flags when a variable declaration shadowsan identifier from an outer scope.
nadeemnali
#6228
Add
legacy_uigraphics_functionrule to encourage the use of modernUIGraphicsImageRendererinstead of the legacyUIGraphics{Begin|End}ImageContext.The modern replacement is safer, cleaner, Retina-aware and more performant.
Dimitri Dupuis-Latour
#6268
Support access level modifiers on imports in
unused_importsrule.SimplyDanny
#6620
Add
name="SwiftLint"to JUnittestsuitesandtestsuiteoutput forbetter CI parser compatibility.
theamodhshetty
#6161
Improve the opt-in
pattern_matching_keywordsrule by extending supportbeyond
switch caseand refining nested pattern handling.GandaLF2006
Bug Fixes
Detect and autocorrect missing whitespace before
elseinguardstatements for the
statement_positionrule.theamodhshetty
#6153
Avoid false positives from
unused_enumeratedwhen higher-order calls on.enumerated()use result members like?.offsetafter the closure.theamodhshetty
#5881
Add an
ignore_attributesoption toimplicit_optional_initializationsowrappers/attributes that require explicit
= nilcan be excluded fromstyle checks for both
style: alwaysandstyle: never.theamodhshetty
#3998
Skip
@TestStateproperties inquick_discouraged_callrule, matchingexisting
@TestInjectedand@TestWeaklyexclusions.William-Laverty
#5803
Fix
explicit_selffalse positives around string interpolation.jffmrk
SimplyDanny
#6611
Properly taint variables in tuples for
unneeded_escapingrule.SimplyDanny
#6621
Ensure that disable commands work for
redundant_nil_coalescingrule.SimplyDanny
#6465
Take
tryexpressions in call parameters into account even if the call hastrailing closures as well, so that an outer
throwsis not considered unneededin the
unneeded_throws_rethrowsrule.SimplyDanny
#6491
Ensure that disable commands work for
prefer_key_pathrule when the trailingclosure starts on a different line than the function call as a whole.
SimplyDanny
#6466
Track identifiers declared in tuples to avoid false positives in the
redundant_selfrule.SimplyDanny
#6553
Respect existing environment variables when setting
BUILD_WORKSPACE_DIRECTORYin build tool plugins.
SimplyDanny
#6080
Fix false positives in
indentation_widthrule for continuation linesof multi-line
guard/if/whileconditions. A new optioninclude_multiline_conditions(default:false) skips these lines bydefault. When enabled, it validates that continuation lines are aligned
with the first condition after the keyword.
tanaev
#4961
multiline_call_argumentsno longer reports violations for enum-case patterns inpattern matching (e.g. if case, switch case, for case, catch).
GandaLF2006
Avoid false positives in
prefer_self_in_static_referenceswhen a nested typeshadows its enclosing type name.
theamodhshetty
#5917
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.