isVaporSwiftPackage returns true if Package.swift in dir contains a Vapor dependency. Vapor's Package.swift references "vapor/vapor.git" or the package URL contains "vapor/vapor".
(dir string)
| 658 | // isVaporSwiftPackage returns true if Package.swift in dir contains a Vapor dependency. |
| 659 | // Vapor's Package.swift references "vapor/vapor.git" or the package URL contains "vapor/vapor". |
| 660 | func isVaporSwiftPackage(dir string) bool { |
| 661 | data, ok := readFileContent(dir, "Package.swift") |
| 662 | if !ok { |
| 663 | return false |
| 664 | } |
| 665 | return strings.Contains(data, "vapor/vapor") |
| 666 | } |
| 667 | |
| 668 | // hasXcodeprojDir returns true if any directory entry in dir ends with ".xcodeproj". |
| 669 | // An .xcodeproj bundle is the primary signal file for Xcode-based iOS/macOS Swift projects. |
no test coverage detected