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 nicklockwood/SwiftFormat to v0.54.3 #31

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 18, 2023

Mend Renovate

This PR contains the following updates:

Package Update Change
nicklockwood/SwiftFormat minor 0.51.12 -> 0.54.3

Release Notes

nicklockwood/SwiftFormat (nicklockwood/SwiftFormat)

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

v0.53.1

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.0

Compare Source

  • Added preferForLoop rule to convert forEach { ... } calls to regular for loops
  • Added wrapLoopBodies rule to wrap single-line loop bodies over multiple lines
  • Added noExplicitOwnership rule to remove unwanted borrowing and consuming modifiers
  • Added wrapMultilineConditionalAssignment rule to wrap if or switch expressions to new line
  • The wrapAttributes rule no longer unwraps attributes if they would exceed --maxwidth
  • The typeSugar rule's --shortoptionals option now defaults to except-properties
  • Enabled blankLinesBetweenChainedFunctions rule by default
  • Enabled blankLineAfterImports rule by default
  • Fixed self being incorrectly inserted before set clause in computed properties
  • Fixed a bug in parseType() helper function where qualified types were not recognized
  • Fixed Xcode command plugin

v0.52.11

Compare Source

  • Updated if/switch expression workaround for Swift 5.9 bug to handle as! casts
  • Fixed indent logic for wrapped conditional assignment expressions
  • Fixed assertion failure in redundantSelf rule
  • Fixed raw string parsing bug

v0.52.10

Compare Source

  • Fixed enumNamespaces rule breaking import struct/class statements
  • Fixed unsafe application of conditionalAssignment rule to switch statements containing #if blocks

v0.52.9

Compare Source

  • Fixed redundantClosure removing required closure around conditional statements
  • Fixed redundantClosure removing closure containing conditional expressions inside a method call
  • Fixed redundantClosure generating invalid code when the redundantReturn rule is disabled
  • Fixed issue where if/switch expressions with as? cast would break build in Swift 5.9
  • Fixed blankLineAfterImports introducing spurious blank line before @preconcurrency attribute
  • Fixed bug where enumNamespaces rule wouldn't be applied immediately after an import statement
  • Fixed issue where switch case with multiple where clauses could be parsed incorrectly
  • The SwiftFormat SPM plugin now formats local dependencies, not just final product targets

v0.52.8

Compare Source

  • Fixed redundantClosure rule in cases where an if/switch expression is not permitted
  • The docComments rule now correctly handles macro comments
  • The docComments rule is now only applied to a comment block if all lines match the pattern

v0.52.7

Compare Source

  • Fixed bug where conditionalAssignment and redundantClosure rules would be applied incorrectly
  • Fixed redundantClosure rule leaving stray try or await keywords behind

v0.52.6

Compare Source

  • Fixed bug where redundantReturn rule was incorrectly applied to consecutive if statements in Swift 5.9

v0.52.5

Compare Source

  • Fixed bug where redundantReturn rule could break fallible initializers in Swift 5.9
  • Fixed incorrect application of docComments rule inside #if statements
  • The docComments rule no longer treats comments starting with Note: as a special directive
  • Fixed incorrect indenting inside #if statements immediately preceded by a comment
  • Removed arbitrary unwrap threshold for braces rule when no --maxwidth is specified
  • You can now include operators in the --asynccapturing list

v0.52.4

Compare Source

  • Fixed docComments rule incorrectly replacing comments inside switch cases and if/guard conditions
  • Fixed redundantLet rule removing required let inside ViewBuilder modifiers
  • Fixed redundantLet rule removing required let after @MainActor or @Sendable
  • Fixed bug when using --wrapconditions after-first if first line of condition is a comment
  • Added more context to "failed to terminate" error message to aid tracking down issues
  • Updated sortTypealiases rule to also remove duplicate protocols in declaration
  • Added some fixes to support parameter packs in Swift 5.9

v0.52.3

