Open nicklockwood opened 1 year ago
If SwiftFormat detects a Package.swift file it could use it to automatically infer the --swiftversion from the // swift-tools-version: comment, and/or generate a warning if the versions don't match.
// swift-tools-version:
You would also have to consider the existence of all other Package@swift-5.x files as well to determine the true minimum supported Swift version.
Package@swift-5.x
If SwiftFormat detects a Package.swift file it could use it to automatically infer the --swiftversion from the
// swift-tools-version:
comment, and/or generate a warning if the versions don't match.