Update Mint non-major dependencies #94
Open
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.2.7
0.55.0
->0.57.2
0.57.0
->0.59.1
Release Notes
krzysztofzablocki/Sourcery (krzysztofzablocki/Sourcery)
v2.2.7
Compare Source
isGeneric
dynamic member by @tayloraswift in https://github.com/krzysztofzablocki/Sourcery/pull/1408v2.2.6
Compare Source
Templates/AutoMockable.stencil
: fix stencil to consider nullable closures as escaping by @alexdmotoc in https://github.com/krzysztofzablocki/Sourcery/pull/1358any
for protocols by @iDevid in https://github.com/krzysztofzablocki/Sourcery/pull/1367nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)
v0.57.2
Compare Source
trailingCommas
rule to handle function declarations with generic arguments.--trailing-commas always
to preserve trailing commas rather than unnecessarily removing trailing commas in some edge cases.v0.57.1
Compare Source
--trailing-commas always
.redundantPublic
rule didn't handle extensions on types defined in public extensions.@Bindable
to list of SwiftUI property wrappers used byorganizeDeclarations
rule.preferFileMacro
rule.v0.57.0
Compare Source
--kebab-case
. Existing option names without dashes remain supported for backwards compatibility. Some options have been renamed to improve clarity.:this
and:previous
in comment directives.--config
file arguments.singlePropertyPerLine
rule to convert property declarations defining multiple properties into separate declarations.redundantMemberwiseInit
rule to remove explicit memberwise initializers that are identical to thestruct
's compiler-synthesized initializer.redundantPublic
rule to remove public access control from properties of internal types.modifiersOnSameLine
rule to keep declaration modifiers on the same line.throwingTests
rule to prefer usingtry
andthrows
in unit tests rather thantry!
.noGuardInTests
rule to prefer convert guard statements in unit tests totry #require(...)
/#expect(...)
ortry XCTUnwrap(...)
/XCTAssert(...)
.urlMacro
rule to convertURL(string: "...")!
initializers to a provided#URL("...")
macro.--trailing-commas collections-only
and--trailing-commas multi-element-lists
options totrailingCommas
rule.--type-blank-lines insert
option toblankLinesAtStartOfScope
andblankLinesAtEndOfScope
rules.--wrap-string-interpolation
option to support disabling line wrapping within string interpolation.--line-between-guards
option toblankLinesAfterGuardStatements
rule.docComments
rule.docComments
rule where trailing comments would be converted to doc comments.redundantNilInit
rule would ignore type bodies with conformances.wrapEnumCases
didn't handle some nested types correctly.#
characters in config files couldn't be escaped.#
characters.--wrap-return-type never
didn't respect--allman true
.v0.56.4
Compare Source
trailingCommas
rule would not insert trailing commas in function declarations with return typetrailingCommas
rule would not insert trailing commas in array literals following!
operatorunusedArguments
rule would ignore function declarations with trailing commasvoid
rule would not handle()
types in typealiasesredundantLet
rule did not detect code inside result builders when nested in conditional compilation blocksv0.56.3
Compare Source
trailingCommas
rule would insert commas in closure types and tuple types used in typealaises (not supported in Swift 6.1)v0.56.2
Compare Source
trailingCommas
rule would insert commas in@escpaing
or@Sendable
closure types (not supported in Swift 6.1)privateStateVariables
rule handled@Previewable
attributes on previous line incorrectlyv0.56.1
Compare Source
trailingCommas
rule would insert commas in places not actually supported by Swift 6.1--wrapeffects
option would incorrectly unwrapasync let
properties following function callredundantEquatable
rule would incorrectly remove==
implementation in factor of synthesized implementation even if type contained non-Equatable properies like tuplesextensionAccessControl
rule would incorrectly hoistpublic
ACL in@preconcurrency
conformancesorganizeDeclarations
rule would sometimes break property declarations with if expression valuesv0.56.0
Compare Source
wrapMultilineFunctionChains
rule to wrap chained method callsenvironmentEntry
rule to update SwiftUIEnvironmentValues
definitions to use the@Entry
macroredundantEquatable
rule to remove explicitEquatable
conformances that would be compiler-synthesizedpreferSwiftTesting
rule to migrate XCTest-based tests to Swift TestingswiftTestingTestCaseNames
rule to remove redundant "test" prefix from Swift Testing test case methods.preferCountWhere
rule to prefercount(where:)
overfilter(_:).count
fileMacro
rule to prefer either#file
or#fileID
, which have the same behavior in Swift 6 and laterblankLinesAfterGuardStatements
rule to remove blank lines between consecuitve guard statements, and add blank line after last guard statement.privateStateVariables
rule to addprivate
access control to@State
propertiesemptyExtensions
rule to remove extensions that contain no declarations or conformances--preserveacronyms
option toacronyms
rule--wrapreturntype never
option towrapArguments
ruletrailingCommas
to support Swift 6.1 trailing comma functionalityopaqueGenericParameters
now supports protocol requirements without a body--wrapeffects
and--wrapreturntype
now support protocol requirements and closure typesblankLinesAtStartOfScope
rule now supports switch cases and closure capture / parameter listsorganizeDeclarations
line count threshold would ignoreswiftformat:sort
directivesorganizeDeclarations
rule would unexpectedly remove non-mark commentsbrew install swiftformat --head
. Prerelease builds are subject to breaking changes.v0.55.6
Compare Source
repeat
,each
keywords)propertyTypes
rule could cause build failure in properties withsome
type--callsiteparen balanced
would have no effect when using--closingparen same-line
v0.55.5
Compare Source
yodaConditions
rule mangling generic function callselse
or opening brace followingif
/switch
expressionorganizeDeclarations
rule no longer treats properties withdidSet
as computedv0.55.4
Compare Source
where
clause forswitch ... case
statementsunusedArguments
could remove required arguments in some casessortTypealiases
rule now correctly handlesany
keywordv0.55.3
Compare Source
sortTypealiases
rule could mangle generic types, or ones using theany
keywordpreferKeyPaths
rule now only uses\\.self
for Swift 6 and later (fix din't land yet in 5.10)artifactbundle
not working onubuntu-latest
v0.55.2
Compare Source
unusedArguments
failed to remove arguments that matched switch variable bindingsunusedArguments
failed to remove arguments that matched nested function call labelsblankLinesAtStartOfScope
when usingorganizeDeclarations
rulewrap
rule lint errorspreferKeyPaths
rule now handles the\\.self
case for Swift 5.10 and later\.?
v0.55.1
Compare Source
docCommentsBeforeModifiers
got confused byenum
cases that match modifier nameswrapEnumCases
would mangle nested or successiveenum
declarationsrealm/SwiftLint (realm/SwiftLint)
v0.59.1
Compare Source
Breaking
opaque_over_existential
opt-in rule as it causes too many false positivesthat can even lead to wrong-compilable code when
any
is required by a protocol thetype conforms to. In this case, using
some
can be totally valid even though theprotocol requirement is not reimplemented for the type causing behavioral changes.
SimplyDanny
Experimental
Enhancements
allowed_numbers
option to theno_magic_numbers
rule.Martin Redington
Bug Fixes
v0.59.0
Compare Source
Breaking
SimplyDanny
Experimental
swiftlint-dev
command 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 -h
to 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_strings
toline_length
rule. It allows to ignore too longlines inside of multiline strings.
thisIsTheFoxe
#2689
Ignore
UIColor
initializers inno_magic_numbers
rule.suojae
hyeffie
#5183
Exclude types with a
@Suite
attribute and functions annotated with@Test
fromno_magic_numbers
rule.Also treat a type as a
@Suite
if it contains@Test
functions.SimplyDanny
#5964
Add new
opaque_over_existential
opt-in rule that triggers when the existentialany
type of afunction parameter can be replaced with an opaque
some
type.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_types
option tolegacy_objc_type
rule to ignore certain types.kapitoshka438
#3723
Add
excluded_methods
configuration option tounneeded_override
to opt out checking methods with a given name.For example, this helps avoid a conflict with
balanced_xctest_lifecycle
where one ofsetUp/tearDown
is 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_imports
rule to be configurable.SimplyDanny
#5978
Silence
no_magic_numbers
rule in conditions of#if
directives.SimplyDanny
#6000
Consider types restricting a protocol to classes in composed inherited types in
class_delegate_protocol
rule.SimplyDanny
#5982
Rewrite
type_contents_order
rule with SwiftSyntax fixing an issue with experimental availability macros.SimplyDanny
#5999
Update
file_name
rule to considermacro
types.fraioli
#6026
v0.58.2
Compare Source
Breaking
Experimental
Enhancements
Bug Fixes
SimplyDanny
#5966
v0.58.1
Compare Source
Breaking
If you are referring to the
swiftlint
binary 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_sendable
correction by removing a remaining trailing comma as well whenSendable
was last.SimplyDanny
#5952
Remove lints for
redundant_sendable
on protocols, whereSendable
is not redundant.riley-williams
#5958
Add
ib_segue_action
to default configuration oftype_contents_order
rule on the same level asib_action
todefine and document a standard position.
SimplyDanny
#5524
v0.58.0
Compare Source
Breaking
The command plugin now requires write permissions so that it works with the
--fix
option without an error.SimplyDanny
The artifact bundle name has changed.
SwiftLintBinary-macos.artifactbundle.zip
is now calledSwiftLintBinary.artifactbundle.zip
. It now includes an AMD64 Linux binary.Bradley Mackey
#5514
The
inert_defer
andunused_capture_list
rules 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_test
rule's deprecatedregex
configuration 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_await
opt-in rule that checks if anasync
declaration contains at least oneawait
.Jan Kolarik
#5082
Support replacing identity expressions with
\.self
inprefer_key_path
rule from Swift 6 on.SimplyDanny
Support linting only provided file paths with command plugins.
DanSkeel
Add new category for
@IBSegueAction
totype_contents_order
rule.dk-talks
SimplyDanny
Add option to disable
redundant_discardable_let
rule in SwiftUI view bodies.SimplyDanny
#3855
Add new
redundant_sendable
rule that triggers onSendable
conformances oftypes that are implicitly already
Sendable
due 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
#Rule
macro inempty_count
rule.Ueeek
#5883
Ignore super calls with trailing closures in
unneeded_override
rule.SimplyDanny
#5886
If violations are detected by
lint
oranalyze
, still perform an updatecheck for new versions of SwiftLint if requested.
Martin Redington
#5904
v0.57.1
Compare Source
Breaking
Experimental
Enhancements
Suggest failable
String(bytes:encoding:)
initializer inoptional_data_string_conversion
rule as it accepts allSequence
types.
Jordan Rose
SimplyDanny
Support reading files to lint from Input File Lists provided
by Run Script Build Phases in Xcode using the command-line
argument
--use-script-input-file-lists
.BlueVirusX
Adds a
lenient
configuration file setting, equivalent to the--lenient
command line option.
Martin Redington
#5801
Support type casting on configuration option values defined by environment variables.
Without a cast, these values would always be treated as strings leading to a potentially
invalid configuration.
SimplyDanny
#5774
Add new option
max_number_of_single_line_parameters
that allows only the specified maximumnumber of parameters to be on one line when
allows_single_line = true
. If the limit isexceeded, the rule will still trigger. Confusing option combinations like
allows_single_line = false
together with
max_number_of_single_line_parameters > 1
will be reported.kimdv
SimplyDanny
#5781
The
redundant_type_annotation
rule gains a new option,ignore_properties
, that skips enforcement on members in atype declaration (like a
struct
). This helps the rule coexist withthe
explicit_type_interface
rule that requires such redundancy.jaredgrubb
#3750
Allow inherited isolation parameter to be first in function signatures
depending on the new option
ignore_first_isolation_inheritance_parameter
which is
true
by default.SimplyDanny
#5793
Bug Fixes
Run command plugin in whole package if no targets are defined in the
package manifest.
SimplyDanny
#5787
Silence
superfluous_else
rule onif
expressions with only a singleavailability condition.
SimplyDanny
#5833
Stop triggering the
control_statement
rule on closures being directlycalled as conditions.
SimplyDanny
#5846
Do not trigger
self_in_property_initialization
rule onself
inkey paths expressions.
SimplyDanny
#5835
Allow to specify transitive modules to be taken into account by
unused_import
rule. This avoids that required imports are removed.Paul Taykalo
SimplyDanny
#5167
Only pass cache path and directory paths to commands that accept these arguments
in the command plugin.
SimplyDanny
#5848
Do not throw deprecation warning if deprecated property is not
presented in configuration.
chipp
#5791
The
prefer_type_checking
rule will no longer trigger for non-optionaltype casting (
as
), or for comparisons to optional types.Martin Redington
#5802
Fixes an issue where the
superfluous_disable_command
rule could generatefalse positives for nested disable commands for custom rules.
Martin Redington
#5788
Fixes the
--only-rule
command line option, when a default.swiftlint.yml
is absent. Additionally rules specified with
--only-rule
on the commandline can now be disabled in a child configuration, to allow specific
directories to be excluded from the rule (or from being auto-corrected by
the rule), and
--only-rule
can now be specified multiple timesto run multiple rules.
Martin Redington
#5711
Fixes
file_name
rule to match fully-qualified names of nested types.Additionally adds a
require_fully_qualified_names
boolean option to enforcethat file names match nested types only using their fully-qualified name.
fraioli
#5840
Fixes an issue where the
vertical_whitespace_between_cases
rule does notrecognize
@unknown default
.Jared Grubb
#5788
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.