-
-
Notifications
You must be signed in to change notification settings - Fork 12
Update Mint non-major dependencies #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
master
Choose a base branch
from
renovate/mint-non-major-dependencies
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #94 +/- ##
==========================================
- Coverage 97.21% 96.91% -0.30%
==========================================
Files 24 24
Lines 1435 1069 -366
==========================================
- Hits 1395 1036 -359
+ Misses 40 33 -7 🚀 New features to boost your workflow:
|
0456356 to
6d81778
Compare
e2e9dd2 to
80e34b5
Compare
80e34b5 to
47dc135
Compare
47dc135 to
3af6f7a
Compare
3af6f7a to
1ab3f2c
Compare
6b48698 to
422a6bb
Compare
422a6bb to
7abaa77
Compare
7abaa77 to
a0db959
Compare
a0db959 to
3d58f24
Compare
fb024cd to
1419438
Compare
1419438 to
1d564e3
Compare
1d564e3 to
9830fce
Compare
6f98caf to
dfd0a22
Compare
ff1497a to
94811fd
Compare
7d10b14 to
31c0064
Compare
31c0064 to
306b4a1
Compare
306b4a1 to
3063e30
Compare
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:
2.2.5->2.3.00.55.0->0.58.60.57.0->0.62.2Release Notes
krzysztofzablocki/Sourcery (krzysztofzablocki/Sourcery)
v2.3.0Compare Source
withExtendedLifetimesupport for better lifetime management in templates (#1419) — @swifttyAutoMockableGeneration for a couple of cases with existentialany(#1420) — @musiienkov2.2.7Compare Source
isGenericdynamic member by @tayloraswift in #1408v2.2.6Compare Source
Templates/AutoMockable.stencil: fix stencil to consider nullable closures as escaping by @alexdmotoc in #1358anyfor protocols by @iDevid in #1367nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)
v0.58.6Compare Source
docCommentsnot being applied correctly after conditionalswitch...case#selector(...)expressions--filelistare now formatted concurrentlyreturnremoval insiderepeat...whileloopstrailingClosuresrule and property wrappersv0.58.5Compare Source
returnkeyword insidefor ... whereloopsfor await case ...loopsXCTUnwrapto the default exclusion list forhoistTryv0.58.4Compare Source
trailingCommarule incorrectly inserting commas inside typedthrowsopaqueGenericParametersrule could cause build errors with existential typesunusedArgumentswhen argument is only referenced inside a macronoGuardInTestsrule now preserves custom failure messagesnoGuardInTestsrule no longer addsthrowsto test methods when not neededv0.58.3Compare Source
[n of X]syntax forInlineArrayin Swift 6.2redundantInitrule could leave orphaned parenthesesredundantInitwas incorrectly applied to(Foo.self as Bar.Type)expressionsredundantSelfruleacronymsrule where one acronym overlaps anotherwrapArgumentsrule--unknown-rulesoption to support environments with older SwiftFormat versionsv0.58.2Compare Source
modifierOrderrule confusedasynceffect forasyncmodifierredundantInitrule to apply toinitcalls with single trailing closureREADME.mdto reflect actual precedence behavior between.swift-versionfiles and--swift-versionarguments.v0.58.1Compare Source
asynceffect could be confused forasyncmodifier, breakingdocCommentsBeforeModifiersrule in protocol body with async functionswrapAttributesrule would unexpectedly wrapasynceffect.swift-versionfile was ignored if not also using config fileredundantAsyncignoredawaitkeyword in string interpolationacronymsrule would incorrectly always capitalize potentially matching acronyms one letter before end of identifierredundantLetrule to handle#Previewmacrov0.58.0Compare Source
noForceUnwrapInTestsruleredundantThrowsruleredundantAsyncrulepreferFinalClassesruletrailingCommasrule to handle cases now supported by Swift 6.2trailingClosuresrule to support multiple trailing closures--allow-partial-wrapping falseoption to disallow partial wrapping of functions and collectionspropertyTypesrule to support array, dictionary, and set literalsorganizeDeclarationsthreshold options to organize types without adding marks--type-body-marks removeoption toorganizeDeclarationsorganizeDeclarationsto support organizing protocol bodiesorganizeDeclarationsto treatassociatedtypedeclarations as nested types, liketypealiasdeclarations.--blank-line-after-switch-case alwaysoption toblankLineAfterSwitchCase--default-test-suite-attributesoption topreferSwiftTestingrule--markdown-filesoptions tostrictandlenientredundantPublicrule to apply to private typestrailingClosuresandtrailingCommasrules to support optional function callsmarkTypesrule wouldn't add marks after extensionsredundantPublicbroke@_spiannotated membershoistTryrule could break@TestattributeredundantVoidReturnTyperule could accidentally remove closure typeblankLinesAroundMarknot ignoring trailing comments at start of scopethrowingTestsrule tonoForceTryInTestssinglePropertyPerLineto preserveasync letdeclarationsv0.57.2Compare Source
trailingCommasrule to handle function declarations with generic arguments.--trailing-commas alwaysto preserve trailing commas rather than unnecessarily removing trailing commas in some edge cases.v0.57.1Compare Source
--trailing-commas always.redundantPublicrule didn't handle extensions on types defined in public extensions.@Bindableto list of SwiftUI property wrappers used byorganizeDeclarationsrule.preferFileMacrorule.v0.57.0Compare Source
--kebab-case. Existing option names without dashes remain supported for backwards compatibility. Some options have been renamed to improve clarity.:thisand:previousin comment directives.--configfile arguments.singlePropertyPerLinerule to convert property declarations defining multiple properties into separate declarations.redundantMemberwiseInitrule to remove explicit memberwise initializers that are identical to thestruct's compiler-synthesized initializer.redundantPublicrule to remove public access control from properties of internal types.modifiersOnSameLinerule to keep declaration modifiers on the same line.throwingTestsrule to prefer usingtryandthrowsin unit tests rather thantry!.noGuardInTestsrule to prefer convert guard statements in unit tests totry #require(...)/#expect(...)ortry XCTUnwrap(...)/XCTAssert(...).urlMacrorule to convertURL(string: "...")!initializers to a provided#URL("...")macro.--trailing-commas collections-onlyand--trailing-commas multi-element-listsoptions totrailingCommasrule.--type-blank-lines insertoption toblankLinesAtStartOfScopeandblankLinesAtEndOfScoperules.--wrap-string-interpolationoption to support disabling line wrapping within string interpolation.--line-between-guardsoption toblankLinesAfterGuardStatementsrule.docCommentsrule.docCommentsrule where trailing comments would be converted to doc comments.redundantNilInitrule would ignore type bodies with conformances.wrapEnumCasesdidn't handle some nested types correctly.#characters in config files couldn't be escaped.#characters.--wrap-return-type neverdidn't respect--allman true.v0.56.4Compare Source
trailingCommasrule would not insert trailing commas in function declarations with return typetrailingCommasrule would not insert trailing commas in array literals following!operatorunusedArgumentsrule would ignore function declarations with trailing commasvoidrule would not handle()types in typealiasesredundantLetrule did not detect code inside result builders when nested in conditional compilation blocksv0.56.3Compare Source
trailingCommasrule would insert commas in closure types and tuple types used in typealaises (not supported in Swift 6.1)v0.56.2Compare Source
trailingCommasrule would insert commas in@escpaingor@Sendableclosure types (not supported in Swift 6.1)privateStateVariablesrule handled@Previewableattributes on previous line incorrectlyv0.56.1Compare Source
trailingCommasrule would insert commas in places not actually supported by Swift 6.1--wrapeffectsoption would incorrectly unwrapasync letproperties following function callredundantEquatablerule would incorrectly remove==implementation in factor of synthesized implementation even if type contained non-Equatable properies like tuplesextensionAccessControlrule would incorrectly hoistpublicACL in@preconcurrencyconformancesorganizeDeclarationsrule would sometimes break property declarations with if expression valuesv0.56.0Compare Source
wrapMultilineFunctionChainsrule to wrap chained method callsenvironmentEntryrule to update SwiftUIEnvironmentValuesdefinitions to use the@EntrymacroredundantEquatablerule to remove explicitEquatableconformances that would be compiler-synthesizedpreferSwiftTestingrule to migrate XCTest-based tests to Swift TestingswiftTestingTestCaseNamesrule to remove redundant "test" prefix from Swift Testing test case methods.preferCountWhererule to prefercount(where:)overfilter(_:).countfileMacrorule to prefer either#fileor#fileID, which have the same behavior in Swift 6 and laterblankLinesAfterGuardStatementsrule to remove blank lines between consecuitve guard statements, and add blank line after last guard statement.privateStateVariablesrule to addprivateaccess control to@StatepropertiesemptyExtensionsrule to remove extensions that contain no declarations or conformances--preserveacronymsoption toacronymsrule--wrapreturntype neveroption towrapArgumentsruletrailingCommasto support Swift 6.1 trailing comma functionalityopaqueGenericParametersnow supports protocol requirements without a body--wrapeffectsand--wrapreturntypenow support protocol requirements and closure typesblankLinesAtStartOfScoperule now supports switch cases and closure capture / parameter listsorganizeDeclarationsline count threshold would ignoreswiftformat:sortdirectivesorganizeDeclarationsrule would unexpectedly remove non-mark commentsbrew install swiftformat --head. Prerelease builds are subject to breaking changes.v0.55.6Compare Source
repeat,eachkeywords)propertyTypesrule could cause build failure in properties withsometype--callsiteparen balancedwould have no effect when using--closingparen same-linev0.55.5Compare Source
yodaConditionsrule mangling generic function callselseor opening brace followingif/switchexpressionorganizeDeclarationsrule no longer treats properties withdidSetas computedv0.55.4Compare Source
whereclause forswitch ... casestatementsunusedArgumentscould remove required arguments in some casessortTypealiasesrule now correctly handlesanykeywordv0.55.3Compare Source
sortTypealiasesrule could mangle generic types, or ones using theanykeywordpreferKeyPathsrule now only uses\\.selffor Swift 6 and later (fix din't land yet in 5.10)artifactbundlenot working onubuntu-latestv0.55.2Compare Source
unusedArgumentsfailed to remove arguments that matched switch variable bindingsunusedArgumentsfailed to remove arguments that matched nested function call labelsblankLinesAtStartOfScopewhen usingorganizeDeclarationsrulewraprule lint errorspreferKeyPathsrule now handles the\\.selfcase for Swift 5.10 and later\.?v0.55.1Compare Source
docCommentsBeforeModifiersgot confused byenumcases that match modifier nameswrapEnumCaseswould mangle nested or successiveenumdeclarationsrealm/SwiftLint (realm/SwiftLint)
v0.62.2Compare Source
Breaking
Experimental
Enhancements
Add new
incompatible_concurrency_annotationrule that triggers when a declarationisolated to a global actor,
@Sendableclosure arguments and/or generic sendableconstraints is not annotated with
@preconcurrencyin order to maintain compatibilitywith Swift 5.
mattmassicotte
SimplyDanny
#5987
Add
isolationmodifier group tomodifier_orderrule configuration.This allows configuring the position of
nonisolatedmodifiers.nandhinisubbu
#6164
Add test count to JUnit reporter.
nandhinisubbu
#6161
Adopt mimalloc for static Linux binary
to improve performance.
ainame
#6298
Bug Fixes
Fix false positive with
#Previewmacro inclosure_end_indentationrule.gibachan
Fix correction of
sorted_importsrule when comments (with a distance) are present beforethe first import.
SimplyDanny
#6317
v0.62.1Compare Source
Breaking
Experimental
Enhancements
Bug Fixes
SimplyDanny
v0.62.0Compare Source
Breaking
The structure of
SwiftLintBinary.artifactbundle.zipis now simpler. Internal paths nolonger contain version numbers, especially. So in an Xcode Run Script build phase,
you can refer to the
swiftlintbinary like this:All other consumers of the artifact bundle do not need to change anything. Swift Package
Manager resolves the new paths automatically.
SimplyDanny
SwiftLint now requires a Swift 6 or higher compiler to build. The
Swift Package Manager plugins continue
to work with all versions down to Swift 5.9.
SimplyDanny
sorted_importsrule's behavior changed in that it now treats imports directly adjacentto each other as a group that is sorted together. Imports separated by at least one
non-import statement or empty line(s) are treated as separate groups. Comments are
considered part of the import group they are attached to and do not break it.
SimplyDanny
Experimental
Enhancements
Rewrite the following rules with SwiftSyntax:
modifier_ordersorted_importsSimplyDanny
Add new
prefer_asset_symbolsrule that suggests using asset symbols overstring-based image initialization to avoid typos and enable compile-time
checking. This rule detects
UIImage(named:)andSwiftUI.Image(_:)callswith string literals and suggests using asset symbols instead.
danglingP0inter
#5939
Exclude integer generic parameters from
generic_type_namerule.Include integer generic parameters in the
identifier_namerule for validation.nandhinisubbu
#6213
Add new option
ignores_regex_literalstoline_lengthrule.It allows to ignore regex literals.
nandhinisubbu
#6304
Add
ignores_literalsconfiguration fortrailing_whitespacerule.It allows to ignore trailing whitespace in multiline strings.
nandhinisubbu
#6194
Bug Fixes
Ignore function, initializer and subscript declarations alike when the
ignores_function_declarationsoption is enabled in theline_lengthrule.SimplyDanny
#6241
Individual
custom_rulescan now be specified in theonly_ruleconfigurationsetting and the
--only-rulecommand line option without having to specifycustom_rulesas well. Additionally, violations of custom rules are now reportedin a deterministic order, sorted by the rule's identifier.
Martin Redington
#6029
#6058
Ignore
redundant_discardable_letrule violations in nested SwiftUI scopes as wellwhen
ignore_swiftui_view_bodiesis enabled.SimplyDanny
#3855
#6255
Exclude function types from
async_without_awaitrule analysis. Higher-order functionobjects can be
asyncwithout containing anawaitwhen assigning to them.SimplyDanny
#6253
Exclude
@concurrentfunctions fromasync_without_awaitrule analysis.@concurrentfunctions requiresaysncin any case.nandhinisubbu
#6283
swiftlint-static, the experimental fully-static Linux binary, now uses 512 KiBas thread stack size matching Darwin’s size to prevent stack exhaustion.
ainame
#6287
v0.61.0Compare Source
Breaking
If
SWIFTLINT_DISABLE_SOURCEKITis set to prohibit loadinglibsourcekitdInProcat runtime,rules requiring SourceKit will be disabled and a warning will be printed once per rule.
SimplyDanny
The
operator_whitespacerule has been removed and its functionality merged into thefunction_name_whitespacerule. The latter now also checks spacing around thefunckeyword, the function name/operator and its generic parameters while respecting comments.
On top of that, it supports autocorrection.
SimplyDanny
Expose only
TestHelpersandExtraRulesTestsas part of Bazel releases.SimplyDanny
Experimental
- A dynamically linked binary that requires
- A fully statically linked binary named
SimplyDannylibsourcekitdInProc.sotogether with itstransitive dependencies to be present on the system at runtime. It is named
swiftlintand the same binary as before. It supports all built-in rules.
swiftlint-staticthat does not requireany dynamic libraries at runtime. Rules requiring SourceKit will be disabled and
reported to the console when running this binary.
Enhancements
A fully statically linked Linux binary can now be built with the Swift SDK and
the compiler options
-Xswiftc -DSWIFTLINT_DISABLE_SOURCEKIT. This binary does notrequire
libsourcekitdInProc.soor any other dynamic libraries to be present on thesystem at runtime. Rules requiring SourceKit will be disabled and reported to the console
when running this binary.
SimplyDanny
Add
function_name_whitespacerule to enforce consistent spacing between thefunckeyword, function name, and its generic parameters. Ensures exactly one space between
funcand the function name, and configurable spacing around generics viageneric_spacing:no_space(default):func name<T>()leading_space:func name <T>()trailing_space:func name<T> ()leading_trailing_space:func name <T> ()Supports autocorrection.
GandaLF2006
The
operator_whitespacerule now supports autocorrection and better respects comments infunction declarations. The rule has been deprecated in favor of the new
function_name_whitespacerule. You can still refer to it by its identifier, but get checking for normal function names
on top.
SimplyDanny
In
line_lengthrule, treat strings with opening and closing quotes in the same line assingle-line strings no matter if they are enclosed by triple quotes or not. Furthermore,
improve detection of comment-only lines.
SimplyDanny
#6220
#6219
Improve detection of comment-only lines in
file_lengthrule.SimplyDanny
#6219
Rewrite
quick_discouraged_callrule with SwiftSyntax.SimplyDanny
Bug Fixes
Ensure that header matched against always end in a newline in
file_headerrule.SimplyDanny
#6227
Fix
closure_end_indentationrule reporting violations when the called baseinvolves chained optional expressions.
SimplyDanny
#6216
v0.60.0Compare Source
Breaking
Remove support for boolean values in the
validates_start_with_lowercaseoption entirely.Use the severity levels
off,warningorerrorinstead.kaseken
SwiftLint now requires macOS 13 or higher to run.
JP Simard
In
SwiftLintBuildToolPlugin, print the content of theBUILD_WORKSPACE_DIRECTORYenvironment variable only in debug builds.
SimplyDanny
#6135
The
redundant_optional_initializationrule has been replaced by theimplicit_optional_initializationrule that enforces implicit or explicit initializationof optional variables. Its default style
alwaysmimics the behavior of theredundant_optional_initializationrule by default.redundant_optional_initializationis now an alias for
implicit_optional_initialization.leo-lem
#1940
The
swiftlint_linux.ziprelease archive has been renamed toswiftlint_linux_amd64.zipto avoid confusion with the new
swiftlint_linux_arm64.ziparchive.Bradley Mackey
SimplyDanny
Experimental
Enhancements
Linting got up to 30% faster due to the praiseworthy performance
improvements done in the SwiftSyntax
library.
Ignore locally defined
countidentifiers inempty_countrule.SimplyDanny
#5326
The
private_swiftui_staterule now applies toViewModifiertypes.mt00chikin
Support for ARM64 Linux binaries has been added. The
swiftlint_linux.ziprelease archivehas been renamed to
swiftlint_linux_amd64.zip. Next to it, a newswiftlint_linux_arm64.ziparchive has been added. The
SwiftLintBinary.artifactbundle.zipnow contains both versionsof the Linux binary, so that the binary plugins
can now be used on Linux and macOS running no both AMD64 and ARM64 architectures.
Bradley Mackey
SimplyDanny
Add
include_variablesconfiguration option tonon_optional_string_data_conversionrule.When enabled, the rule will trigger on variables, properties, and function calls in addition
to string literals. Defaults to
falsefor backward compatibility.SimplyDanny
#6094
Add Sendable conformance to Rule.Type for building with Swift 6.
erikkerber
#issue_number
Fix false positives for
Actor-conforming delegate protocols in theclass_delegate_protocolrule.imsonalbajaj
#6054
Support extensions and protocols in
type_body_lengthrule. They can be configured using thenew
excluded_typesoption which by default excludesextensionandprotocoltypes.This means the rule now checks
struct,class,actorandenumby default. To enablechecking of extensions and protocols, set
excluded_typesto an empty array or exclude othertypes as needed.
SimplyDanny
Exclude explicit system modules from
duplicate_importsanalysis, that is, modulesthat are part of the system frameworks but need to be imported explicitly due to being
declared as
explicit modulein their module map.SimplyDanny
#6098
Ignore various assignment operators like
=,+=,&=, etc. with right-hand sideternary expressions otherwise violating the
void_function_in_ternaryrule.SimplyDanny
#5611
Rewrite the following rules with SwiftSyntax:
accessibility_label_for_imageaccessibility_trait_for_buttonclosure_end_indentationexpiring_todofile_headerfile_lengthline_lengthtrailing_whitespacevertical_whitespaceJP Simard
Matt Pennig
Add
excluded_pathsoption to thefile_namerule. It allows to exclude complete filepaths from analysis. All entries are treated as regular expressions. A single match in
its full path is enough to ignore a file. This is different from the
excludedoptionthat only accepts and checks against file names.
Ueeek
#6066
Fix false positives of
redundant_discardable_letrule in@ViewBuilderfunctions,#Previewmacro bodies and preview providers whenignore_swiftui_view_bodiesisenabled.
kaseken
#6063
Improve
multiline_parametersrule to correctly supportmax_number_of_single_line_parametersand detect mixed formatting.GandaLF2006
Add new
prefer_condition_listrule that triggers when aguard/if/whilecondition is composed of multiple expressions connected by the
&&operator.It suggests to use a condition list instead, which is more idiomatic.
SimplyDanny
Add
ignore_coding_keysparameter tonestingrule. Setting this to true preventsCodingKeyenums from violating the rule.braker1nine
#5641
Support deinitializers and subscripts in
function_body_lengthrule.SimplyDanny
Extend the
xct_specific_matcherrule to support identity operators (===and!==)in addition to the existing equality operators (
==and!=).SimplyDanny
#5849
Add new
implicit_optional_initializationrule to enforce implicit or explicitinitialization of optional variables, configurable via
style: always | never.It replaces the
redundant_optional_initializationrule mimicking it with thestyle: alwaysoption which is the default.leo-lem
#1940
Add new
ignore_identity_closuresparameter toprefer_key_pathsrule to skipconversion of identity closures (
{ $0 }) to identity key paths (\.self).Note that identity key paths are only supported from Swift 6 on, hence this option
will be implicitly ignored/set to
truewhen SwiftLint detects a Swift <6 compilerto avoid causing compilation errors.
p4checo
#5965
Bug Fixes
Fix
no_extension_access_modifierrule incorrectly triggering fornonisolated extension.The rule now only flags actual access control modifiers (
private,public,open,internal,fileprivate) and ignores isolation modifiers likenonisolated.copilot
#6168
Improved error reporting when SwiftLint exits, because of an invalid configuration file
or other error.
Martin Redington
#6052
Keep the default severity levels when neither
warningnorerrorvalues are configured.Ensure especially that the
errorlevel is not set tonilwhen thewarninglevelisn't set either.
SimplyDanny
v0.59.1Compare Source
Breaking
opaque_over_existentialopt-in rule as it causes too many false positivesthat can even lead to wrong-compilable code when
anyis required by a protocol thetype conforms to. In this case, using
somecan be totally valid even though theprotocol requirement is not reimplemented for the type causing behavioral changes.
SimplyDanny
Experimental
Enhancements
allowed_numbersoption to theno_magic_numbersrule.Martin Redington
Bug Fixes
v0.59.0Compare Source
Breaking
SimplyDanny
Experimental
swiftlint-devcommand line tool that's intended to help to develop SwiftLint by encapsulating repetitivetasks. It can already be used to generate templates for new rules including optional configurations and tests. Run
swift run swiftlint-dev rules template -hto get an overview of the command's usage and the available customizationoptions. To register new rules, run
swift run swiftlint-dev rules register.SimplyDanny
Enhancements
Add new option
ignores_multiline_stringstoline_lengthrule. It allows to ignore too longlines inside of multiline strings.
thisIsTheFoxe
#2689
Ignore
UIColorinitializers inno_magic_numbersrule.suojae
hyeffie
#5183
Exclude types with a
@Suiteattribute and functions annotated with@Testfromno_magic_numbersrule.Also treat a type as a
@Suiteif it contains@Testfunctions.SimplyDanny
#5964
Add new
opaque_over_existentialopt-in rule that triggers when the existentialanytype of afunction parameter can be replaced with an opaque
sometype.SimplyDanny
Add a new rationale property to rule descriptions, providing a more expansive
description of the motivation behind each rule.
Martin Redington
#5681
Add new
allowed_typesoption tolegacy_objc_typerule to ignore certain types.kapitoshka438
#3723
Add
excluded_methodsconfiguration option tounneeded_overrideto opt out checking methods with a given name.For example, this helps avoid a conflict with
balanced_xctest_lifecyclewhere one ofsetUp/tearDownis empty but the other is not.
jaredgrubb
Bug Fixes
Fix issue referencing the Tests package from another Bazel workspace.
jszumski
Fix crash when a disable command is preceded by a unicode character.
SimplyDanny
#5945
Allow severity of
duplicate_importsrule to be configurable.SimplyDanny
#5978
Silence
no_magic_numbersrule in conditions of#ifdirectives.SimplyDanny
#6000
Consider types restricting a protocol to classes in composed inherited types in
class_delegate_protocolrule.SimplyDanny
#5982
Rewrite
type_contents_orderrule with SwiftSyntax fixing an issue with experimental availability macros.SimplyDanny
#5999
Update
file_namerule to considermacrotypes.fraioli
#6026
v0.58.2Compare Source
Breaking
Experimental
Enhancements
Bug Fixes
SimplyDanny
#5966
v0.58.1Compare Source
Breaking
If you are referring to the
swiftlintbinary from an Artifact Bundle consumed via Swift Package Managerin an Xcode Run Script Build Phase, make sure to update the path from
to
in order to make Xcode use the binary built for macOS.
SimplyDanny
#5954
Revert changes to improve performance when exclude patterns resolve to a large set of files. While resolving files
indeed got much faster in certain setups, it leads to missed exclusions for nested configurations and when the linted
folder is not the current folder.
SimplyDanny
#5953
Experimental
Enhancements
Bug Fixes
Fix
redundant_sendablecorrection by removing a remaining trailing comma as well whenSendablewas last.SimplyDanny
#5952
Remove lints for
redundant_sendableon protocols, whereSendableis not redundant.riley-williams
#5958
Add
ib_segue_actionto default configuration oftype_contents_orderrule on the same level asib_actiontodefine and document a standard position.
SimplyDanny
#5524
v0.58.0Compare Source
Breaking
The command plugin now requires write permissions so that it works with the
--fixoption without an error.SimplyDanny
The artifact bundle name has changed.
SwiftLintBinary-macos.artifactbundle.zipis now calledSwiftLintBinary.artifactbundle.zip. It now includes an AMD64 Linux binary.Bradley Mackey
#5514
The
inert_deferandunused_capture_listrules have completely been removed after being deprecated for 2 years.SimplyDanny
SwiftLint now requires a Swift 5.10 or higher compiler to build.
The Swift Package Manager plugins continue to work with
Swift 5.9.
SimplyDanny
The
private_unit_testrule's deprecatedregexconfiguration option has been removed after 2 years.Martin Redington
#5912
Experimental
Enhancements
Add Xcode command plugin allowing to run SwiftLint from within Xcode.
SimplyDanny
Add new
async_without_awaitopt-in rule that checks if anasyncdeclaration contains at least oneawait.Jan Kolarik
#5082
Support replacing identity expressions with
\.selfinprefer_key_pathrule from Swift 6 on.SimplyDanny
Support linting only provided file paths with command plugins.
DanSkeel
Add new category for
@IBSegueActiontotype_contents_orderrule.dk-talks
SimplyDanny
Add option to disable
redundant_discardable_letrule in SwiftUI view bodies.SimplyDanny
#3855
Add new
redundant_sendablerule that triggers onSendableconformances oftypes that are implicitly already
Sendabledue to being actor-isolated. Itis enabled by default.
SimplyDanny
Improve performance when exclude patterns resolve to a large set of files.
SimplyDanny
#5018
Bug Fixes
Ignore TipKit's
#Rulemacro inempty_countrule.Ueeek
#5883
Ignore super calls with trailing closures in
unneeded_overriderule.SimplyDanny
#5886
If violations are detected by
lintoranalyze, still perform an updatecheck for new versions of SwiftLint if requested.
Martin Redington
#5904
v0.57.1Compare Source
Breaking
Experimental
Enhancements
String(bytes:encoding:)initializer inoptional_data_string_conversionrule as it accepts allSequencetypes.
[Jordan Rose](htt
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.