Compare Source

  • Fixed incorrect hoisting of try inside multiline string literal interpolations
  • Fixed incorrect hoisting of try inside generic type initializer calls
  • Fixed case where parens were incorrectly removed around optional function calls
  • Fixed bug where early return statements added while debugging would be incorrectly removed

v0.52.2

Compare Source

  • Fixed static Self being incorrectly removed in let or if let expressions
  • Fixed // swiftformat:disable directive not working for redundantReturn rule
  • Fixed spurious assertion failure

v0.52.1

Compare Source

  • Updated if/switch expression workaround for Swift 5.9 bug to handle as! casts
  • Fixed indent logic for wrapped conditional assignment expressions
  • Fixed assertion failure in redundantSelf rule
  • Fixed raw string parsing bug

v0.52.0

Compare Source

  • Added redundantInternal rule to remove redundant internal access modifiers
  • Added sortTypealiases rule to sort typealias types alphabetically
  • Added headerFileName rule to ensure filename in header comment matches actual file
  • Added redundantStaticSelf rule to remove redundant self inside static functions
  • Added blankLinesBetweenChainedFunctions rule to remove blank lines inside function chains
  • Added applicationMain rule to remove obsolete @UIApplicationMain and @NSApplicationMain attributes
  • Renamed sortedSwitchCases rule to sortSwitchCases for consistency
  • Renamed sortedImports rule to sortImports for consistency
  • Redundant return is now correctly removed in switch cases with associated values
  • Fixed failure to terminate when removing returns from long switch statement
  • Fixed spurious "unexpected static" error in redundantSelf rule
  • Deliberate blank line before else statement is now preserved
  • Rule options are now case-insensitive

v0.51.15

Compare Source

  • Fixed regression in unusedArguments rule that caused used parameters to be marked unused
  • Fixed some additional cases where regex literal was mistaken for / operator
  • Vertical tab and form feed characters in source file no longer cause spurious errors

v0.51.14

Compare Source

  • Withdrawn

v0.51.13

