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

chore(deps): update dependency nicklockwood/swiftformat to v0.55.1 #100

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 17, 2024

This PR contains the following updates:

Package Update Change
nicklockwood/SwiftFormat minor 0.53.1 -> 0.55.1

Release Notes

nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)

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

v0.53.2

Compare Source

  • Fixed bug where hoistAwait rule could move await before try keyword
  • Fixed bug where redundantSelf rule was confused by @MainActor annotation
  • Fixed edge case where unusedArguments removed required argument inside guard

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

@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.53.2 chore(deps): update dependency nicklockwood/swiftformat to v0.53.3 Mar 2, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from e95bc24 to 5cfe8ed Compare March 2, 2024 13:29
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.53.3 chore(deps): update dependency nicklockwood/swiftformat to v0.53.4 Mar 9, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 5cfe8ed to 5788308 Compare March 9, 2024 09:48
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.53.4 chore(deps): update dependency nicklockwood/swiftformat to v0.53.5 Mar 17, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 5788308 to 3bc3c21 Compare March 17, 2024 13:55
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 3bc3c21 to 7a352b6 Compare April 11, 2024 08:22
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.53.5 chore(deps): update dependency nicklockwood/swiftformat to v0.53.6 Apr 11, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 7a352b6 to 0865c5a Compare April 14, 2024 10:28
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.53.6 chore(deps): update dependency nicklockwood/swiftformat to v0.53.7 Apr 14, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 0865c5a to 7a5de0d Compare April 23, 2024 00:51
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.53.7 chore(deps): update dependency nicklockwood/swiftformat to v0.53.8 Apr 23, 2024
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.53.8 chore(deps): update dependency nicklockwood/swiftformat to v0.53.9 May 12, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 7a5de0d to c1a314e Compare May 12, 2024 19:51
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.53.9 chore(deps): update dependency nicklockwood/swiftformat to v0.53.10 May 18, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from c1a314e to fe7a9f2 Compare May 18, 2024 19:48
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from fe7a9f2 to dbb80ed Compare June 11, 2024 11:07
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.53.10 chore(deps): update dependency nicklockwood/swiftformat to v0.54.0 Jun 11, 2024
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.54.0 chore(deps): update dependency nicklockwood/swiftformat to v0.54.1 Jul 10, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from dbb80ed to 04438d3 Compare July 10, 2024 22:01
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 04438d3 to 92e2ae3 Compare July 22, 2024 10:59
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.54.1 chore(deps): update dependency nicklockwood/swiftformat to v0.54.2 Jul 22, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 92e2ae3 to 796e8f1 Compare July 28, 2024 17:40
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.54.2 chore(deps): update dependency nicklockwood/swiftformat to v0.54.3 Jul 28, 2024
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.54.3 chore(deps): update dependency nicklockwood/swiftformat to v0.54.4 Sep 7, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 796e8f1 to ca381ca Compare September 7, 2024 02:24
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.54.4 chore(deps): update dependency nicklockwood/swiftformat to v0.54.5 Sep 11, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from ca381ca to 180e67a Compare September 11, 2024 20:16
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.54.5 chore(deps): update dependency nicklockwood/swiftformat to v0.54.6 Oct 8, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 180e67a to 10470b8 Compare October 8, 2024 18:37
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 10470b8 to 9364287 Compare November 16, 2024 21:38
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.54.6 chore(deps): update dependency nicklockwood/swiftformat to v0.55.0 Nov 16, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 9364287 to 4a75b16 Compare November 21, 2024 00:34
@renovate renovate bot changed the title chore(deps): update dependency nicklockwood/swiftformat to v0.55.0 chore(deps): update dependency nicklockwood/swiftformat to v0.55.1 Nov 21, 2024
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.

0 participants