Skip to content

specifying rules in .swift-format file seems to change the default value for some rules #1168

@DetachHead

Description

@DetachHead
// foo.swift
enum Foo {
  case foo
}

with the following .swift-format config file:

// .swift-format
{}

i get this error:

Sources/project/foo.swift:6:8: error: [AlwaysUseLowerCamelCase] rename the enum case 'x86_64' using lowerCamelCase

when i add an empty rules object to it, the error goes away:

// .swift-format
{
    "rules": {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions