enumNamespaces rule seems to be ignored if the class/struct is at specific position.
Here is some source code, before and after swiftformat run with enumNamespaces rule enabled:
Before
After
```swift
import Foundation
final class MyViewModel {
static let = "A"
}
final class MyViewModel2 {
static let = "A"
}
```
```swift
import Foundation
final class MyViewModel {
static let = "A"
}
enum MyViewModel2 {
static let = "A"
}
```
Before
After
```swift
final class MyViewModel {
static let = "A"
}
import Foundation
final class MyViewModel2 {
static let = "A"
}
```
```swift
enum MyViewModel {
static let = "A"
}
import Foundation
final class MyViewModel2 {
static let = "A"
}
```
Before
After
```swift
final class MyViewModel {
static let = "A"
}
final class MyViewModel2 {
static let = "A"
}
import Foundation
```
```swift
enum MyViewModel {
static let = "A"
}
enum MyViewModel2 {
static let = "A"
}
import Foundation
```
import seems to have a side effect on the following entity.
Describe the bug
enumNamespaces
rule seems to be ignored if the class/struct is at specific position. Here is some source code, before and after swiftformat run with enumNamespaces rule enabled:import
seems to have a side effect on the following entity.Environment
swiftformat version: 0.52.8 swiftformat configuration file: