Skip to content

Ignoring a rule on a variable declaration doesn't work #771

Open
@FranzBusch

Description

@FranzBusch

I tried to ignore a rule on a variable declaration like this:

struct Bar {}
struct Foo {
  // swift-format-ignore: DontRepeatTypeInStaticProperties
  var fooBar: Bar 

However this didn't seem to work and I had to move the ignore to the struct declaration to work.

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