Skip to content
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

Update dependency realm/SwiftLint to v0.52.2 #20

Merged
merged 1 commit into from
May 13, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 10, 2023

Mend Renovate

This PR contains the following updates:

Package Update Change
realm/SwiftLint minor 0.51.0 -> 0.52.2

Release Notes

realm/SwiftLint

v0.52.2

Compare Source

Breaking
  • None.
Experimental
  • None.
Enhancements
  • Exclude simple assignments of the form self.x = x from being reported by
    the redundant_self_in_closure rule.
    SimplyDanny
    #​4988
Bug Fixes
  • Make unhandled_throwing_task opt-in instead of enabled by default. The rule
    is still prone to false positives at this point, so this makes enabling the
    rule a conscious decision by end-users.
    JP Simard
    #​4987

  • Fix unhandled_throwing_task false positives when the Task is returned or
    where the throwing code is handled in a Result initializer.
    JP Simard
    #​4987

v0.52.1

Compare Source

Breaking
  • None.
Experimental
  • None.
Enhancements
  • None.
Bug Fixes
  • Let the validates_start_with_lowercase option in name configurations
    expect a severity (warning or error). Not setting it disables the check.
    Boolean values are now deprecated. A true value enables the check as an
    error for the time being to keep the previous behavior.
    SimplyDanny
    #​2180

  • Fixed a false positive in unhandled_throwing_task.
    kylebshr
    #​4984

  • Fix Bazel release tarball for compiling on macOS.
    JP Simard
    #​4985

v0.52.0

Compare Source

Breaking
  • The attributes rule now expects attributes with arguments to be placed
    on their own line above the declaration they are supposed to influence.
    This applies to attributes with any kinds of arguments including single
    key path arguments which were previously handled in a different way. This
    behavior can be turned off by setting attributes_with_arguments_always_on_line_above
    to `false.
    SimplyDanny
    #​4843

  • The internal module structure for SwiftLint has changed to split the
    monolithic SwiftLintFramework into new SwiftLintCore for core linter
    infrastructure, SwiftLintBuiltInRules for built-in rules and
    SwiftLintExtraRules to add your own native rules to SwiftLint.
    JP Simard

Experimental
  • None.
Enhancements
  • Add new superfluous_else rule that triggers on if-statements when an
    attached else-block can be removed, because all branches of the previous
    if-block(s) would certainly exit the current scope already.
    SimplyDanny

  • Add sorted_enum_cases rule which warns when enum cases are not sorted.
    kimdv

  • Add new redundant_self_in_closure rule that triggers in closures on
    explicitly used self when it's actually not needed due to:

    • Strongly captured self ({ [self] in ... })
    • Closure used in a struct declaration (self can always be omitted)
    • Anonymous closures that are directly called ({ ... }()) as they are
      definitly not escaping
    • Weakly captured self with explicit unwrapping

    SimplyDanny
    #​59

  • Extend xct_specific_matcher rule to check for boolean asserts on (un)equal
    comparisons. The rule can be configured with the matchers that should trigger
    rule violations. By default, all matchers trigger, but that can be limited to
    just one-argument-asserts or two-argument-asserts.
    SimplyDanny
    JP Simard
    #​3726

  • Trigger prefer_self_in_static_references rule on more type references.
    SimplyDanny

  • Adds a new reporters command, to improve discoverability of reporters.
    Martin Redington
    #​4819

  • Adds test_parent_classes option to the no_magic_numbers rule.
    Violations within test classes will now be ignored by default.
    Martin Redington
    #​4896

  • Stop enforcing calls to super from the override functions setUp(),
    tearDown(), setUpWithError(), and tearDownWithError() in XCTestCase
    subclasses.
    AndrewDMontgomery
    #​4875

  • Prepend warning: to error messages so that they show in Xcode.
    whiteio
    #​4923

  • The attributes rule received a new boolean option
    attributes_with_arguments_always_on_line_above which is true by default.
    Setting it to false ensures that attributes with arguments like
    @Persisted(primaryKey: true) don't violate the rule if they are on the same
    line with the variable declaration.
    SimplyDanny
    #​4843

  • Add new unhandled_throwing_task rule that triggers when a Task with an
    implicit error type has unhandled trys or errors thrown inside its body.
    This results in errors being silently discarded, which may be unexpected.
    See this forum thread for more details: https://forums.swift.org/t/56066\
    kylebshr

Bug Fixes
  • Fix lower_acl_than_parent rule rewriter by preserving leading whitespace.
    SimplyDanny
    #​4860

  • Ignore block comments in let_var_whitespace rule.
    SimplyDanny
    #​4871

  • Fix false positives in indentation_width rule.
    Sven Münnich

  • Do not trigger reduce_boolean on reduce methods with a first named
    argument that is different from into.
    SimplyDanny
    #​4894

  • Work around dyld warning about duplicate SwiftSyntax classes.
    keith
    #​4782

  • Improve lint times of SwiftLintPlugin by moving the
    excludedPaths(fileManager:) operation out of the linting iterations.
    andyyhope
    #​4844


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 becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from ctreffs as a code owner May 10, 2023 21:33
@renovate renovate bot changed the title Update dependency realm/SwiftLint to v0.52.0 Update dependency realm/SwiftLint to v0.52.1 May 11, 2023
@renovate renovate bot force-pushed the renovate/realm-swiftlint-0.x branch from 7ca8b50 to 5543c4d Compare May 11, 2023 17:13
@renovate renovate bot changed the title Update dependency realm/SwiftLint to v0.52.1 Update dependency realm/SwiftLint to v0.52.2 May 12, 2023
@renovate renovate bot force-pushed the renovate/realm-swiftlint-0.x branch from 5543c4d to 599e345 Compare May 12, 2023 17:44
@ctreffs ctreffs merged commit 977b89e into master May 13, 2023
@ctreffs ctreffs deleted the renovate/realm-swiftlint-0.x branch May 13, 2023 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant