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

[Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.55.3" #365

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 3, 2024

This PR contains the following updates:

Package Update Change
nicklockwood/SwiftFormat minor from: "0.53.2" -> from: "0.55.3"

Release Notes

nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)

v0.55.3

Compare Source

  • Fixed bug where sortTypealiases rule could mangle generic types, or ones using the any keyword
  • The preferKeyPaths rule now only uses \\.self for Swift 6 and later (fix din't land yet in 5.10)
  • Added speculative fix for plugin artifactbundle not working on ubuntu-latest

v0.55.2

Compare Source

  • Fixed bug where unusedArguments failed to remove arguments that matched switch variable bindings
  • Fixed bug where unusedArguments failed to remove arguments that matched nested function call labels
  • Fixed spurious lint errors for blankLinesAtStartOfScope when using organizeDeclarations rule
  • Fixed bug where indentation errors were incorrectly reported as wrap rule lint errors
  • The preferKeyPaths rule now handles the \\.self case for Swift 5.10 and later
  • Fixed parsing of keyPaths beginning with \.?

v0.55.1

Compare Source

  • Fixed bug where docCommentsBeforeModifiers got confused by enum cases that match modifier names
  • Fixed bug where wrapEnumCases would mangle nested or successive enum declarations
  • Artifact Bundle now includes pre-built binary for ARM-based Linux systems

v0.55.0

Compare Source

  • Added docCommentsBeforeModifiers rule to hoist doc comments above declaration modifiers
  • Added unusedPrivateDeclarations rule to remove unused private or fileprivate declarations
  • Added propertyTypes rule to control the use of inferred or explicit types for properties
  • Renamed the --redundanttype option to --propertytypes as it's shared by both rules
  • Added --ranges preserve and --operatorfunc preserve options
  • Added --languagemode option to specify if you are using Swift 5 or 6 language mode
  • The organizeDeclarations rule can now sort declarations by name/type/visibility/etc
  • Fixed organizeDeclarations bug where --beforemarks unexpectedly matched keywords in function bodies
  • Fixed missing lint output for organizeDeclarations rule
  • Fixed bug in markTypes rule for chained protocol extension names
  • Renamed the confusing --onelineforeach option to --inlinedforeach
  • Git info can now be used in header comments when formatting code from stdin
  • You can now use the --outputtokens option to print output as tokens in JSON format
  • Each rule and test is now defined in a separate file to make it easier to maintain/contribute
  • Updated minimum Swift version for building SwiftFormat to 5.3 (you can still format older Swift code)
  • Docker build now uses static Linux SDK

v0.54.6

Compare Source

  • Fixed incorrect wrapping of conditional bodies inside single-line string literals
  • Fixed properties inside type with where clause being treated as local scope
  • Fixed regression in wrapMultilineStatementBraces rule
  • Fixed tokenizing of a throwing closure type in a generics clause
  • Fixed bug in parseDeclarations where incorrect tokens could cause rules to time out
  • Fixed issue where organizeDeclarations would add extra blank lines if type had blank lines with spaces
  • Updated SwiftFormat for Xcode installation instructions for macOS 15 Sequoia
  • Added known issue to README for preferForLoop rule

v0.54.5

Compare Source

  • Fixed crash in unusedArguments rule
  • Fixed bug where preferForLoop failed if forEach contains guard ... else { return }

v0.54.4

Compare Source

  • Fixed bug where trailing comma was erroneously inserted into a wrapped array type extension
  • Fixed bug where return was incorrectly removed inside catch statement with where clause
  • Fixed opaqueGenericParameters rule being incorrectly applied to functions with typed throws
  • Fixed spaceAroundBrackets behaving incorrectly inside a macro invocation
  • Fixed unusedArguments false positive inside multiline string literal
  • Fixed a case where removing return resulted in non-compiling code for opaque return types
  • Redundant Void return type is now removed from functions in protocol declarations
  • Fixed a bug where unusedArguments didn't handle conditional assignment shadowing correctly
  • Fixed Xcode 16 Beta warnings related to unhandled files when building SwiftFormat package
  • The Swift runtime is now packaged with the installer on Windows as on Linux
  • The Windows installer now uses a more conventional directory structure
  • SwiftFormat for Windows now supports arm64

v0.54.3

Compare Source

  • Fixed issue where --wrapeffects never could unexpectedly remove unrelated code
  • Fixed --condassignment option (setting this previously had no effect)
  • The redundantReturn rule no longer removes conditional returns if conditionalAssignment is disabled
  • The redundantObjc rule now strips implicit @objc attribute for @IBSegueAction functions
  • Fixed bug where violations for rules that insert new lines were sometimes ignored in lint output

v0.54.2

Compare Source

  • Fixed broken formatter cache, which caused a significant performance regression since 0.54.0
  • The blankLinesBetweenChainedFunctions rule now removes blank line after comments in the chain
  • The blankLinesBetweenChainedFunctions rule no longer conflicts with blankLinesAroundMark
  • FixedredundantInternal removing required internal keyword in extensions with where clause
  • Fixed another case of spurious return removal in conditional blocks
  • Fixed redundantNilInit rule inserting nil after as keyword

v0.54.1

Compare Source

  • The --nilInit insert option is no longer applied to lazy or attributed properties
  • The blankLinesBetweenChainedFunctions rule now correctly handles comments in the chain
  • Fixed indenting of wrapped arguments in --fragment mode
  • Fixed bug where attributes were mistaken for an accessor in a computer property
  • Fixed indenting of commented code after an opening bracket
  • Fixed spurious removal of return in conditional blocks
  • Fixed --lint mode reporter output when using stdin

v0.54.0

Compare Source

  • Added blankLineAfterSwitchCase rule for inserting blank lines after switch cases
  • Added consistentSwitchCaseSpacing rule for ensuring consistent spacing between switch cases
  • Added redundantProperty rule for removing variable assignments where value is immediately returned
  • Added redundantTypedThrows rule for stripping redundant Never or any Error throws types
  • Setting --report without --reporter type now raises an error if type can't be inferred
  • Added XML reporter for Checkstyle-compatible lint reporting (use the --reporter xml option)
  • Added --typedelimiter option for controlling spacing around the colon in type definitions
  • Added --initcodernil option for returning nil instead of asserting in unavailable init?(coder:)
  • The fileHeader rule now uses git info for created date (if available) instead of file system
  • Added git author, author.name and author.email tokens for file header templates
  • Added --callsiteparen option for controlling closing paren placement at function call sites
  • The wrapAttributes rule can now be applied differently to computed properties vs stored properties
  • The wrapAttributes rule can now be applied differently to complex (parameterized) vs simple attributes
  • Replaced --varattributes with --storedvarattrs, --computedvarattrs and --complexattrs options
  • Added —-nilinit option for controlling whether redundantNilInit adds or removes explicit nil
  • Added ability to organize declarations by type over visibility (use --organizationmode type)
  • Fixed bug where enabling organizeDeclarations for structs caused sortDeclarations to have no effect
  • Fixed bug where if statement body could be incorrectly parsed as a trailing closure
  • Improved attribute handling in opaqueGenericParameters rule
  • SwiftFormat now recognizes init and _modify property accessors
  • Fixed bug with preferForLoop rule and tuple argument matching
  • Extended conditionalAssignment rule to handle more cases
  • Added --condassignment after-property option
  • Fixed await being hoisted outside of macro arguments
  • Fixed unsafe adding/removal of self within macros
  • Added os_log to --selfrequired defaults

v0.53.10

Compare Source

  • Fixed creation of spurious stdout directory when using --output stdout
  • Fixed unusedArguments false positive for multiline function call arguments
  • Fixed parsing of generic arguments containing attributes or ~ operator
  • Fixed spurious errors about missing --report or --reporter arguments
  • Fixed strongifiedSelf removing required backticks around nonisolated self
  • Deprecated explicit default value for --reporter (introduced in 0.53.9)
  • Added support for sending keyword

v0.53.9

Compare Source

  • Fixed bug in unusedArguments when shadowing function argument with conditional assignment declaration
  • Individual --lint errors are no longer shown in --quiet mode (restores pre-0.53.8 behavior)

v0.53.8

Compare Source

  • Added --strict option to emit non-zero exit code after applying changes in formatting mode
  • The enumNamespaces rule is no longer applied to structs with macros that have generic arguments
  • The opaqueGenericParameters rule is no longer applied to structs with macros or attributes
  • Fixed another case where redundantParens spuriously removed parens inside a closure
  • Fixed bug where redundantInit mishandled a .init after a ternary operator

v0.53.7

Compare Source

  • Fixed bug with redundantParens where first parens inside a closure were spuriously removed
  • Fixed wrapEnumCases rule mangling unindented cases
  • The wrapEnumCases rule no longer wraps cases inside inline enum declarations
  • Improved the redundantInit metatype heuristic to reduce false positives

v0.53.6

Compare Source

  • Fixed bug where a space was incorrectly added before a . operator inside attribute arguments
  • The redundantType rule no longer strips required explicit type from @Model class default values
  • Fixed issue where redundantInit didn't work on collection types
  • The redundantParens rule now correctly handles @MainActor closures
  • Fixed bug where required parens were removed around each X parameter pack expressions
  • Fixed issue where --wrapreturntype if-multiline didn't work with arrays, dictionaries, tuples, or generic types
  • The spaceAroundParens/Brackets rules now correctly insert a space after borrowing/consuming and isolated
  • Fixed spurious line breaks inserted between scoped import statements
  • Added --doccomments preserve option to preserve all doc comments, even if not followed by a declaration

v0.53.5

Compare Source

  • Fixed bug with trailing comma being inserted into wrapped capture list
  • Fixed bugs with parsing nonisolated(unsafe) modifiers
  • Fixed bug with hoisting try or async after a string literal expression
  • Fixed issue with parsing expressions containing generic arguments
  • Lint warnings are now displayed as errors when not running in --lenient mode
  • Improved error message for unexpected static/class modifiers
  • Added Swift 6.0 to list of supported Swift versions

v0.53.4

Compare Source

  • The enumNamespaces rule is no longer applied to structs with attributes or macros
  • The new nonisolated(unsafe) modifier is now handled correctly
  • Added support for do throws(Type) { ... } clauses

v0.53.3

Compare Source

  • The preferForLoop rule now correctly singularizes loop conditions that end with "cases"
  • Fixed bug where preferForLoop mangled throwing or async forEach expressions
  • Fixed extension body not being sorted if organizeDeclarations was enabled but excluded declaration type
  • Fixed conditionalAssignment bugs with @unknown default cases
  • Fixed some unsafe applications of the enumNamespaces rule
  • Added preliminary support for typed throws

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.

🔕 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovate label Mar 3, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 311d7b7 to 740dab6 Compare March 4, 2024 10:01
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.3" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.4" Mar 9, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 740dab6 to b417860 Compare March 9, 2024 11:21
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from b417860 to 2bf1d0c Compare March 17, 2024 04:53
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.4" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.5" Mar 18, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 2bf1d0c to 657c1ac Compare March 18, 2024 00:44
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 657c1ac to 630a3d4 Compare April 12, 2024 00:44
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.5" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.6" Apr 12, 2024
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.6" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.7" Apr 14, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 630a3d4 to 87b02e0 Compare April 14, 2024 14:47
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.7" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.8" Apr 23, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 87b02e0 to 554f122 Compare April 23, 2024 00:44
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 554f122 to 111ba5e Compare May 13, 2024 00:48
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.8" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.9" May 13, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 111ba5e to 3ab0502 Compare May 20, 2024 00:47
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.9" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.10" May 20, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 3ab0502 to 9d6c0be Compare June 12, 2024 00:50
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.53.10" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.0" Jun 12, 2024
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.0" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.1" Jul 11, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 9d6c0be to 45b2a74 Compare July 11, 2024 00:51
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 45b2a74 to 9916c94 Compare July 23, 2024 00:52
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.1" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.2" Jul 23, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 9916c94 to f9208a0 Compare July 29, 2024 00:53
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.2" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.3" Jul 29, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from f9208a0 to 02fdaad Compare September 7, 2024 05:33
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.3" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.4" Sep 7, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 02fdaad to 3f87edc Compare September 12, 2024 00:56
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.4" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.5" Sep 12, 2024
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.5" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.6" Oct 9, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 3f87edc to 27a9de5 Compare October 9, 2024 00:58
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 27a9de5 to 9fc8b95 Compare November 17, 2024 02:32
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.54.6" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.55.0" Nov 17, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 9fc8b95 to 30221e1 Compare November 21, 2024 01:01
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.55.0" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.55.1" Nov 21, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 30221e1 to dfb010e Compare November 25, 2024 01:03
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.55.1" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.55.2" Nov 25, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from dfb010e to 4aa4aa4 Compare November 27, 2024 01:03
@renovate renovate bot changed the title [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.55.2" [Renovate] Update dependency nicklockwood/SwiftFormat to from: "0.55.3" Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants