Skip to content

Commit 19ea5d9

Browse files
authored
[SBMCore] Enhance ClangModuleVerifier quality (swiftlang#55)
* refactor: private verify `duplicate` architecture function name * docs: fix `scenarios` spelling
1 parent 0bfb557 commit 19ea5d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/SWBCore/ClangModuleVerifier/ModuleVerifierFramework.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public struct ModuleVerifierFramework {
6262
var privateModuleMap: ModuleVerifierModuleMap? = nil
6363

6464
/*
65-
* There are several possible module map senarios this is trying to sort out
65+
* There are several possible module map scenarios this is trying to sort out
6666
* - public and private headers and module maps
6767
* - public headers and module maps only
6868
* - private headers and module maps only

Sources/SWBCore/ClangModuleVerifier/ModuleVerifierTarget.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ extension ModuleVerifierTargetSet {
118118
let partitionedTargets = ModuleVerifierTargetSet.partition(targets: targets)
119119
let partitionedTargetVariants = ModuleVerifierTargetSet.partition(targets: targetVariants)
120120

121-
diagnostics += ModuleVerifierTargetSet.verifyDupicateArchitecture(partitionedTargets: partitionedTargets)
122-
diagnostics += ModuleVerifierTargetSet.verifyDupicateArchitecture(partitionedTargets: partitionedTargetVariants)
121+
diagnostics += ModuleVerifierTargetSet.verifyDuplicateArchitecture(partitionedTargets: partitionedTargets)
122+
diagnostics += ModuleVerifierTargetSet.verifyDuplicateArchitecture(partitionedTargets: partitionedTargetVariants)
123123

124124
diagnostics += ModuleVerifierTargetSet.verifyMatchingTargetForVariant(partitionedTargets: partitionedTargets, partitionedTargetVariants: partitionedTargetVariants)
125125

@@ -136,7 +136,7 @@ extension ModuleVerifierTargetSet {
136136
return partitionedTargets
137137
}
138138

139-
private static func verifyDupicateArchitecture(partitionedTargets: [String: [ModuleVerifierTarget]]) -> [Diagnostic] {
139+
private static func verifyDuplicateArchitecture(partitionedTargets: [String: [ModuleVerifierTarget]]) -> [Diagnostic] {
140140
var diagnostics: [Diagnostic] = []
141141

142142
for (_, targets) in partitionedTargets {

0 commit comments

Comments
 (0)