Skip to content

Commit 55f114a

Browse files
authored
Stabilize output by sorting modules (#621)
Otherwise, the output changes randomly. As we commit the results to git to show changes in PRs, sorting the modules avoids unnecessary changes.
1 parent 6a59d6b commit 55f114a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Frontend/Formatters/OutputFormatter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ extension OutputFormatter {
4747
($0.location, "Protocol '\(name)' conformance is redundant")
4848
}
4949
case let .redundantPublicAccessibility(modules):
50-
let modulesJoined = modules.joined(separator: ", ")
50+
let modulesJoined = modules.sorted().joined(separator: ", ")
5151
description += " is declared public, but not used outside of \(modulesJoined)"
5252
}
5353
} else {

0 commit comments

Comments
 (0)