File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,17 +29,20 @@ extension EvolutionMetadata {
2929
3030 var validationReport : String {
3131 let dateString : String = creationDate. replacingOccurrences ( of: " T " , with: " " )
32+ func proposalString( _ count: Int ) -> String { " \( count) Proposal \( count == 1 ? " " : " s " ) " }
33+
3234 var report = """
3335 Swift Evolution Validation Report
3436 \( dateString)
37+ \( proposalString ( proposals. count) ) Validated
3538 ---------- \n \n
3639 """
3740 let errorProposals = proposals. filter { $0. hasIssues }
3841
3942 if errorProposals. isEmpty {
4043 report += " NO ISSUES FOUND \n \n "
4144 } else {
42- report += " ISSUES FOUND \n \n "
45+ report += " ISSUES FOUND IN \( proposalString ( errorProposals . count ) . uppercased ( ) ) \n \n "
4346 report = errorProposals. reduce ( into: report) { $0 += $1. validationReport + " \n " }
4447 }
4548
You can’t perform that action at this time.
0 commit comments