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.