Compare Source

  • Fixed bug where importing a type caused the redundantSelf rule to be silently disabled
  • Fixed bug where unusedArguments would remove an argument that was used after an if
  • Fixed Windows support and added Windows release binaries (thanks to Saleem Abdulrasool)
  • Fixed bug where backticks were incorrectly stripped from standalone $ identifier
  • Added support for package keyword in organizeDeclarations rule

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 requested a review from ctreffs as a code owner July 18, 2023 20:00
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.51.13 Update dependency nicklockwood/SwiftFormat to v0.51.14 Aug 6, 2023
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 8e298f5 to ec33298 Compare August 6, 2023 01:13
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.51.14 Update dependency nicklockwood/SwiftFormat to v0.51.15 Aug 6, 2023
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from ec33298 to 4b73e22 Compare August 6, 2023 19:55
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.51.15 Update dependency nicklockwood/SwiftFormat to v0.52.0 Aug 13, 2023
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 4b73e22 to bf2cd02 Compare August 13, 2023 19:40
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.52.0 Update dependency nicklockwood/SwiftFormat to v0.52.1 Aug 17, 2023
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from bf2cd02 to 38d1ede Compare August 17, 2023 23:25
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.52.1 Update dependency nicklockwood/SwiftFormat to v0.52.2 Aug 19, 2023
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 38d1ede to 208f69b Compare August 19, 2023 07:42
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.52.2 Update dependency nicklockwood/SwiftFormat to v0.52.3 Sep 2, 2023
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 208f69b to 92d5825 Compare September 2, 2023 10:11
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.52.3 Update dependency nicklockwood/SwiftFormat to v0.52.4 Sep 17, 2023
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 92d5825 to 47896cc Compare September 17, 2023 20:09
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.52.4 Update dependency nicklockwood/SwiftFormat to v0.52.5 Sep 30, 2023
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch 2 times, most recently from b837848 to cf55516 Compare October 1, 2023 07:05
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.52.5 Update dependency nicklockwood/SwiftFormat to v0.52.6 Oct 1, 2023
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.52.6 Update dependency nicklockwood/SwiftFormat to v0.52.7 Oct 6, 2023
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from cf55516 to 44b567e Compare October 6, 2023 19:07
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.52.7 Update dependency nicklockwood/SwiftFormat to v0.52.8 Oct 17, 2023
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 44b567e to ce3ba3b Compare October 17, 2023 13:43
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from ce3ba3b to 650335e Compare November 11, 2023 09:02
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.52.8 Update dependency nicklockwood/SwiftFormat to v0.52.9 Nov 11, 2023
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.52.9 Update dependency nicklockwood/SwiftFormat to v0.52.10 Nov 15, 2023
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 650335e to eb54438 Compare November 15, 2023 01:29
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.52.10 Update dependency nicklockwood/SwiftFormat to v0.52.11 Dec 6, 2023
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from eb54438 to 0e05860 Compare December 6, 2023 01:21
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 0e05860 to 52ba9c4 Compare January 8, 2024 23:29
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.52.11 Update dependency nicklockwood/SwiftFormat to v0.53.0 Jan 8, 2024
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.53.0 Update dependency nicklockwood/SwiftFormat to v0.53.1 Jan 26, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 52ba9c4 to 3bf11c5 Compare January 26, 2024 19:23
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 3bf11c5 to 458f74f Compare February 17, 2024 15:51
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.53.1 Update dependency nicklockwood/SwiftFormat to v0.53.2 Feb 17, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 458f74f to e199ff8 Compare March 2, 2024 11:40
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.53.2 Update dependency nicklockwood/SwiftFormat to v0.53.3 Mar 2, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from e199ff8 to c21e247 Compare March 9, 2024 11:07
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.53.3 Update dependency nicklockwood/SwiftFormat to v0.53.4 Mar 9, 2024
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.53.4 Update dependency nicklockwood/SwiftFormat to v0.53.5 Mar 17, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from c21e247 to 5ff51e3 Compare March 17, 2024 12:26
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 5ff51e3 to 9bfb0cf Compare April 11, 2024 06:46
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.53.5 Update dependency nicklockwood/SwiftFormat to v0.53.6 Apr 11, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 9bfb0cf to 1534dae Compare April 14, 2024 09:58
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.53.6 Update dependency nicklockwood/SwiftFormat to v0.53.7 Apr 14, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 1534dae to 5735853 Compare April 23, 2024 02:22
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.53.7 Update dependency nicklockwood/SwiftFormat to v0.53.8 Apr 23, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 5735853 to ed04c97 Compare May 12, 2024 21:22
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.53.8 Update dependency nicklockwood/SwiftFormat to v0.53.9 May 12, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from ed04c97 to 7d18090 Compare May 18, 2024 17:24
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.53.9 Update dependency nicklockwood/SwiftFormat to v0.53.10 May 18, 2024
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.53.10 Update dependency nicklockwood/SwiftFormat to v0.54.0 Jun 11, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 7d18090 to 83cb580 Compare June 11, 2024 09:45
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 83cb580 to 168eb47 Compare July 10, 2024 21:02
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.54.0 Update dependency nicklockwood/SwiftFormat to v0.54.1 Jul 10, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 168eb47 to 6b02f4a Compare July 22, 2024 09:24
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.54.1 Update dependency nicklockwood/SwiftFormat to v0.54.2 Jul 22, 2024
@renovate renovate bot force-pushed the renovate/nicklockwood-swiftformat-0.x branch from 6b02f4a to f71ced8 Compare July 28, 2024 16:23
@renovate renovate bot changed the title Update dependency nicklockwood/SwiftFormat to v0.54.2 Update dependency nicklockwood/SwiftFormat to v0.54.3 Jul 28, 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.

None yet

0 participants