From 2d85c81fdf0b48c33c447c8e1cc63471206796af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Castillo?= Date: Sun, 17 Oct 2021 19:11:26 -0300 Subject: [PATCH] Add ftp repo check #945 --- dangerfile.js | 7 +++++++ 1 file changed, 7 insertions(+) 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)