File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Sources/generate-pipeline Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,6 @@ final class PipelineGenerator: FileGenerator {
40
40
41
41
// This file is automatically generated with generate-pipeline. Do Not Edit!
42
42
43
- import SwiftFormatCore
44
- import SwiftFormatRules
45
43
import SwiftSyntax
46
44
47
45
/// A syntax visitor that delegates to individual rules for linting.
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ final class RuleCollector {
135
135
/// Ignore it if it doesn't have any; there's no point in putting no-op rules in the pipeline.
136
136
/// Otherwise, return it (we don't need to look at the rest of the inheritances).
137
137
guard !visitedNodes. isEmpty else { return nil }
138
- guard let ruleType = _typeByName ( " SwiftFormatRules .\( typeName) " ) as? Rule . Type else {
138
+ guard let ruleType = _typeByName ( " SwiftFormat .\( typeName) " ) as? Rule . Type else {
139
139
preconditionFailure ( " Failed to find type for rule named \( typeName) " )
140
140
}
141
141
return DetectedRule (
Original file line number Diff line number Diff line change @@ -16,16 +16,20 @@ import SwiftSyntax
16
16
let sourcesDirectory = URL ( fileURLWithPath: #file)
17
17
. deletingLastPathComponent ( )
18
18
. deletingLastPathComponent ( )
19
- let rulesDirectory = sourcesDirectory. appendingPathComponent ( " SwiftFormatRules " )
19
+ let rulesDirectory = sourcesDirectory
20
+ . appendingPathComponent ( " SwiftFormat " )
21
+ . appendingPathComponent ( " Rules " )
20
22
let pipelineFile = sourcesDirectory
21
23
. appendingPathComponent ( " SwiftFormat " )
24
+ . appendingPathComponent ( " Core " )
22
25
. appendingPathComponent ( " Pipelines+Generated.swift " )
23
26
let ruleRegistryFile = sourcesDirectory
24
27
. appendingPathComponent ( " SwiftFormatConfiguration " )
25
28
. appendingPathComponent ( " RuleRegistry+Generated.swift " )
26
29
27
30
let ruleNameCacheFile = sourcesDirectory
28
- . appendingPathComponent ( " SwiftFormatRules " )
31
+ . appendingPathComponent ( " SwiftFormat " )
32
+ . appendingPathComponent ( " Core " )
29
33
. appendingPathComponent ( " RuleNameCache+Generated.swift " )
30
34
31
35
var ruleCollector = RuleCollector ( )
You can’t perform that action at this time.
0 commit comments