Skip to content

Errors using reflowMultilineStringLiterals #980

@rgoldberg

Description

@rgoldberg

In my .swift-format, I tried to use:

{
  "reflowMultilineStringLiterals": "onlyLinesOverLength",
  
}

But I get:

$ swift-format lint example.swift
<unknown>: error: Unable to read configuration for /Users/user/example.swift: The data couldn’t be read because it isn’t in the correct format.

$ swift-format --version
601.0.0

$ swift --version
swift-driver version: 1.120.5 Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
Target: arm64-apple-macosx15.0

$ sw_vers
ProductName:		macOS
ProductVersion:		15.4
BuildVersion:		24E248

If I remove "reflowMultilineStringLiterals": "onlyLinesOverLength", from my .swift-format, I don't get any errors.

How can I set reflowMultilineStringLiterals to onlyLinesOverLength without getting errors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions