Skip to content

Commit aeec597

Browse files
committed
UseWhereClausesInForLoops rule not safe.
1 parent 0bf9b8e commit aeec597

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Sources/generate-pipeline/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let outputFile = sourcesDir.appendingPathComponent("swift-format")
2222
let fm = FileManager.default
2323

2424
// These rules will not be added to the pipeline
25-
let suppressRules = ["UseEarlyExits"]
25+
let suppressRules = ["UseEarlyExits", "UseWhereClausesInForLoops"]
2626

2727
enum PassKind {
2828
case format, lint, file

Sources/swift-format/PopulatePipeline.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,6 @@ func populate(_ pipeline: Pipeline) {
234234
VariableDeclSyntax.self
235235
)
236236

237-
pipeline.addFormatter(
238-
UseWhereClausesInForLoops.self,
239-
for:
240-
ForInStmtSyntax.self
241-
)
242-
243237
/// MARK: Linting Passes
244238

245239
pipeline.addLinter(

0 commit comments

Comments
 (0)