Update dependency realm/SwiftLint to v0.54.0 #61
Merged
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.52.4
->0.54.0
Release Notes
realm/SwiftLint (realm/SwiftLint)
v0.54.0
Compare Source
Breaking
SimplyDanny
JP Simard
Experimental
Enhancements
Add
only
configuration option totodo
rule which allows to specifywhether the rule shall trigger on
TODO
s,FIXME
s or both.gibachan
#5233
Make
unneeded_break_in_switch
auto correctable.KS1019
Speed up
closure_parameter_position
rule when there are no violations.Marcelo Fabri
Rewrite
cyclomatic_complexity
rule using SwiftSyntax.Marcelo Fabri
Rewrite
redundant_void_return
rule using SwiftSyntax.Also include redundant void return clauses for closures in addition to
functions. This can be disabled by configuring the rule with
include_closures: false
.Marcelo Fabri
JP Simard
Rewrite
discouraged_optional_collection
rule using SwiftSyntax, catchingmore violations.
JP Simard
Rewrite
duplicate_imports
rule using SwiftSyntax.JP Simard
Handle
viewIsAppearing
in thetype_contents_order
rule.u-abyss
#5259
Rewrite
vertical_parameter_alignment_on_call
rule using SwiftSyntax, fixingsome false positives.
Marcelo Fabri
#3581
Rewrite
no_grouping_extension
rule using SwiftSyntax.Marcelo Fabri
Bug Fixes
Fix false positive in
implicit_getter
rule when using unknown accessors.kabiroberai
#5300
Fix correction of
explicit_init
rule by keeping significant trivia.BB9z
#5289
Fix invalid corrections for opaque and existential optionals in
syntactic_sugar
rule.SimplyDanny
#5277
Fix false positive in
unused_import
rule that triggered on@_exported
imports which could break downstream modules if removed.jszumski
#5242
Fix false positive in
unused_import
rule when using a constructordefined in a transitive module.
jszumski
#5246
v0.53.0
Compare Source
Breaking
Hide all
Reporter
s from SwiftLint's' public interface.SimplyDanny
The options
inlcuded
,name
andmessage
are from now on ignored in theconfiguration for the
private_unit_test
rule. The optionregex
is stillsupported but is deprecated. It's recommended to use the list
test_parent_classes
instead which accepts names of parent test classes.SimplyDanny
Remove support for disable and enable commands in multiline comments.
Martin Redington
#4798
Experimental
Enhancements
Show specific violation message for the
attributes
rule when the optionalways_on_line_above
orattributes_with_arguments_always_on_line_above
is involved.
chrisngabp
5103
Rewrite
control_statement
rule using SwiftSyntax.SimplyDanny
Add new
non_overridable_class_declaration
rule that triggers onclass
function and variable declarations in final classes that are not final
themselves or private.
SimplyDanny
The Homebrew formula for SwiftLint now also installs completion scripts for
Bash, Zsh and fish.
SimplyDanny
Add new
private_swiftui_state
opt-in rule to encourage settingSwiftUI
@State
and@StateObject
properties to private.mt00chikin
#3173
The
implicit_return
rule now supports the kindssubscript
andinitializer
in theincluded
configuration list.SimplyDanny
Add
unneeded_override
rule to remove function overrides that onlycall super.
keith
5139
Show a rule's active YAML configuration in output of
swiftlint rules <rule>
.SimplyDanny
Add
invokeTest()
tooverridden_super_call
defaults.DylanBettermannDD
Add
--config-only
option torules
command allowing to print only the YAMLconfiguration of a single or all rules.
SimplyDanny
Add
--default-config
option torules
command allowing to use defaultvalues for configurations being printed for a single rule or all rules.
SimplyDanny
Add
include_bare_init
option to theexplicit_init
rule.include_bare_init
encourages using named constructors over
.init()
and type inference.Martin Redington
#5203
Improved the reported location and reasons provided for issues
detected by the
invalid_swiftlint_command
rule.Martin Redington
#5204
100 is no longer considered to be a magic number by the
no_magic_numbers
rule.
Martin Redington
#5215
Adds a
strict
configuration file setting, equivalent to the--strict
command line option.
Martin Redington
#5226
Extend
implicitly_unwrapped_optional
rule with the new modeweak_except_iboutlets
that only checksweak
variables.Ricky Tan
Bug Fixes
Respect grapheme clusters in counting the number of characters in the
collection_alignment
rule.kishikawakatsumi
#4837
Fix false positive in
control_statement
rule that triggered on conditionswith trailing closures where parentheses are recommended by the compiler.
SimplyDanny
#5135
Fix runtime error when an excluded directory does not exist.
SimplyDanny
#5078
Support
switch
expressions used in expression contexts inswitch_case_alignment
rule.SimplyDanny
#5191
#5227
#5080
Fix bug in
prefer_self_in_static_references
rule that triggered oninitializers of computed properties in classes when the property had an
accessor block.
SimplyDanny
#5118
Document
exclude_ranges
option fornumber_separator
rule.SimplyDanny
Rewrite
implicit_return
rule with SwiftSyntax fixing a few false positivesand false negatives in the process.
SimplyDanny
#5161
Make sure
severity
is configurable fortype_contents_order
rule.SimplyDanny
Bazel: Mark
rules_xcodeproj
as a development dependency.Thi Doãn
JP Simard
#4737
Fix false negatives for the
unneeded_synthesized_initializer
rulefor nested structs in classes.
Martin Redington
#5120
Fix some unexpected rule enablement interactions between parent and
child configurations.
Martin Redington
#4876
The
no_magic_numbers
rule will not trigger for violations in anextension, if the extended class inherits from one of the specified
test_parent_classes
, as long as the class declaration and theextension are in the same source file.
Martin Redington
#5137
Fix false positive in the
ns_number_init_as_function_reference
rulewhen calling
NSNumber.init(value:)
directly.Marcelo Fabri
#5172
The
no_magic_numbers
rule will not trigger for bitwise shiftoperations.
Martin Redington
#5171
The
accessibility_label_for_image
rule will no longer ignore theImage(systemName:)
constructor, as many system images do nothave good accessibility labels.
Martin Redington
#5165
Fix false positives for
superfluous_disable_command
rule.Martin Redington
#4798
Fix false positive in the
test_case_accessibility
rule.gibachan
#5211
Configuration
📅 Schedule: Branch creation - "after 7pm every weekday,before 8am every weekday,every weekend" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.