diff --git a/dangerfile.js b/dangerfile.js index c5197705f..625f88777 100644 --- a/dangerfile.js +++ b/dangerfile.js @@ -121,6 +121,12 @@ const checkRepoSVN = game => { } } +const checkRepoFTP = game => { + if (game.repo && game.repo.startsWith("ftp://")) { + warn(`🔗 ${game.name}'s repo is on a FTP server, which cannot be opened in some browsers by default. Please change it to the project's developer web page.`) + } +} + const checkRepoAdded = game => { if (!game.repo) return const match = game.repo.match(/github.com\/([^/]+)\//) @@ -169,6 +175,7 @@ const commonChecks = game => { checkRepoGoogleCode(game) checkRepoGit(game) checkRepoSVN(game) + checkRepoFTP(game) checkLanguageKnown(game) checkFrameworkKnown(game) checkHasImagesOrVideos(game)